[00:00] yes [00:01] for instance in the constructor after the seyupUi(this); call [00:01] setupUi [00:14] chakie: Its still throwing up this error --> Object::connect: Parentheses expected, slot QPushButton:: [00:14] show the line [00:15] connect() call? [00:15] clusty (n=vlazar@BAF0b53.baf.pppool.de) joined #qt. [00:15] well, anything :) [00:16] and you seem to expect a slot in a QPushButton. probably not what you want [00:16] chakie: Swap: 4095992k total, 264068k used, 3831924k free, 2266212k cached [00:16] bhughes: running the new assistant? [00:17] no [00:17] just pasted a line like you said [00:17] Action: chakie has always 1g of swap in real use [00:17] bhughes: ah, sorry. yes, i see the error now [00:18] bhughes: the SIGNAL part is not properly closed with a ")" [00:20] ok question: assume I have QWidget subclass MyWidget. MyWidget has three QWidget children. They are added to MyWidget and are not positioned with move() or with layouts. I then have this stylesheet: 'QWidget { margin-left: 100px; top: 100px; bottom: 0px; }. Documentation says those position properties are supported.. [00:20] Action: bhughes sticks his tongue out at chakie [00:20] heh [00:21] connect(findButton, SIGNAL(clicked()), findButton, SLOT(findClicked())); [00:21] slimshady123: the slot is probably wrong [00:21] But, everything is still at 0,0. Is there any mechanism to do this? or do I need my own config files to let people position widgets? [00:21] which class/instance has the findClicked() slot? [00:22] pgib: unless you do something to set geometry (layouts, move(), setGeometry() etc) they will be at 0,0 [00:23] pgib: the stylesheets will not magically perform layouting for you. where should those three widgets end up? in a grid? row? on top of each other? [00:23] well docs say relative to the container [00:24] so I'd assume left: 100; top: 100 or something would move it (if it is, infact, supported) [00:24] but. I guess it is just for subControls of complexControls [00:25] chakie: The class is named FindDialog subclass of QDialog. [00:25] slimshady123: so "this" is probably what you want for the second object [00:26] slimshady123: have a look at the signal/slot docs [00:26] yeah "magic" is right. Honestly, the whole stylesheet framework (and MOC in general) is pretty "magical" to me at the moment [00:26] not all of MOC, obviously, but the internals -- knowing exactly what it is capable of [00:27] thomi (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) left irc: Remote closed the connection [00:30] well, i have to get back to studying... [00:32] momesana (n=momesana@134.102.123.211) left irc: "good bye!" [00:32] Rapp (n=schmitz@karamanlis.informatik.RWTH-Aachen.DE) joined #qt. [00:34] kde_pepo (n=pepo@p5B3BE9EB.dip.t-dialin.net) joined #qt. [00:36] MK2k (i=bla@pD9EA9455.dip0.t-ipconnect.de) joined #qt. [00:38] sebr (n=seb@amarok/developer/sebr) joined #qt. [00:38] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [00:45] montoya83 (n=fra@duelle1.dipmat.unipg.it) joined #qt. [00:48] Hi, it's possible to convert QIcon into QPixmap? [00:48] kdepepo (n=pepo@p5B3BFC61.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) [00:49] sven423 (n=sven@amarok/rokymotion/sven423) joined #qt. [00:52] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) left irc: Read error: 104 (Connection reset by peer) [00:53] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [00:57] Pinaraf (n=moi@telnet.telecom-lille1.eu) left irc: Remote closed the connection [01:00] montoya83: sure. QIcon has a pixmal(QSize) method for that. [01:00] QPixmap pixmap = icon.pixmap(55, 101); [01:00] yes :D [01:03] drbob (n=drbob@ip110-32-209-87.adsl2.versatel.nl) left irc: Read error: 110 (Connection timed out) [01:04] icqnumber (n=no@78.52.192.123) joined #qt. [01:04] Arno[Slack] (i=100@gre92-1-81-57-177-108.fbx.proxad.net) left irc: "Konversation terminated!" [01:05] slimshady123 (n=chatzill@121.245.55.170) left irc: Read error: 104 (Connection reset by peer) [01:08] hey [01:08] i am having a bit of a problem with some signals and was wondering if you could help me [01:08] http://www.nopaste.com/p/aLndZ0zkA [01:08] is the code [01:09] if I do the connect windows gives me some error [01:09] any clues what am I doing so viciously :D? [01:09] zarlino (n=zarlino@ppp-80-150.32-151.iol.it) joined #qt. [01:10] last function is where I start threads and connect them [01:10] sarefo (n=sarefo@213.83.32.130) joined #qt. [01:13] sarefo (n=sarefo@213.83.32.130) left irc: Client Quit [01:24] clusty, erm you are passing a pointer to the CLocator? [01:24] clusty, you may get a race condition [01:24] clusty, both threads could access it at the same time [01:26] zbenjamin,i could mutex it. [01:26] man thread just allocates memory [01:26] worker is supposed tio grind because now my interface is freezy [01:26] anyways i have some more fundamental problem [01:26] cannot start any QTHread for some reason [01:27] all choke windows [01:27] tried start a thread example shipped with qt? [01:27] +to [01:28] i did some qthreads before and was fine [01:28] http://www.nopaste.com/p/a9daxn3Il [01:28] is this not fine? [01:29] made a simplified thread doing nothing [01:29] and it still kills it [01:29] strange qt version? [01:29] its previous one [01:30] with comercial license [01:30] 4.3.4 ? [01:30] clusty: it depends. you create thread object on stack which mean it will be destroyed right after the scope ends. [01:30] 4.3.2 [01:30] denis, ouch. this might be it [01:30] denis, is that segfaulting? [01:31] argh why did i not see this [01:31] denis, you are a genoius [01:31] thinks thats it [01:32] zbenjamin: well i think it should segfault, but since the thread doesn't do anything, who knows... [01:37] denis, thanks dude [01:37] SimonAW (n=sxw@p5B114BFA.dip.t-dialin.net) joined #qt. [01:37] was bashing my head for a few hours already :D [01:37] clusty: np :) [01:39] i gotta think more in a multithreaded fashion :D [01:39] guess all my bad coding practices are coming top haunt me [01:39] Th30z (n=mbertozz@h98-ipv4-80-68-185.mynet.it) left irc: Read error: 104 (Connection reset by peer) [01:42] i have another question about threads: [01:42] if I close the main thread do all child threads die by default? (default linux behaviour) [01:42] or they detach? [01:44] icqnumber (n=no@unaffiliated/icqnumber) left irc: [01:48] grub_booter (n=charlie@d515301E0.access.telenet.be) joined #qt. [01:49] clusty: they all die when you exit the application [01:49] returning from main() is equivalent to calling exit() [01:49] thiago, great. makes my life easier [01:55] psn_ (n=psn@90-224-65-4-no91.tbcn.telia.com) joined #qt. [01:56] psn (n=psn@90-224-65-4-no91.tbcn.telia.com) left irc: Read error: 60 (Operation timed out) [01:56] Nick change: psn_ -> psn [02:00] guid (n=Guid@cha86-2-88-175-188-98.fbx.proxad.net) joined #qt. [02:01] I would like to have an "hyperlink" caption into a QTreeView cell, what would be the best method? [02:02] Nick change: silex -> Silex [02:06] hi all - i'm having some problems with the qt browser plugin - anyone around with some experience with that one? [02:06] montoya83 (n=fra@duelle1.dipmat.unipg.it) left irc: Remote closed the connection [02:08] grub_booter: in general, just state your problem instead of waiting for someone to ask you what your problem is [02:08] chakie: was just following up :-) [02:10] gemidjy (n=gemidjy@62.162.177.163) joined #qt. [02:10] Nick change: kde_pepo -> kdepepo [02:10] the plugin is a general media player (http://users.pandora.be/acp/amlplugin for some screenies), the player itself uses opengl and one of the issues is that it always fills to grey on a 3rd instance... [02:12] if i switch to an sdl/xvideo surface, i don't have that issue (but it restricts the use to a single instance - what i'm looking for longer term is a video editor in a browser, complete with multiple previews) [02:12] Serega (n=serega@77.120.129.74) joined #qt. [02:16] another issue is a more general one relating to c++ namespaces and typeinfo - am not sure if that's fully resolvable without changing the way that the browser instantiates plugins (there's a bit of boost::any_ptr used here to communicate properties in the filter graph which the plugin constructs, and currently this screws up cos the typeinfo is not unique, thus assignments to properties which check equivalent types fails - am working around [02:16] via LD_PRELOAD env var at the moment) [02:17] any info on either case would be appreciated [02:19] thomi (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) joined #qt. [02:21] mikem5 (n=mikem@85.148.12.76) joined #qt. [02:21] xRaich[o]2x (n=raichoo@WL-POOL71-070.UNI-MUENSTER.DE) joined #qt. [02:21] (there was a comment in the release notes of the last qt browser plugin which suggested that the auto fill issue relating to opengl had been identified and fixed, but it persists for me, but only on the 3rd and subsequent instances - refresh doesn't fix it) [02:24] steve8 (n=xx@222-151-095-162.jp.fiberbit.net) joined #qt. [02:24] steve8 (n=xx@222-151-095-162.jp.fiberbit.net) left irc: Client Quit [02:26] xRaich[o]2x (n=raichoo@WL-POOL71-070.UNI-MUENSTER.DE) left irc: Client Quit [02:30] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) left irc: "Konversation terminated!" [02:31] Nick change: metavoid_ -> metavoid [02:35] i want to issue a warning when user tries to exit app and processes are still running [02:35] what do I have to connect to? [02:40] kniolet (n=kniolet@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [02:41] clusty: what do you mean by 'processes'? [02:44] clusty, do you mean threads? [02:45] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: "Reconnecting" [02:45] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [02:51] Nick change: chrisb7_ -> chrisb7 [02:52] zbenjamin, actually i was not very clear. I want something like a exit comfirmation dialog [02:52] like a pre-exit thing [02:53] sharkk (n=sharkk@adsl-ull-248-94.49-151.net24.it) joined #qt. [02:53] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: "Lost terminal" [02:56] Displacer (n=tool@tool.gtn.ru) joined #qt. [02:56] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [02:57] clusty: QWidget has a virtual protected function 'closeEvent' that allows to do exit confirmation dialog [02:58] denis, thanks [02:59] denis, another thing: under windows when I do a system("asdasd") call to call an external binary i get a new ugly command prompt window. any way to muffle it? [02:59] or i should use some QT specific stuff? [03:01] clusty: instead of system you should use ShellExecute or CreateProcess. But qt has a nice wrapper for this - QProcess allows you to start an external process and interact with it. [03:01] denis, thanks [03:08] xRaich[o]2x (n=raichoo@WL-POOL71-070.UNI-MUENSTER.DE) joined #qt. [03:12] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: Read error: 104 (Connection reset by peer) [03:14] Hi. I have a .pro file where I want to do something like this: [03:14] include($$[FOO]/foo.pro) [03:15] Where $$[FOO] is set on the qmake command line like this: qmake -set FOO /tmp/foo [03:15] But qmake says "Error 101". [03:15] Any ideas? Bad syntax? [03:16] matrium (n=fmeyer@159.153.156.60) joined #qt. [03:16] hi [03:16] drbob (n=drbob@ip110-32-209-87.adsl2.versatel.nl) joined #qt. [03:17] how to open an url set width name to a qtextedit? [03:18] slimshady123 (n=chatzill@121.245.45.29) joined #qt. [03:22] kniolet (n=kniolet@dialbs-213-023-005-234.static.arcor-ip.net) left irc: [03:24] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [03:30] Pinaraf (n=moi@telnet.telecom-lille1.eu) joined #qt. [03:30] nplus (n=npl@141.25.Globcom.Net) joined #qt. [03:41] nisse (n=nisse@213.184.212.218) joined #qt. [03:42] My application exits nicely when I push the window x button, but If i add a button with qApp->quit() the application sometimes hangs. What function is executed when I hit the x button? [03:43] kniolet (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [03:43] closeEvent() for the main window [03:43] the one with the X [03:45] chakie: Thanks, do you have any idea why exiting with the event works, while qApp->quit() sometimes makes the app hang? [03:46] threads? [03:46] blight_ (n=blight@chello212186044229.409.14.vie.surfer.at) joined #qt. [03:47] chakie: wouldn't that result in the same behaviour for both closeEvent and qApp->quit() ? [03:47] i mean, do you hve running threads? [03:47] from my limited understanding, quit() should just quit the app [03:50] Nick change: EPONYME -> eponyme [03:51] Yes, I am running multiple threads, but the other threads are not running Qt stuff. I'm exiting the other threads when exec() returns, so I can't see why the closeEvent should behave differently than quit().. [03:52] are the other threads really exiting? [03:52] nisse: why don't you attach a debugger and see where the app is hanging? [03:53] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: Read error: 110 (Connection timed out) [03:53] qApp->quit() doesn't immediately quit, you could for instance be stuck in a nested event loop [03:54] i've appended ... to my qtextedit, the url is highlighted as an url but i can't open it [03:54] do i need anything like an url handler? [03:56] matrium: use QTextBrowser and set openExternalLinks to true [03:58] chakie: when the app hangs there are still threads running. The thread that hangs is a timecritical Win32 Thread (not one of mine), that seems to loop forever executing functions in ntdll.dll.. Hard to debug shit like this.. [03:58] well, the app can't exit until the threads are done [03:58] cleanly at least [03:59] take care of your threads first [04:00] rohanpm: thank's, works fine [04:02] chakie: yes, but recall my main question - Why does the app exit nicely when I hit the x button? My other threads are not Qt threads, and they get stopped after the Qt app execution loop exits.. [04:03] a closeEvent doesn't (afaik) terminate the event loop directly, it merely closes the window [04:04] which in turn can lead to the event loop ending if it's the last window etc [04:06] hunt0r (n=hunt0r@dslb-088-064-223-227.pools.arcor-ip.net) joined #qt. [04:08] rohanpm: err.. that sounds exactly like what is happening.. but how can I find out where the app hangs when it's stuck within ntdll.dll? The app only hangs 1/10 quits so it's pretty hopeless trying to step trough the app until it wuits.. [04:08] wuits = quits [04:09] nisse: wait until it's hanging, then attach a debugger [04:09] Assuming you can do that in Windows [04:09] skarsnik (n=skarsnik@av137-1-82-224-142-6.fbx.proxad.net) joined #qt. [04:09] Or maybe you've already done that? [04:10] trpr (n=ftg2@24-117-49-210.cpe.cableone.net) left irc: Read error: 110 (Connection timed out) [04:10] should be possible even in windows [04:10] rohanpm: I'm not sure I follow, what's the difference to running the debugger from the beginning? [04:11] When the app gets stuck in ntdll.dll, then it never returns.. [04:12] zarlino (n=zarlino@ppp-80-150.32-151.iol.it) left irc: Read error: 110 (Connection timed out) [04:12] zwerg (n=zwerg@3-159.vpn.RWTH-Aachen.DE) joined #qt. [04:13] mbreugel (n=nix@ip-81-11-192-96.dsl.scarlet.be) joined #qt. [04:17] j0tt (n=j@unaffiliated/jott) joined #qt. [04:17] jott (n=j@unaffiliated/jott) left irc: Nick collision from services. [04:17] Nick change: j0tt -> jott [04:24] Nick change: eponyme -> EPONYME [04:26] Pinaraf (n=moi@telnet.telecom-lille1.eu) left irc: Remote closed the connection [04:27] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [04:28] kniolet (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) left irc: Read error: 104 (Connection reset by peer) [04:29] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [04:29] psn (n=psn@90-224-65-4-no91.tbcn.telia.com) left irc: Read error: 110 (Connection timed out) [04:30] thomi_ (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) joined #qt. [04:30] psn (n=psn@90-224-65-4-no91.tbcn.telia.com) joined #qt. [04:31] thomi (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) left irc: Read error: 104 (Connection reset by peer) [04:32] BtbN (i=btbn@p54BB2AEF.dip0.t-ipconnect.de) joined #qt. [04:34] sharkk (n=sharkk@adsl-ull-248-94.49-151.net24.it) left irc: Read error: 104 (Connection reset by peer) [04:35] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: "Lost terminal" [04:36] sharkk (n=sharkk@adsl-ull-248-94.49-151.net24.it) joined #qt. [04:38] alban_ (n=alban@218.80.128.140) joined #qt. [04:38] perkka (i=perkka@ua-83-227-207-92.cust.bredbandsbolaget.se) left irc: Read error: 110 (Connection timed out) [04:39] perkka (i=perkka@ua-83-227-207-92.cust.bredbandsbolaget.se) joined #qt. [04:40] alban_ (n=alban@218.80.128.140) left irc: Remote closed the connection [04:46] gkiagia (n=gkiagia@147.52.24.39) joined #qt. [04:47] mikem5 (n=mikem@85.148.12.76) left irc: "Java user signed off" [04:47] valcker (n=valcker@92.112.13.116) joined #qt. [04:48] xRaich[o]2x (n=raichoo@WL-POOL71-070.UNI-MUENSTER.DE) left irc: "leaving" [05:02] berniyh (n=berniyh@gentoo/user/berniyh) left irc: Read error: 104 (Connection reset by peer) [05:02] berniyh_ (n=berniyh@gentoo/user/berniyh) joined #qt. [05:04] gkiagia (n=gkiagia@147.52.24.39) left irc: Remote closed the connection [05:06] mm [05:07] how can i get the contents from a QTextEdit() ? [05:15] toPlainText() [05:17] thanks :) [05:17] berniyh (n=berniyh@gentoo/user/berniyh) joined #qt. [05:18] how can I disable the close button inside a QMessageBox? [05:18] i mean the close "x" button :D [05:19] berniyh_ (n=berniyh@gentoo/user/berniyh) left irc: Read error: 104 (Connection reset by peer) [05:24] Purple_Hatstand (n=john@87-194-162-231.bethere.co.uk) left irc: [05:29] clusty: it isn't possible in qt since the only system that supports this is windows. [05:30] denis: hu? Are you sure? [05:31] daniel: at least x11 doesn't allow you to control frame behaviour and appearance [05:31] indeed [05:31] what you can do is reimplement closeEvent() and always ignore() the event [05:32] I thought that there were some window-manager extensions maybe. Never realized the buttons could not be controlled by the application [05:32] berniyh_ (n=berniyh@gentoo/user/berniyh) joined #qt. [05:32] But then again, maybe this isn't that important, after all [05:32] Serega (n=serega@77.120.129.74) left irc: Remote closed the connection [05:32] daniel, you can change default win behaviour at least in metacity [05:33] berniyh (n=berniyh@gentoo/user/berniyh) left irc: Read error: 104 (Connection reset by peer) [05:33] daniel: there are lots of extensions that Qt supports... but there's never been consensus for controlling/describing what the window manager's decorations look like or do [05:33] bhughes, so I gotta make my own class and reimplement the closeEvent()? [05:34] clusty: yes... it's very easy, just inherit from QDialog or QWidget [05:34] note that if you fail to respond to WM events, the WM may kill your application [05:34] indeed [05:34] thiago, i will just restart window [05:34] :D [05:34] but ignoring the event is still responsing for it :) [05:34] s,responsing for,responding to, [05:34] why don't want to close the window? [05:34] and the plainest window type is Qdialog? [05:35] accept the dialog as a cancellation [05:35] well I have an app that does a lot of things [05:35] like search net/disk [05:35] reindex disk net [05:35] and operations are not mutually exclusive [05:35] makkalot (n=makkalot@85.96.50.249) joined #qt. [05:35] clusty: the simplest is just a QWidget with no parent [05:35] so at a time i can index disk,net and search some stuff [05:36] QDialog adds lots of dialog features (modality, accept/cancel, auto-default buttons, etc.) [05:36] so I thought that a good feedback sytem would be to start a tiny window saying operation in progress [05:36] and close it only when operation is done [05:37] hi everyone , what is widget or class that i can provide multiple selection ? [05:37] is there a better/easier way to do it? [05:37] makkalot, I think you can have a selectionmodel for the dialog [05:38] i did a filedialog window with a treeviewmodel and multipleselection as selectionmodels [05:40] clusty: Closing it with the [x] should bring up a "Do you want to abort the operation?"-dialog [05:40] Not being able to cancel the stuff you're doing is bad usability/design [05:40] daniel, makes sense [05:41] and how do I kill a window? [05:41] i mean from main window tell some dialog to die [05:41] clusty: you can use a tray icon with a balloon tooltip that says that an operation is in progress and allows to interact with popup menu items. I think that's the native windows behaviour for long operations/ [05:42] denis, sounds long :D [05:42] if you have a systray on your platform. [05:42] i would wish to be done today with interface to test tomorrow [05:42] and start shiping alpha :D [05:43] Purple_Hatstand (n=john@dhcp-152-78-61-133.ecs.soton.ac.uk) joined #qt. [05:43] Sput: well, i suppose every modern platform has a notification area (aka systray) :) [05:43] I don't think you should assume that. optionally yes, but not as required [05:43] there are DEs that don't have a systray [05:43] clusty: it isn't difficult, but anyway it's your choice :) [05:45] Sput: can you name one? (can't remember any from the top of my head) [05:45] denis, i was asking more like how to display multiple statuses at the same time [05:45] denis, well for example shitty WM in linux [05:45] denis: not sure actually, but somebody told me that not too long ago.. Ion3 maybe? [05:45] like blackbox [05:45] has no status bar [05:45] thus no minimized icons [05:46] ah. i thought you said DEs :) [05:46] hgb (n=hgb@tussi.moria.no) left irc: Read error: 145 (Connection timed out) [05:46] das_netz (n=dasnetz@189.130.162.172) joined #qt. [05:47] so I am inheriting from qdialog [05:47] what do I need to do to get an empty window up and running? [05:48] i mean what stuff do I need to redefine (I presume some pure virtual functions are there) [05:48] Nick change: chrisb7 -> chrisb7_ [05:49] clusty: nope. just inherit from it and that's it. [05:49] hibread (n=hibread@124.189.243.34) joined #qt. [05:50] ion3 does not have a systray :) [05:50] yeah, thought so [05:50] das_netz (n=dasnetz@189.130.162.172) left irc: Remote closed the connection [05:51] so you should treat a systray as nice optional feature, but don't strictly require its existence [05:52] das_netz (n=dasnetz@189.130.162.172) joined #qt. [05:52] How does QSystemTrayIcon::isSystemTrayAvailable() work on Linux? [05:52] Sput: you said DEs, that why I was confused since i haven't heard of DE without notification area of some kind... [05:52] marloshouse (n=markpetr@pool-71-170-124-178.dllstx.fios.verizon.net) joined #qt. [05:53] Hm, the question is probably more "How do system notification areas work on Linux" :) [05:53] daniel: see the example [05:53] daniel: it's quite easy [05:53] works [05:53] i was doing some dumb stuff [05:53] sebr (n=seb@amarok/developer/sebr) left irc: Remote closed the connection [05:54] yeah, I use DE and WM interchangeable often :) [05:54] DE=desktop env? [05:54] ya [05:54] so what is flukebox? [05:54] DE or WM [05:54] WM = window manager [05:54] WM [05:54] because i can run on its own [05:54] KDE and Gnome are DEs [05:55] so basically a complicated WM=DE [05:55] :D [05:55] that's the thing... most WMs can be used standalone, acting as a DE [05:55] blackbox+3 plugins=DE [05:55] :D [05:57] can I set title of a QDialog? [05:57] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) left irc: Read error: 104 (Connection reset by peer) [05:57] kniolet_ (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [05:59] nplus (n=npl@141.25.Globcom.Net) left irc: Remote closed the connection [06:00] http://dune2.dyndns.org/www-share/automate/graphicsView1.jpg [06:00] my problem is that the nested QGraphicsView doesn't use the complete widget size [06:01] anyone an idea? i do itemView->setViewport(view); [06:02] and somehow the view knows the base size because when i move a node around it seems to 'resize' the nested view (called view) if i hit the right/lower corner [06:02] parapente (n=nobody@ppp235-142.adsl.forthnet.gr) joined #qt. [06:02] tuxipuxi (n=michael@konversation/developer/pdpc.active.tuxipuxi) joined #qt. [06:02] makkalot_ (n=makkalot@85.96.50.249) joined #qt. [06:03] makkalot (n=makkalot@85.96.50.249) left irc: Read error: 110 (Connection timed out) [06:05] hello! why would a treeview show its contents only if I execute treeView->collapseAll() or expandAll() ? [06:05] Dave43 (n=david@wibble.sihnon.net) joined #qt. [06:06] parapente: your model is borked maybe? [06:06] parapente: try the modelview [06:06] :-/ [06:06] parapente: modeltest not view -> http://labs.trolltech.com/page/Overview [06:08] thanks! I was looking for something like that [06:08] Dave43 (n=david@wibble.sihnon.net) left irc: Remote closed the connection [06:09] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) joined #qt. [06:09] clusty: you can set it with firing up assistant -> then find the qwidget class documentation and next search for title [06:09] hi, how can i find the patch/commit that solved this bug? http://trolltech.com/developer/task-tracker/index_html?method=entry&id=204403 [06:10] iguanna (n=david@150.Red-88-12-152.dynamicIP.rima-tde.net) left irc: Read error: 110 (Connection timed out) [06:10] mikkoc: sigh. maybe you can diff your qt4.4 installation with the qt4.4.x beta [06:11] Pinaraf (n=moi@193.48.251.196) joined #qt. [06:11] auch [06:11] mikkoc: it seems as it's fixed in Version for fix set to '4.4.1 [06:11] yes [06:12] mikkoc: this bug tracker seems to be quite bad in that regard [06:12] i was gonna hope to patch 4.4.0 [06:12] zarlino (n=zarlino@ppp-80-150.32-151.iol.it) joined #qt. [06:13] mikkoc: http://trolltech.org/developer/notes/changes/changes-4.4.0/?searchterm=204403 [06:13] s/in that regard// [06:13] [204403] Only scroll to the current index on reset if the view is [06:13] editing. [06:13] Pinaraf (n=moi@193.48.251.196) left irc: Remote closed the connection [06:13] well, we don't know if the tracker has more options for internal use [06:14] Sput: yes maybe. anyway to track down an issue it's bad this way [06:15] jlh (n=jlh@89-177.0-85.cust.bluewin.ch) joined #qt. [06:16] chakie & rohanpm: Thanks for the discussion earlier. It gave me a few new ideas. I've found that if I link my app with /SUBSYSTEM:Console, there is never any problems on exit. This makes me believe that mu problems must be related to a bug in qt 4.4.0 rc. Before I upgrade my current version of qt, have you ever heard of such a bug? [06:16] qknight: yes totally is... but I wouldn't be surprised if one of the trolls looks it up [06:16] mu = my [06:17] problems = ? [06:20] beasty_: my app sometimes hung on exit (forever running some functions in ntdll.dll) [06:20] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [06:20] ow that sucks [06:21] QWidgets always want other QWidgets as parents... while I can see some sense in that, is there a way for objects derived from QObject to own a QWidget? [06:22] i gotta say: icons are damn trivial [06:22] and look funkier [06:22] :D [06:22] slimshady123 (n=chatzill@121.245.45.29) left irc: Read error: 110 (Connection timed out) [06:23] nplus (n=npl@141.25.Globcom.Net) joined #qt. [06:23] hibread (n=hibread@124.189.243.34) left irc: "Not the default" [06:23] xjunior (n=chjunior@201.80.85.17) joined #qt. [06:25] hibread (n=hibread@124.189.243.34) joined #qt. [06:25] gkiagia (n=gkiagia@147.52.24.39) joined #qt. [06:29] Dave43 (n=david@dhcp-152-78-61-126.ecs.soton.ac.uk) joined #qt. [06:30] hibread (n=hibread@124.189.243.34) left irc: "Not the default" [06:32] blight_ (n=blight@chello212186044229.409.14.vie.surfer.at) left irc: Read error: 110 (Connection timed out) [06:32] hibread (n=hibread@124.189.243.34) joined #qt. [06:33] lsobral (n=sobral@200.184.118.132) joined #qt. [06:35] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [06:36] nopper (n=stack@host235-254-dynamic.2-79-r.retail.telecomitalia.it) left irc: Read error: 104 (Connection reset by peer) [06:36] Nick change: zbenjamin -> zbenjamin|out [06:38] mueslix (n=muesli@87-194-56-45.bethere.co.uk) joined #qt. [06:38] nopper (n=stack@host235-254-dynamic.2-79-r.retail.telecomitalia.it) joined #qt. [06:43] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: "Reconnecting" [06:43] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [06:48] sharkk (n=sharkk@adsl-ull-248-94.49-151.net24.it) left irc: Remote closed the connection [06:49] Adrian_dlcspm (n=aparker@d38-64-115.commercial1.cgocable.net) joined #qt. [06:50] muesli_ (n=muesli@87-194-56-45.bethere.co.uk) left irc: Read error: 110 (Connection timed out) [06:50] I have a ui file which is of type QWidget. Can I add a QMenu to this without making it type QMainWindow? If so how? I opened the *.ui file in vim, changed "QWidget" to "QMainWindow", but when I reopen the ui file in designer its blank and all the child widgets are gone. [06:51] pgib (n=pgib@c-68-62-183-158.hsd1.tn.comcast.net) left irc: "Leaving." [06:52] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: "Lost terminal" [06:56] Displacer (n=tool@tool.gtn.ru) got netsplit. [06:58] cmarcelo (n=cmarcelo@enlightenment/developer/cmarcelo) joined #qt. [07:00] hgb (n=hgb@tussi.moria.no) joined #qt. [07:02] Displacer (n=tool@tool.gtn.ru) got lost in the net-split. [07:04] kushal (n=kd@122.167.38.40) joined #qt. [07:09] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) left irc: Remote closed the connection [07:10] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) joined #qt. [07:12] Displacer (n=tool@tool.gtn.ru) joined #qt. [07:17] matrium (n=fmeyer@159.153.156.60) left irc: Read error: 104 (Connection reset by peer) [07:18] DaniloCesar (n=DaniloCe@nat/mandriva/x-1146f3290e031231) joined #qt. [07:19] momesana (n=salemmo@mail.mlhb.de) joined #qt. [07:19] struk_atwork (n=carm@ool-457a02ef.dyn.optonline.net) joined #qt. [07:20] what would be the simplest way to popup a dialog (without QInputDialog), ask the user to type something and just return the typed string to the window that created the popup dialog? [07:22] _valcker (n=valcker@92.112.13.116) joined #qt. [07:23] tavl: why not use a QInputDialog? [07:24] al: because i'm trying do build a simple example to help me understand how to solve a bigger problem. and not all of my dialogs are "simple input" dialogs... [07:25] tavl: then i would subclass a QDialog, and place a QLineEdit and two QPushButtons [07:25] machrider (n=mike@ip24-250-30-14.ri.ri.cox.net) left irc: Remote closed the connection [07:25] machrider (n=mike@ip24-250-30-14.ri.ri.cox.net) joined #qt. [07:25] al: so, i'm trying to find a way to halt the execution until the return from the dialog occurs (with or without a "real" value) [07:26] tavl: dialogs with return values are not very easy to implement. they are realized as static functions ... [07:26] al: so what? [07:26] yeah, just do: "MyDialog dialog; dialog.exec();" [07:28] tavl: as for getting the result back you could do all sorts of different things. Pass a reference to a string in the constructor, or maybe request the input if the dialog returns true (i.e. if(dialog.exec()) [07:28] string = dialog.input(); ) [07:28] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) left irc: Remote closed the connection [07:28] momesana: all i wish is a method that popup a dialog and, even if it will return a value or not, halt the execution of the main loop... [07:28] al-: I am not sure if returning a string from a dialogs exec() is possible [07:28] tavl: look at QDialog::exec() [07:29] well, if you know anything about python, could you take a look at my code and give me a clue? http://rafb.net/p/6D4x3l94.html [07:29] al-: he could however define getter functions and get the return value by calling those functions before the dialog goes out of scope ... [07:29] al: i'll do it [07:29] momesana: oh you can't, but it would return how the dialog has been closed. No reason to ask for the input if the user clicked "Cancel" [07:30] chrisinajar (n=chris@72.15.28.7) joined #qt. [07:30] momesana: that is what I was trying to suggest [07:30] hi [07:30] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) joined #qt. [07:30] Nick change: hanzz_ -> HanzZ [07:30] al-: oh, i see. [07:30] al, momesana: any ot you know python? could you take a look at my code? http://rafb.net/p/6D4x3l94.html [07:31] ok, so I'm using JSON values to pass varialbes over the network. What would be the best way to pack, and unpack, a QVarient into a standard JSON value... [07:31] tavl: that link is broken [07:31] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) left irc: Remote closed the connection [07:32] I'm trying to write a function right now that uses type() and such to pack it into a string then send it, and unpack on the other side... [07:32] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [07:32] tavl: i can't even open it. is the link correct [07:33] sharkk (n=sharkk@adsl-ull-248-94.49-151.net24.it) joined #qt. [07:33] al, momesana: sorry the bad link... it was a old one... here is the new one: http://rafb.net/p/dKgKzW93.html [07:36] alunduil (n=alunduil@199.17.112.1) joined #qt. [07:36] DaniloCesar (n=DaniloCe@nat/mandriva/x-1146f3290e031231) left irc: "Leaving" [07:36] valcker (n=valcker@92.112.13.116) left irc: Read error: 110 (Connection timed out) [07:37] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) joined #qt. [07:37] johnyb (n=jb@e176173115.adsl.alicedsl.de) joined #qt. [07:39] DaniloCesar (n=DaniloCe@nat/mandriva/x-f95ed294b2bf7d05) joined #qt. [07:42] tavl: I am at work. I'll check it in half an hour [07:42] blight_ (n=blight@chello080109145043.tirol.surfer.at) joined #qt. [07:42] meyerm (n=meyerm@e181082224.adsl.alicedsl.de) joined #qt. [07:44] Adrian_dlcspm (n=aparker@d38-64-115.commercial1.cgocable.net) left irc: Remote closed the connection [07:44] tavl: you probably don't need to create myDialog within self since you only need it temporarily. second, did you try myDialog.exec() yet? [07:45] impulze (n=impulze@daniel.kleinerfeigling.org) left irc: Read error: 113 (No route to host) [07:45] al: not yet. i was reading about it... modal dialogs, right? [07:46] i am not sure why is the best way to read api for pyqt [07:47] http://doc.trolltech.com/4.4/qdialog.html#exec [07:50] Nick change: _valcker -> valcker [07:50] chjunior (n=chjunior@201.80.85.17) joined #qt. [07:52] al: i'm trying it [07:54] hmm 4.4.0 still not available as opensource download? ^^ [07:55] no the 6th i thinx [07:55] think [07:55] k thx [07:56] alunduil (n=alunduil@199.17.112.1) left irc: Client Quit [07:56] it's already on the ftp... [07:56] at least yesterday it was [07:56] (that's why the topic changed) [07:57] yeah it's been released :) [07:57] just not announced [07:57] *sput-wuschel* [07:57] dlee (n=anonymou@207.47.25.98.static.nextweb.net) joined #qt. [07:58] *egs-tätschel* [07:59] johnyb (n=jb@e176173115.adsl.alicedsl.de) left irc: Read error: 113 (No route to host) [08:00] xjunior (n=chjunior@201.80.85.17) left irc: Connection timed out [08:02] hunt0r: it is on the ftp [08:03] impulze (i=impulze@daniel.kleinerfeigling.org) joined #qt. [08:04] ohh nice :) [08:04] al-: thx [08:05] lemma (n=quassel@88.80.208.240) joined #qt. [08:06] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [08:08] johnyb (n=jb@e176168182.adsl.alicedsl.de) joined #qt. [08:09] jlh (n=jlh@89-177.0-85.cust.bluewin.ch) left #qt ("No reason"). [08:10] eton_ (n=eton@ppp-58-8-16-132.revip2.asianet.co.th) left irc: Read error: 104 (Connection reset by peer) [08:12] anselmolsm (n=anselmo@201.82.185.201) left irc: "kaboom!" [08:20] how can i put a QVariant into a QDataStream?.... d << v; isn't working... [08:21] Gunirus (n=Gunirus@unaffiliated/Gunirus) joined #qt. [08:21] skarsnik (n=skarsnik@av137-1-82-224-142-6.fbx.proxad.net) left irc: Remote closed the connection [08:22] the help page says that is how it is don [08:22] e [08:22] what is the QVariant containing? [08:24] I don't know, that is decided at runtime... [08:24] usually strings, bools, and ints though... [08:24] what is says in the docs isn't working... I must be missing something... [08:25] QByteArray a; QDataStream d(&a,QIODevice::ReadWrite); a << v; [08:25] zwerg (n=zwerg@3-159.vpn.RWTH-Aachen.DE) left irc: "Ex-Chat" [08:25] Action: al- shrugs [08:26] i don't know... [08:27] ker (n=oli@offb-4dbd50a8.pool.einsundeins.de) joined #qt. [08:27] I'm going to try using QBuffer instad of a QByteArray... because it's a QIODevice [08:29] Ulmanen (n=mamb@host-212-149-245-8.kpylaajakaista.net) joined #qt. [08:29] cauliergilles (n=gilles@78.112.55.116) joined #qt. [08:29] hi! I'm using a QTreeWidget to display information. Upon changing the selection (single-select) I want to validate certain conditions to see if the change of selection is permitted [08:30] Hey, how can I get the signal-sender object? [08:30] unfortunately I can't use setCurrentItem with blocked signals because then the selection doesn't update in the view [08:30] Do I have to do emit somesignal(this, otherargs) or is there some other way doing that? [08:31] Ulmanen: QObject::sender() [08:31] is there any other way of "breaking" the item selection process? [08:32] nplus (n=npl@141.25.Globcom.Net) left irc: Remote closed the connection [08:32] Dako-kun (n=dako@F300a.f.strato-dslnet.de) joined #qt. [08:32] bmann (n=andi@barop.wh.uni-dortmund.de) joined #qt. [08:34] profoX` (n=wesley@ubuntu/member/profox) joined #qt. [08:39] mbreugel (n=nix@ip-81-11-192-96.dsl.scarlet.be) left irc: Remote closed the connection [08:40] chrisinajar (n=chris@72.15.28.7) left irc: "Konversation terminated!" [08:42] abdb (n=57fd3021@67.159.55.26) joined #qt. [08:42] s1d (n=s1d@64.81.136.196) joined #qt. [08:43] Cykus (n=cykus@78-31-90-223.ostrog.net.pl) joined #qt. [08:43] Cykus (n=cykus@78-31-90-223.ostrog.net.pl) left irc: Remote closed the connection [08:43] notabene (n=57fd3021@67.159.55.26) joined #qt. [08:44] i have a console application on linux machine and i want to redirect all qDebug outputs to a file to make it possible the application to be run a service. how do i do this? [08:45] 2> somefile [08:46] 2> somefile? where should i write this? [08:46] run the command like this: myprogram 2> mylogfile [08:47] notabene, you could make a subclass that inherits from qDebug and use that instead :o [08:47] ook i have tried but it doesnt work. output still goes to screen [08:47] ok... [08:47] makkalot_ (n=makkalot@85.96.50.249) left irc: Read error: 110 (Connection timed out) [08:47] myprogram 2>&1 > mylogfile [08:48] makkalot_ (n=makkalot@85.96.50.249) joined #qt. [08:48] or qInstallMsgHandler(...) for really flexible handling [08:48] Purple_Hatstand: why the 2>, why not just >? [08:48] 2 ist STD_ERR [08:48] 2> redirects stderr [08:48] *is [08:48] ahh, thanks [08:49] 0,1,2 -> stdin, -out, -err [08:49] or make just a global function that puts the debug in a file [08:50] I made it so that it saves only the last 5 lines of debug, that way the file will not get too big [08:51] Pinaraf (n=moi@ALille-251-1-33-109.w82-127.abo.wanadoo.fr) joined #qt. [08:52] SimonAW (n=sxw@p5B114BFA.dip.t-dialin.net) left irc: Remote closed the connection [08:55] chrisinajar (n=chris@72.15.28.7) joined #qt. [08:55] anyone know what would cause the error: "QIODevice::getChar: Closed device" [08:55] I'm trying to do stuff with datastream and I get that error at the point of << and it remains empty... [08:56] jordan__ (n=jdress@cerberus.ece.engr.uky.edu) joined #qt. [08:57] wasnt there an example that uses qcompleter in a textedit? [08:58] ahh I found it [08:59] kibab (n=kibab@unaffiliated/kibab) joined #qt. [09:03] Praise (n=Fat@unaffiliated/praise) left irc: Remote closed the connection [09:04] Nick change: delrawth -> delroth [09:05] Praise (n=Fat@unaffiliated/praise) joined #qt. [09:05] nopper (n=stack@host235-254-dynamic.2-79-r.retail.telecomitalia.it) left irc: Remote closed the connection [09:05] chrisinajar: maybe the device is closed [09:06] nopper (n=stack@host235-254-dynamic.2-79-r.retail.telecomitalia.it) joined #qt. [09:06] Dave43: it's a QByteArray.... they can't open or close... [09:06] Nick change: EPONYME -> eponyme [09:07] chjunior (n=chjunior@201.80.85.17) left irc: Read error: 104 (Connection reset by peer) [09:07] hmm. Made the error go away but still no data being saved... [09:07] Zarin (n=cr@124-169-23-204.dyn.iinet.net.au) left irc: Remote closed the connection [09:08] Atte (n=atte@dsl-jklbrasgw1-fe13fb00-103.dhcp.inet.fi) joined #qt. [09:09] GCN (n=GCN@2a01:e35:2eeb:1680:213:d4ff:fef5:8f46) joined #qt. [09:09] DarkWizzard (n=darkwizz@79.114.227.108) joined #qt. [09:12] Andy80 (n=andy80@host251-14-dynamic.9-79-r.retail.telecomitalia.it) joined #qt. [09:16] xRaich[o]2x (n=raichoo@i59F66B5E.versanet.de) joined #qt. [09:17] jihi (n=jihi@L1c7c.l.pppool.de) joined #qt. [09:18] johnyb (n=jb@e176168182.adsl.alicedsl.de) left irc: Remote closed the connection [09:19] Adrian_dlcspm (n=aparker@d38-64-115.commercial1.cgocable.net) joined #qt. [09:20] Hey. I have a *.ui file. Its for a QWidget containing a lot of widgets. Is it possible to add a QMenu? I can't seem to figure out how with Designer. I tried converting it to a QMainWindow by manually editing the *.ui file, but then when its opened none of the widgets are displayed. [09:21] Adrian_dlcspm: you wanted to add a menu bar to it? [09:21] kibab, Yes, I don't see any option in Designer to do this. Its an existing *.ui file with a lot of widgets added already. [09:23] Nick change: kniolet_ -> kniolet [09:24] alunduil (n=alunduil@24-116-232-133.cpe.cableone.net) joined #qt. [09:24] klebezettel (n=nik@e178166247.adsl.alicedsl.de) joined #qt. [09:25] how does this not work: QByteArray a; QDataStream in(&a,QIODevice::WriteOnly); in << v; [09:26] Adrian_dlcspm: you could copy the widgets into a qmainwindow [09:26] profoX` (n=wesley@ubuntu/member/profox) left irc: Read error: 104 (Connection reset by peer) [09:27] momesana (n=salemmo@mail.mlhb.de) left irc: Remote closed the connection [09:27] chrisinajar: maybe one of the types isn't fully defined? [09:27] kibab, Hrm, hoping that goes without issue, I'll give it a whirl. [09:27] zarlino (n=zarlino@ppp-80-150.32-151.iol.it) left irc: Remote closed the connection [09:27] kibab: what do you mean? [09:27] kibab: v is a QVariant btw.... [09:27] kibab, Was I correct that a QWidget cannot have a QMenu? If it can, can Designer not add it to an existing UI? [09:27] chrisinajar: eg. you only have a forward declaration, not a full type [09:27] Adrian_dlcspm: designer just can't handle it [09:28] a remains completely empty, v is a fully defined QVariant..... do I have to do something to v to make it work as expected? [09:28] Dumble (n=Dumble@LAubervilliers-151-11-33-138.w193-251.abo.wanadoo.fr) left irc: "Eternity is a very long time especially towards the end (Woody Allen)" [09:28] kibab, Hrm. Rough. But if its makes a QMainWindow it can though. Odd. Is that a bug? [09:29] Hi! Is there a way to embed mplayer in a widget..? [09:29] chrisinajar: so it compiles fine? [09:29] kibab: indeed. [09:29] kibab: I don't get a segfault or anything when it runs either, it's just empty... [09:30] chrisinajar: hmm... I suppose you could confirm with writeRawData() [09:30] psn (n=psn@90-224-65-4-no91.tbcn.telia.com) got netsplit. [09:30] fdoving (n=frode@edge.lnix.net) got netsplit. [09:30] what do you mean? [09:30] Rapp (n=schmitz@karamanlis.informatik.RWTH-Aachen.DE) left irc: Remote closed the connection [09:31] Andy80 (n=andy80@host251-14-dynamic.9-79-r.retail.telecomitalia.it) got netsplit. [09:31] Ulmanen (n=mamb@host-212-149-245-8.kpylaajakaista.net) got netsplit. [09:31] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) got netsplit. [09:31] hibread (n=hibread@124.189.243.34) got netsplit. [09:31] thomi_ (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) got netsplit. [09:31] d34df00d (n=d34df00d@80.251.122.132) got netsplit. [09:31] Sput (n=sputnick@quassel/developer/sput) got netsplit. [09:31] EgS (n=egs@quassel/developer/egs) got netsplit. [09:31] zbenjamin|out (n=Benjamin@h1020694.serverkompetenz.net) got netsplit. [09:31] [Peter] (i=peter@debian.as) got netsplit. [09:31] AceLan (n=AceLan@61-221-51-174.HINET-IP.hinet.net) got netsplit. [09:31] racicot (n=chatzill@osgeo/member/racicot) got netsplit. [09:31] phon (n=quassel@quassel/developer/phon) got netsplit. [09:31] chrisinajar: in.writeRawData("some data",9); should write out 9 bytes, so a shouldn't be empty after that. [09:32] psn (n=psn@90-224-65-4-no91.tbcn.telia.com) returned to #qt. [09:32] fdoving (n=frode@edge.lnix.net) returned to #qt. [09:32] Andy80 (n=andy80@host251-14-dynamic.9-79-r.retail.telecomitalia.it) returned to #qt. [09:32] Ulmanen (n=mamb@host-212-149-245-8.kpylaajakaista.net) returned to #qt. [09:32] thomi_ (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) returned to #qt. [09:32] d34df00d (n=d34df00d@80.251.122.132) returned to #qt. [09:32] Sput (n=sputnick@quassel/developer/sput) returned to #qt. [09:32] EgS (n=egs@quassel/developer/egs) returned to #qt. [09:32] zbenjamin|out (n=Benjamin@h1020694.serverkompetenz.net) returned to #qt. [09:32] phon (n=quassel@quassel/developer/phon) returned to #qt. [09:32] [Peter] (i=peter@debian.as) returned to #qt. [09:32] racicot (n=chatzill@osgeo/member/racicot) returned to #qt. [09:32] AceLan (n=AceLan@61-221-51-174.HINET-IP.hinet.net) returned to #qt. [09:32] kibab: what's the most effective way to echo out a QByteArray? [09:33] because it still appears to be empty, that could be my problem... [09:33] chrisinajar: if you don't mind hex, qDebug() [09:33] Indeed: " [09:33] it's empty... [09:33] even write writeRawData [09:34] anyone...? o.o [09:34] chrisinajar: and size() returns 0? [09:34] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) returned to #qt. [09:34] !wiki mplayer [09:34] kibab: No matches. [09:35] it returns nothing, not even a 0... [09:36] Atte: you have to use the window id: http://lists.trolltech.com/qt-interest/2007-02/thread00947-0.html [09:36] Atte: there's a better article (in English) somewhere, but I couldn't find it [09:37] hibread (n=hibread@124.189.243.34) got lost in the net-split. [09:37] ah, ok, thanks [09:37] Atte: see also http://www.qtforum.org/article/16638/launching-mplayer-using-qt.html [09:37] thanks again ^^ [09:37] claudio_ (n=claudio@216.142.48.50) joined #qt. [09:38] kibab: toBase64 saves the day! [09:38] kibab: thanks for the help :) [09:39] chrisinajar: was it just not displaying correctly? [09:39] kibab: indeed. It was not showing anything at all.. [09:40] kibab: i think it had binary stuff in it that was screwing up my konsole... [09:47] anselmolsm (n=anselmol@201.82.105.195) joined #qt. [09:48] makkalot_ (n=makkalot@85.96.50.249) left irc: Read error: 110 (Connection timed out) [09:49] makkalot_ (n=makkalot@85.96.50.249) joined #qt. [09:49] SimonAW (n=sxw@p5B115779.dip.t-dialin.net) joined #qt. [09:50] nplus (n=npl@141.25.globcom.net) joined #qt. [09:52] thomi_ (n=thomi@cpc1-woki5-0-0-cust963.glfd.cable.ntl.com) left irc: Remote closed the connection [09:53] Gunirus (n=Gunirus@unaffiliated/Gunirus) left irc: Nick collision from services. [09:56] how would i add a dock widget to my window, on the bottom, so that it lays "on top" of other dock widgets already present, and shows them in tabs? [09:58] hw__ (n=hw@p578b3905.dip0.t-ipconnect.de) left irc: Read error: 104 (Connection reset by peer) [09:58] GCN (n=GCN@2a01:e35:2eeb:1680:213:d4ff:fef5:8f46) left irc: "Konversation terminated!" [09:59] GCN (n=GCN@2a01:e35:2eeb:1680:213:d4ff:fef5:8f46) joined #qt. [10:00] Gunirus (n=Gunirus@unaffiliated/Gunirus) joined #qt. [10:02] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: Read error: 110 (Connection timed out) [10:02] is it possible to emit a signal from a method that is declared const? [10:02] lemma: no [10:02] thiago: aw :( [10:02] thiago: thanks! [10:03] lemma: and you can't declare a signal const. [10:03] thiago: I wouldn't have tried :) [10:04] eeanm (n=ian@216.146.251.4) joined #qt. [10:04] can someone explain http://doc.trolltech.com/4.4/qabstractitemview.html#startDrag to me? [10:04] I'm trying to understand some code that uses startDrag [10:04] kushal (n=kd@122.167.38.40) left irc: Read error: 110 (Connection timed out) [10:04] thiago: it's just that I'm "trapped" inside a QAbstractItemView::selectionCommand [10:04] Action: thiago looks away [10:05] lemma: there are hacks to get out of that, but ask yourself: why do you want to emit a signal (state change) from a function that isn't supposed to change state? [10:05] like this QTreeView doesn't use any of the normal Item/View drag and drop methods [10:06] I'm thinking of replacing it with code I understand, but I thought I'd make some effort to grok it first :) [10:06] thiago: selectionCommand seemed like the only way I could check a condition before allowing or denying a selection to change [10:07] hawk_pdm (n=robert@dslb-088-072-193-076.pools.arcor-ip.net) joined #qt. [10:07] rncbc (n=rncbc@85.139.129.7) joined #qt. [10:09] ok here's a more specific question: is startDrag a method that's meant to be overridden, not something that's supposed to be called? [10:10] eeanm: I haven't used it yet, but judging from the general style of Qt I've experienced in the short time I've been using it, I guess it's meant to be overridden [10:11] I'm grepping KDE source code and haven't found anyone calling it, outside of the code I'm trying to understand :) [10:11] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [10:11] I think it's wrong [10:12] meyerm (n=meyerm@e181082224.adsl.alicedsl.de) left irc: Remote closed the connection [10:13] is there an MS SQL Server driver that comes with Qt? [10:14] i know that there are couple SQL classes in Qt, but I don't know how to use those to connect to a SQL Server [10:14] krawek (n=krawek@nelug/developer/krawek) joined #qt. [10:15] dlee: it has an ODBC driver which enables you to use MS SQL [10:16] dlee: no MSSQL comes with Qt [10:16] it costs good money to buy that from Microsoft. [10:16] well, our company already has a running SQL Server instance [10:16] you can use SQLite or any of the good, free RDBMS out there [10:16] i just need to connect to it [10:16] if you already have MS SQL, you can use Qt [10:17] is it compatible with the authentication models and with stored procedures? [10:17] the driver is provided as part of the commercial edition of Qt [10:24] Nick change: chrisb7_ -> chrisb7 [10:26] valcker (n=valcker@92.112.13.116) left irc: Read error: 104 (Connection reset by peer) [10:26] Nick change: amrit|zzz -> amrit|wrk [10:29] momesana (n=momesana@134.102.123.211) joined #qt. [10:32] Pinaraf (n=moi@ALille-251-1-33-109.w82-127.abo.wanadoo.fr) left irc: Remote closed the connection [10:33] Pinaraf (n=moi@ALille-251-1-33-109.w82-127.abo.wanadoo.fr) joined #qt. [10:39] mueslix (n=muesli@amarok/developer/muesli) left irc: "Konversation terminated!" [10:40] mueslix (n=muesli@87-194-56-45.bethere.co.uk) joined #qt. [10:40] thiago: I have a widget that wants to know when something from it is dragged and when the dragging ends. Currently it's using some hacks in mouseMoveEvent. is there a better way? [10:43] eeanm: but it's the same widget which decides when the drag starts and also gets the return value of QDrag::exec() no? [10:44] well it's a QAbstractItemView, all it does is enable drags. there is no code in there calling eg QDrag::exec [10:44] eeanm: i suppose QAbstractItemView::startDrag() can be reimplemented to adjust dragging behavior and it can be called by hand if you want to start a drag outside mouseMoveEvent() ie. in a custom place [10:44] the code currently calls startDrag within mouseMoveEvent [10:45] for example QListView reimplements startDrag() to do some additional checks whether to use real drag and drop or just move icons around [10:45] so startDrag happens before the drag? [10:46] startDrag() starts the actual drag by constructing a QDrag object and calling it's exec() method [10:46] (the current code is very brokenated by the way) [10:46] ah I see. so a reimplementation of startDrag has to do this [10:46] I think reimplementating startDrag is probably the correct way to do what I'm doing here then [10:47] may i ask what are you doing then? ;) [10:47] ah sure [10:47] i must admit that i never liked the way dnd is handled with item views [10:47] so when a drag starts, we want to have some "drop points" appear [10:48] and then disappear when the drag ends [10:48] this is Amarok, so you drag an album, drop it on to the "append to playlist [10:48] " or "send to media device" thing [10:48] ahh ok [10:49] currently the drag can't be ended without killing Amarok :) [10:51] :) [10:53] anyway, that's exactly one of the problems with dnd in model-views. it's too hard to restrict certain items to be dropped to certain locations only [10:53] ah we're not wanting to be restricted [10:54] we just want to be informed of the lifecycle fo the drag [10:54] *of the drag [10:56] oh okay, but still ;) [10:57] Action: jpnurmi is eagerly waiting for the next generation of model views [10:58] heh [10:58] jpnurmi: do you know what's being planned? [10:59] DaniloCesar (n=DaniloCe@nat/mandriva/x-f95ed294b2bf7d05) left irc: "Leaving" [10:59] Dave43 (n=david@dhcp-152-78-61-126.ecs.soton.ac.uk) left irc: Remote closed the connection [11:01] Purple_Hatstand (n=john@dhcp-152-78-61-133.ecs.soton.ac.uk) left irc: [11:01] Elperion (n=Bary@p54875C42.dip.t-dialin.net) joined #qt. [11:03] ker (n=oli@offb-4dbd50a8.pool.einsundeins.de) left irc: Read error: 113 (No route to host) [11:06] makkalot__ (n=makkalot@85.96.50.249) joined #qt. [11:06] makkalot_ (n=makkalot@85.96.50.249) left irc: Read error: 110 (Connection timed out) [11:07] krawek (n=krawek@nelug/developer/krawek) left irc: Read error: 110 (Connection timed out) [11:07] hm.. I have problem with designer, I've created QDialog and it hasn't minimal size (i can resize it for example to 10x10 pixels). How can I fix it? It's good to set minimal size by myself? [11:09] mikkoc (n=quassel@host63-90-dynamic.11-79-r.retail.telecomitalia.it) left #qt ("#qt"). [11:10] HanzZ: maybe you QDialog just needs a layout? [11:11] i have grid layout there [11:11] if you developed software using Qt Eval License, and end up buying Qt Commerical License, can you continue development on the software you were writing using Qt Eval License? [11:12] dlee: IANAL but yea I think that's the point of the Eval license :) [11:12] eeanm: not much really. just the little information revealed at devdays. i don't remember seeing any blogs or anything about it... [11:12] HanzZ: does the QDialog itself have the grid layout set? [11:13] jpnurmi: ah yea. me neither :) [11:14] jpnurmi: it scares me, half of Amarok code is a item/view these days. [11:14] yes it has [11:14] http://img376.imageshack.us/img376/7813/jabbim53nu5.png [11:14] here you can see my problem [11:15] in designer are the sizes good (i can't resize it to bad size), but in preview and in real app it doesn't work [11:16] kushal (n=kd@122.167.38.40) joined #qt. [11:16] what is the problem with line #63? (sorry if its a noob question, but i'm not understanding... =S) [11:16] what is the problem with line #63? (sorry if its a noob question, but i'm not understanding... =S) http://rafb.net/p/S3uwro62.html [11:17] tavl: judging by rafb's python syntax highlighting, exec appears to be a python keyword [11:17] you should user exec_() [11:18] *use [11:18] but don't know if exec_() exists in pyqt [11:18] *pyqt3 [11:18] HanzZ, eeanm: i would like to do this -> http://doc.trolltech.com/4.4/qdialog.html#exec ... should I really use that "exec_()" [11:19] HanzZ: it's exec_loop() in pyqt3 [11:19] well I obviously you shouldn't use exec(), it's a syntax error. ;) [11:19] =P [11:20] Elperion (n=Bary@p54875C42.dip.t-dialin.net) left irc: "CYA @all" [11:21] tavl: this is different in pyqt because exec is python command, so pyqt has to use something different than exec()... as kibab said, it is exec_loop() for pyqt3 and exec_() for pyqt4 [11:21] HanzZ, thanks for the clue... i'll give it a try... [11:24] Arixx (n=asd@unaffiliated/arixx) joined #qt. [11:25] hm... I've fixed my problem... when i don't use QHBoxLayout in QGridLayout which is layout for QDialog then it works well [11:25] can a dock widget contain a main window? [11:26] o.O [11:26] why you want it? [11:27] that's like "can a horse contain a stable?" [11:27] i may not. but my understanding of a dock widget was that it was a wrapper for widgets that allowed them to be docked. so, i have "another" window that i'd like to dock, and that other window just might be a main window class (a stand-alone window in other words with its own menu and all that) [11:28] al3x4ndr3 (n=alexandr@208.pool85-57-69.dynamic.orange.es) joined #qt. [11:28] it's a wrapper for widgets to allow them to be docked into a QMainWindow [11:28] i'm feeling my way through dock windows and such [11:28] thus the "there is no spoon" quality to your question :) [11:29] i'd have to say i'm unfamiliar with that expression [11:29] or its meaning [11:29] it's a Matrix reference. [11:29] anyways [11:29] oh [11:29] I'm not even sure you can have two QMainWindow's at a time [11:29] got it [11:29] duh [11:29] really? [11:30] i thought you could [11:30] maybe not, eh? [11:30] i can create one [11:30] it opens [11:30] (a second one) [11:30] ok, so I guess you can then :) [11:30] you can have two mainwindows [11:30] and maybe you can have mainwindow docked to another mainwindow [11:31] mainwindow is also widget :) [11:31] qmainwindow's are widgets, you can put widgets into a dockwidget. so I suppose the answer is yes. [11:31] i would think so, then.... it's just not behaving as such [11:31] yet [11:31] it means qmainwindow wouldn't be a window though [11:31] ;) [11:31] that's a bit odd [11:31] it might be [11:32] i may be headed down the rabbit trail [11:32] or so the expression goes [11:32] ;) [11:32] hehe yea [11:32] i really am after a "debug" window [11:32] that can contain multiple sub-windows [11:33] and that can act as its own container/manager for said sub-windows [11:33] and can be called upon from the main window [11:33] and docked if so desired [11:33] yea I guess a qmainwindow kind of makes sense :) [11:33] though, i may put it together and it all may look like crap [11:33] we shall see [11:33] well it will look crappy, but it's a debug window, so that's fine :) [11:34] unless your developing a IDE [11:34] sort of [11:35] i haven't really done any gui until now on this thing [11:35] so i'm fighting my way through much of it [11:36] the idea would be that the "debug" window is really a selcom-used main window entity [11:36] that could be docked [11:36] or detached [11:36] but has its own menu [11:36] (makes sense in my head) [11:37] it's an ide [11:37] marloshouse: please consider using fewer lines to write what you need to write. Please :) .. [11:40] oh [11:40] goodness [11:40] sorry [11:40] DarkWizzard (n=darkwizz@79.114.227.108) left irc: Remote closed the connection [11:43] BtbN (i=btbn@p54BB2AEF.dip0.t-ipconnect.de) left irc: "reboot" [11:45] hmm [11:46] jpnurmi: when I start a dragging a parent item of a tree of items, it creates tons of drags [11:46] Nick change: delroth -> delrawth [11:46] ah I'll check my drag mode [11:46] daniel_ (i=daniel@unaffiliated/daniel) joined #qt. [11:47] hmm none of those modes really seem to apply [11:48] BtbN (i=btbn@p54BB2AEF.dip0.t-ipconnect.de) joined #qt. [11:51] Andy80 (n=andy80@host251-14-dynamic.9-79-r.retail.telecomitalia.it) left irc: "Leaving" [11:52] trumee (n=trumee@cpc1-seve11-0-0-cust723.popl.cable.ntl.com) joined #qt. [11:54] eeanm: tons of drags? [11:55] jpnurmi: I have to click like 10 times to stop dragging [11:55] zwerg (n=zwerg@0-112.vpn.RWTH-Aachen.DE) joined #qt. [11:55] and startDrag is called a bunch, even though it's only one drag. [11:55] gummybearx (n=gc2@external-nat-space1.cec.wustl.edu) joined #qt. [11:55] sheb (n=seb@AToulouse-152-1-69-83.w83-200.abo.wanadoo.fr) joined #qt. [12:00] tuxipuxi (n=michael@konversation/developer/pdpc.active.tuxipuxi) left irc: "Verlassend" [12:02] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: Read error: 110 (Connection timed out) [12:04] daniel (i=daniel@unaffiliated/daniel) left irc: Read error: 110 (Connection timed out) [12:07] where can i read about the __init__.py file? [12:07] (sorry, 1st match at google... =S) [12:08] the underscores means its an internal python thing [12:08] so you probably don't need to read about it ;) [12:11] berniyh (n=berniyh@gentoo/user/berniyh) joined #qt. [12:12] Nick change: delrawth -> delroth [12:12] berniyh_ (n=berniyh@gentoo/user/berniyh) left irc: Read error: 104 (Connection reset by peer) [12:13] trumee (n=trumee@cpc1-seve11-0-0-cust723.popl.cable.ntl.com) left irc: Remote closed the connection [12:13] hi, i'm tring to display a string list in a treeview, i created it did these : QStringListModel p_model(temp_plist); treePersonList->setModel(&p_model);treePersonList->repaint();,but they are not displayed what can i do ? [12:13] what's treePersonLIst? [12:16] does the model get deleted? [12:16] i guess it runs out of scope and dies a gruesome death at the hands of The System [12:16] chakie, no they are one after another [12:17] um? [12:17] p_model does look awfully like it's about to be deleted :) [12:17] :) [12:18] allocate on the heap and try again [12:18] the p_model ? [12:19] do you understand what we mean? [12:19] chakie, ah it worked but why :) [12:19] icant see the difference [12:20] get an introductory c++ manual [12:20] psn_ (n=psn@90-224-65-4-no91.tbcn.telia.com) joined #qt. [12:20] when a method/slot/function/block ends, all variables in it are destroyed [12:20] chakie, i know that but my block or function doesnt end there [12:20] that happened to your model when the slot (i guess) was done, it was deleted and removed from the view [12:21] a repaaint does not show anything immediately [12:21] -a [12:21] and it is really totally unnecessary there [12:21] ok will delete it, just wanted to repopulate [12:21] nothing will show up until the slot (?) is done and qt gets control again, and at that point the model is in bit heaven [12:22] i see [12:22] if you do not understand the difference, i can't explain it better [12:22] and in fact, i have an exam to study for :) [12:22] chakie, no problem i got it and thanks [12:23] momesana (n=momesana@134.102.123.211) left irc: "good bye!" [12:23] SimonAW (n=sxw@p5B115779.dip.t-dialin.net) left irc: [12:24] ok, great :) [12:26] th (n=th@threllis.net) joined #qt. [12:29] OniLink (n=boris@240-118-223-201.adsl.terra.cl) joined #qt. [12:29] Arixx (n=asd@unaffiliated/arixx) left irc: "Leaving" [12:30] parapente (n=nobody@ppp235-142.adsl.forthnet.gr) left irc: Remote closed the connection [12:31] psn (n=psn@90-224-65-4-no91.tbcn.telia.com) left irc: Read error: 110 (Connection timed out) [12:31] Nick change: psn_ -> psn [12:32] i iterate over items returned from QItemSelectionModel::selectedIndexes() is it possible to use the returned index on the original model? or do i have to iterate over the model and use ::isSel [12:32] ected(...) on every item? [12:33] when i use the indexes from the selection i always get an empty string [12:33] (model.data(index, Qt::DisplayRole).toString()) [12:34] th: that's perfectly valid.... what model are you using? [12:34] th: but in some cases you'll need a valid parent as well [12:35] kibab: my model is a QStandardItemModel but i do filtering with my own heir of QSortFilterProxyModel [12:36] Purple_Hatstand (n=john@dhcp-152-78-61-133.ecs.soton.ac.uk) joined #qt. [12:36] (that filter only overloads the filterAcceptsRow()) [12:36] th: pass the parent from the index as well... or use index.data(Qt::DisplayRole) [12:37] th: also note that QStandardItemModel uses Qt::UserRole + 1 for certain things, so if you do any custom manipulations, you have to be aware of that. [12:37] oh - so i should better inherit QAbstractItemModel when doing more complex things? [12:38] Dave43 (n=david@dhcp-152-78-61-126.ecs.soton.ac.uk) joined #qt. [12:41] i get the correct data on the original model now, but i want to edit that data... index.data(...) does not help here [12:42] th: as long as you use the item to do the manipulations, the QStandardItemModel is fine. [12:42] jihi (n=jihi@L1c7c.l.pppool.de) left irc: Read error: 104 (Connection reset by peer) [12:45] why the dialog doesn't show up when i call "readFromUser" inside the MyThread class (line #131), but works well when called from the MyWindow itself (line #58)? http://rafb.net/p/sZwIs839.html [12:48] kibab: but how would i get the item from the selection (QItemSelectionModel::selectedIndexes()) [12:49] Snouffy (n=Snouff@stp25-2-82-234-233-78.fbx.proxad.net) joined #qt. [12:49] crweb (n=tom@12-210-80-80.client.mchsi.com) joined #qt. [12:50] Hello there ! Does anyone know if I can "easily" use Qt to show dvi files (made with LaTeX) ? [12:50] th: model.item(index.row(), index.column()) [12:51] kibab: ahh but NOT using the index.model() because that returns const [12:52] Snouffy: there's no easy way to do that. You could write your own parser.... or look at the okular libs and see if they support it [12:52] kibab, ok thanks :) [12:52] th: you'll have to cast it [12:52] n0x (n=zeus@unaffiliated/n0x) joined #qt. [12:52] kibab: so it is save to cast that const away? [12:52] Hello. Can I use QProcess to interact with a program like Python? I.e., I wish to use the Python interpreter through a Qt program. [12:53] th: if you have guarantees about the model, etc., then yes. [12:53] bhughes_ (n=bhughes@164.80-203-90.nextgentel.com) joined #qt. [12:53] zwerg (n=zwerg@0-112.vpn.RWTH-Aachen.DE) left irc: Read error: 113 (No route to host) [12:53] n0x: yes, you could send it input and interpret it's output, although there might be a better solution depending on what your needs really are [12:54] kibab, okay, great. The thing is that I wish to interact with Gnuplot but can't seem to do it by "simple" *FILE variables and since i'm already using Qt as the graphical interface, a friend told me I might be able to use QProcess [12:56] one more stupid question : Would it be easy to integer kdvi into a Qt app ? Like having a frame in which kdvi would be open ? [12:56] zwerg (n=zwerg@3-037.vpn.RWTH-Aachen.DE) joined #qt. [12:56] kd_ (n=kd@122.167.38.40) joined #qt. [12:57] kushal (n=kd@122.167.38.40) left irc: Nick collision from services. [12:57] Nick change: kd_ -> kushal [12:57] Pinaraf (n=moi@ALille-251-1-33-109.w82-127.abo.wanadoo.fr) left irc: Remote closed the connection [12:57] kibab: thanks - for your help. [12:58] Pinaraf (n=moi@ALille-251-1-33-109.w82-127.abo.wanadoo.fr) joined #qt. [12:58] Snouffy, kdvi is a KDE specific component (KPart), you need KDE for it. [12:58] kdepepo, I know, that's not my issue [12:59] I'd like to know if I could "insert" an external programm like kdvi to a Qt app [12:59] you can [12:59] so I could show dvi files [12:59] I forget how though ;) [12:59] great :) [12:59] it's a feature of X [12:59] a hint on what I should google ? [12:59] X11Embed [12:59] yea that's a good hint I think [13:00] ) [13:00] ;) [13:00] QtX11Embed, actually... [13:00] thanks :) [13:00] Or QX11Embed [13:00] ok I'll try those two thanks again [13:00] Hello [13:02] I have noticed when resizing a QPixmap on arm (1.5mb jpeg image ) it takes up to 8 mb of memory to do the resizing... Any idea how to optimize this ? [13:03] Is the file 1.5 mb, or the pixmap [13:04] the file [13:04] jpeg is compressed. [13:04] but after the resizing is done, then the memory is freed again. [13:04] do you scale up or down [13:05] voi vittu [13:05] errrh.. wrong channel >:| [13:06] Question: is Qt considered as a framework? [13:06] I consider it a toolkit [13:06] same [13:06] yea I guess so [13:07] Qt is a godsent, nothing else :) [13:07] kdepepo, also true ;) [13:07] n0x: A framework is a basic conceptual structure used to solve or address complex issues. [13:08] n0x: I don't see Qt really fitting into that definition. Sure it uses frameworks (like model-view), but it is not one. [13:08] (i am just making things up) [13:08] al-, okay, thanks for the clarification. [13:09] i think its considered more of a toolkit for development [13:09] i am sure someone could argue either way more convincingly [13:09] kdepepo, scale down [13:09] it is a framework of sorts, also a collection of frameworks.. [13:10] Dave43 (n=david@dhcp-152-78-61-126.ecs.soton.ac.uk) left irc: Remote closed the connection [13:10] bhughes_ (n=bhughes@164.80-203-90.nextgentel.com) left irc: "Leaving" [13:11] claudio_: it might work better to go from QImage to QPixmap with the scaling being done on QImage. [13:12] claudio_: since QImage doesn't require the entire image to be drawn. [13:14] anyone can help me here? why the dialog doesn't show up when i call "readFromUser" inside the MyThread class (line #131), but works well when called from the MyWindow itself (line #58)? http://rafb.net/p/sZwIs839.html [13:14] claudio_, so it goes like this: (loading 1.5mb file) -> (decompressed to 8 mb) -> (scaled down to say 1 mb) -> (freeing 8 mb original size) [13:14] aalhamad (n=aalhamad@41.233.171.107) joined #qt. [13:15] Since there is some activity here on the channel, I have a question regarding QListWidget: how can I check for duplicates in the list, i.e. I don't want to have two items of the same showed name in the list. [13:15] claudio_, if you need to scale down while loading, you should be using libjpeg directly. [13:15] Purple_Hatstand (n=john@dhcp-152-78-61-133.ecs.soton.ac.uk) left irc: [13:16] claudio_, many image viewers use the fast libjpeg scaling for thumbnails [13:16] n0x: what about using QListWidget::findItems and check if the returned QList is empty? [13:17] skejoe, sure, I didn't know it existed. Thanks [13:17] Np.- [13:19] aalhamad (n=aalhamad@41.233.171.107) left #qt ("Leaving"). [13:21] kdepepo, oh I see... I have no experience with libjpeg at all, any pointers? [13:22] al-, actually all of this resizing is done before displaying the image [13:23] claudio_: i know. It was my understanding that QPixmap paints the image even if it wasn't displayed. It seems like libjpeg is a better route though, but may require more leg work (my solution would require maybe another line of code) [13:23] al-, oh I see, I will take a look at that thanks [13:24] bmann (n=andi@barop.wh.uni-dortmund.de) left irc: [13:25] gemidjy (n=gemidjy@unaffiliated/gemidjy) joined #qt. [13:25] HanzZ, can you help me again? why the dialog doesn't show up when i call "readFromUser" inside the MyThread class (line #131), but works well when called from the MyWindow itself (line #58)? http://rafb.net/p/sZwIs839.html [13:25] claudio_, http://www.ijg.org/files/ (yes, it looks sparse, but libjpeg is 100% stable since many years) [13:26] BtbN (i=btbn@p54BB2AEF.dip0.t-ipconnect.de) left irc: "leaving" [13:27] claudio_, a copy of libjpeg is included in Qt source also (3rdparty), but some documentation may be removed there. [13:27] I know i have the library on the device, I just need to learn how to use it [13:27] claudio_, I used libjpeg 15 years ago, it isn't hard :) [13:27] Do I have to use one of the utilities or is there like an api for it ? [13:28] it looks like jpeglib.h is fairly well documented [13:28] claudio_, you use libjpeg api [13:28] claudio_, it is a C library [13:30] how do you get a list of ODBC data sources using QSqlDatabase? [13:30] gemidjy (n=gemidjy@unaffiliated/gemidjy) left irc: "Lost terminal" [13:30] kdepepo, oh ok got it thanks [13:31] i can connect to the database using QSqlDatabase if i know the name of the ODBC data source, but how do i get the list of all ODBC data sources defined in the system? [13:32] tommyd (n=tommyd@p5B277613.dip.t-dialin.net) joined #qt. [13:33] Nick change: chrisb7 -> chrisb7_ [13:38] tgillespie (n=tom@78.148.109.91) joined #qt. [13:38] hi all, can i draw directly on a qicon? [13:42] abdb (n=57fd3021@67.159.55.26) left irc: "CGI:IRC (Session timeout)" [13:43] Triskelios (n=trisk@sfcc-208-115-75-235.smartcity.com) joined #qt. [13:43] s1d (n=s1d@64.81.136.196) left irc: Read error: 104 (Connection reset by peer) [13:43] s1d (n=s1d@64.81.136.196) joined #qt. [13:44] tgillespie: no [13:44] tgillespie: you draw using a qpainter [13:45] qknight but can i get a qpainter to draw onto a qicon, thats what i meant sorry [13:45] tgillespie: and if you are done, then you export it to a QPixmap which can then be displayed via a qlabel [13:45] tgillespie: you can use a qpainter to draw, then you convert it into a pixmap and then you display it using a qlabel. so yes you can [13:46] qknight thats what i was going to do more or less, it just seemed a bit convoluted [13:46] tgillespie: no, that's alright ;-) [13:46] Purple_Hatstand (n=john@87-194-162-239.bethere.co.uk) joined #qt. [13:47] qknight lol ok thanks [13:47] notabene (n=57fd3021@67.159.55.26) left irc: "CGI:IRC (Session timeout)" [13:48] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: "leaving" [13:49] Dave43 (n=david@wibble.sihnon.net) joined #qt. [13:50] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [13:51] Lucifer_pen (n=Miranda@m20677151029.austincc.edu) joined #qt. [13:51] cauliergilles (n=gilles@78.112.55.116) left irc: Remote closed the connection [13:54] Question: is there anyway to convert a QByteArray to a QString (even if I know that it contains a string)? [13:55] n0x: sure there is [13:55] n0x: it's quite easy [13:56] n0x: [13:56] char * data () [13:56] is what you want [13:56] QString foo = QString(mybytearray.data()); [13:56] Okay, great, thank you very much! :) [13:57] (I actually was looking for QString in the manual, didn't think of searching for "data") [13:58] skejoe_ (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [13:58] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: Read error: 104 (Connection reset by peer) [13:59] n0x: QString::fromUtf8(mybytearray.data()) might be better depending on encoding, etc. [13:59] kibab, okay, great thanks a lot :) [13:59] but note that there's also a QString() constructor that takes in a byte array :) [14:00] kibab: didn't know that [14:02] skejoe_ (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: Client Quit [14:02] qknight: it only works with ascii text, and may not be enabled if QT_NO_CAST_FROM_ASCII is defined [14:04] n0x: QByteArray and QString are two different things [14:04] QString = QByteArray + encoding [14:04] so you cannot freely convert from one to the other, since they don't match [14:04] you need a third piece of informatin [14:04] eeanm (n=ian@216.146.251.4) left irc: Remote closed the connection [14:04] Adrian_dlcspm (n=aparker@d38-64-115.commercial1.cgocable.net) left #qt ("Leaving"). [14:05] thiago_home, Okay, thanks. But actually, it's just "basic" non-special-encoded text (it's like the output of the Python interpreter that I want to get). [14:05] that doesn't matter if it's simple or complex [14:05] you *need* to know the encoding [14:05] and you must not lose track of that [14:06] any text that is text (as opposed to binary data) has an encoding. [14:06] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [14:07] so, what is the encoding of your text? [14:07] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: Client Quit [14:07] Gunirus (n=Gunirus@unaffiliated/Gunirus) left irc: "Lost terminal" [14:07] thiago_home, ugh, well, I don't really know. I would say that it is UTF-8. [14:08] (because my system is in UTF-8 and i'm retrieving the data directly from my system) [14:08] if you guess wrong, you'll get garbled data in the string [14:08] so, don't guess wrong. [14:09] what's your objective anyways? [14:10] thiago_home, my objective is to dialogue with gnuplot (which is great plotting program). To do so, I'm using a QProcess in which I'll write the commands I wish to execute and get the output using readLine() inherited from QIODevice. [14:10] ok [14:10] that's all QByteArray [14:10] and all the output (unless there is an unexepcted error) is just numbers [14:10] where does the QString come from? [14:11] yes, and I wish to convert it to QString so I can then convert it to "double" and do some math on it [14:11] pyCube (n=jmayfiel@12.87.213.22) joined #qt. [14:11] (I have to use gnuplot to solve equations) [14:11] again, why do you need to convert to QString? [14:11] hawk_pdm (n=robert@dslb-088-072-193-076.pools.arcor-ip.net) left irc: "Leaving." [14:12] Hmm.. i have a widget with children qpushbuttons. when i add this widget to a scrollarea, the button signals stop working.. [14:12] http://doc.trolltech.com/4.3/qbytearray.html#toDouble [14:12] is there something special one must do regarding scrollareas? [14:12] I need to convert to QString only to be than able to find and convert the received data to a number (e.g. a double or a float) because I must do math operations on the final output [14:13] pyCube: no [14:13] MK0r (i=bla@pD9EA89CA.dip0.t-ipconnect.de) joined #qt. [14:13] thiago_home, ah-ha, ok, I didn't see that at first. Great, thank you. [14:13] makkalot__ (n=makkalot@85.96.50.249) left irc: "Leaving" [14:13] rohanpm: but why does everything work, but adding it to the scrollarea makes all signal/slot fun stop [14:14] Scorp1us (n=Scorp1us@216.50.65.6) joined #qt. [14:14] I don't know, try showing your code. [14:14] is there reference codeon how to run an exec() loop and start a function? I seem to remember this was done via a singleshot timer [14:15] rohanpm: i was just wondering if there was any special precautions about qscrollarea and signals getting eaten [14:16] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [14:16] ereslibre (n=rafael@84.76.47.176) joined #qt. [14:18] seeing as this widget works wehn added to a non scrollarea, but not in the scrollarea.. in the same app [14:18] ..but anyway [14:19] xtingray (n=xtingray@190.144.46.50) joined #qt. [14:19] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: Client Quit [14:19] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [14:20] zwerg (n=zwerg@3-037.vpn.RWTH-Aachen.DE) left irc: Remote closed the connection [14:21] tgillespie_ (n=tom@84.13.124.202) joined #qt. [14:22] tgillespie (n=tom@78.148.109.91) left irc: Read error: 110 (Connection timed out) [14:24] MK0r (i=bla@pD9EA89CA.dip0.t-ipconnect.de) left irc: [14:26] krawek (n=krawek@200.24.107.44) joined #qt. [14:27] momesana (n=momesana@134.102.123.211) joined #qt. [14:28] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: "leaving" [14:31] MK2k (i=bla@pD9EA9455.dip0.t-ipconnect.de) left irc: Read error: 110 (Connection timed out) [14:34] DaniloCesar (n=DaniloCe@lapis-ap.inf.ufpr.br) joined #qt. [14:36] s1d (n=s1d@64.81.136.196) left irc: Read error: 104 (Connection reset by peer) [14:36] s1d (n=s1d@64.81.136.196) joined #qt. [14:37] sharkk (n=sharkk@adsl-ull-248-94.49-151.net24.it) left irc: Remote closed the connection [14:40] what is the simplest way to convert an RGB string like "144,100,72" to a QColor [14:40] I am used to sscanf, but there must be a Qt way :) [14:41] heh [14:41] ummm, subclass qcolor and give it a constructor that parses the string for you :) [14:42] profoX` (n=wesley@ubuntu/member/profox) joined #qt. [14:42] andycr (n=andycr@71-211-50-109.clsp.qwest.net) joined #qt. [14:42] yep, but would I use for parsing... is there a QStringScanFormat? :) [14:42] Can anyone suggest how I might make a "timeline" control, much like for a video editor? [14:42] Just a custom widget? [14:43] andycr, sounds like you need a custom widget... [14:43] andycr, maybe subclass QAbstractItemView, if possible. [14:43] kdepepo: Ok, thanks. Are there any guidelines on how I would keep the native look on all platforms? [14:44] tapas (n=tapas@affenbande.org) left #qt. [14:44] andycr, use QStylePainter and QStyle functions for your rendering if at all possible. [14:44] andycr, for example, you could paint the time header using some CE_Header rendering. [14:45] klebezettel (n=nik@e178166247.adsl.alicedsl.de) left irc: Remote closed the connection [14:45] kdepepo: Thanks [14:46] kdepepo: I'd look at QString and see if it has a Split method or something like that [14:46] this is assuming qcolor doesn't already have such a constructor, of course [14:46] maybe it does? [14:47] Lucifer_pen, I think it only parses "#RRGGBB" hex names [14:47] anyway, split on commas, turn each one to an int, and plug it into qcolor [14:47] andycr (n=andycr@71-211-50-109.clsp.qwest.net) left #qt. [14:47] Lucifer_pen, sounds heavyweight, maybe I will just write my own :) [14:48] Hey, me again... I'm playing around with the Tree widget and I'd like to get the text of the "current item"... I don't get why I have an attribute error : test=self.treeWidget.currentItem.text() [14:48] heh, that's heavyweight? er.... [14:48] Action: Lucifer_pen wonders what you'd consider lightweight then [14:48] Lucifer_pen, splitting involves allocating a list, and allocating each string [14:48] which is what, 9 bytes all together? [14:49] oh yeah, then the 4 bytes for the pointers :) [14:49] Lucifer_pen, cycles... not bytes :) [14:49] er, how often are you parsing such a string, then? [14:49] is this premature optimization I smell? [14:49] Lucifer_pen, sorry, I am used to it :) [14:50] Lucifer_pen, but you are right... [14:50] Action: Lucifer_pen hates parsing char buffers [14:50] (turning back to Kate) [14:50] Triskelios (n=trisk@sfcc-208-115-75-235.smartcity.com) left irc: Connection timed out [14:54] is there any way to use .po file with Qt Linguist ? [14:58] Nick change: Silex -> silex [14:58] Hey, anyone know whether there's a way to use the "small" and "mini" control sizes on Mac OS X from within Qt? [14:59] I just forgot parenthesis it's working now, sorry :) [15:03] xRaich[o]2x (n=raichoo@i59F66B5E.versanet.de) left irc: "leaving" [15:03] tgillespie__ (n=tom@78.150.253.248) joined #qt. [15:05] mueslix (n=muesli@amarok/developer/muesli) left irc: Remote closed the connection [15:09] anselmolsm (n=anselmol@201.82.105.195) left irc: Remote closed the connection [15:11] Pinaraf (n=moi@ALille-251-1-33-109.w82-127.abo.wanadoo.fr) left irc: Remote closed the connection [15:12] What's teh best way to set text size in a label? [15:12] the* [15:12] QLabel that is [15:13] mueslix (n=muesli@87-194-56-45.bethere.co.uk) joined #qt. [15:14] krawek (n=krawek@nelug/developer/krawek) left irc: Read error: 104 (Connection reset by peer) [15:15] malcom2073: you could just use rich/html text if you wanted [15:16] OR you use setFont [15:16] !rtfm setfont [15:16] profoX`: QAction::setFont (4.3.4) - http://doc.trolltech.com/latest/qaction.html#font-prop [15:17] well thats not it -- http://doc.trolltech.com/4.3/qwidget.html#font-prop [15:17] Ah heh, I wasnt looking at inhereted members of qlabel [15:17] thanks [15:17] np, although I personally always use html/css for most of my text markup [15:18] yeah, when I cross compiled the html made the text twice larger on linux than on windows [15:19] rncbc (n=rncbc@85.139.129.7) left irc: Remote closed the connection [15:20] tgillespie_ (n=tom@84.13.124.202) left irc: Read error: 110 (Connection timed out) [15:20] DaniloCesar (n=DaniloCe@lapis-ap.inf.ufpr.br) left irc: "Leaving" [15:23] how does one block on a Qthread? [15:23] parapente (n=nobody@ppp235-142.adsl.forthnet.gr) joined #qt. [15:24] i want call a functiono that runs another event loop, that thread will finish and I need to continue from there. [15:25] hi! I'm trying to display some data in a treeview. I have the model ready (I think) as it's almost a complete copy of the simpletreeview example. [15:26] The problem I have is that I need to call expandAll or collapseAll for the treeview to show the data [15:26] qknight suggested that the model was broken so I tried modeltest but it shows nothing at all [15:27] does anyone have any idea why this would happen? [15:27] sheb (n=seb@AToulouse-152-1-69-83.w83-200.abo.wanadoo.fr) left irc: "leaving" [15:29] mikem4 (n=mikem@85.148.12.76) joined #qt. [15:29] johnyb (n=jb@e176188221.adsl.alicedsl.de) joined #qt. [15:31] Scorp1us: you want to create/run a new thread in a function and wait until the thread has finished and then proceed with that function? [15:31] yeah [15:32] kelvie_ (n=kelvie@24.86.64.198) left irc: Read error: 104 (Connection reset by peer) [15:32] what's the use of using a seperate thread if you are blocking the other thread anyway? [15:32] i know it may seem odd (why start a thread and block on it) but it is an event loop/software abstraction thing [15:32] hmm ok [15:33] Scorp1us: I think you might need QThread::wait() [15:33] !rtfm qthread::wait [15:33] profoX`: QThread::wait (4.3.4) - http://doc.trolltech.com/latest/qthread.html#wait [15:33] kelvie_ (n=kelvie@24.86.64.198) joined #qt. [15:33] i have a COM object in another thread that delivers signals. The original COM function will block for the duration that it needs to, but because the COM object knows nothing about the Qt event loop [15:34] I need to keep the a thread going so that I can post from Qt to Qt, nd the thread enables a level of abstraction [15:34] hmm [15:34] I might be wrong about that [15:34] I have some kinda weird make error, here's a pastebin: http://qtnode.net/index.php/pastebin/5498 (the lines starting with a "@@" are the odd ones. I've written the gcc error beside it and why I don't understand the error also). [15:34] nah, i think wait will do jsut fine [15:35] when I get the last signal, I'll emit finished [15:35] n0x: You can't just convert a QString to a char* with a cast [15:35] (btw, that's too bad qtnode's pastebin doesn't have color highlighting nor highlighted special lines ...) [15:35] n0x: any time you want to go from Qstring -> char* you have to worry about encoding, etc. But, see qPrintable() [15:35] n0x, use .data() [15:36] okay for all that :) [15:36] Scorp1us: ok, good luck then [15:38] Scorp1us, okay, .data() worked (after adding a (char *) in front of course) [15:38] n0x, "rslt = r.toDouble(goodRslt)" should be "rslt = r.toDouble(&goodRslt)" [15:38] parapente, aaah, ok,ok, right, I didn't see that. Sorry :s (it's a bit late where I am but I have to avadance a lot in that project tonight ... ) [15:40] n0x, and "input.contains(srch,false)" should be "input.contains(srch,Qt::CaseInsensitive)" [15:40] there is an example in http://doc.trolltech.com/4.3/qstring.html#contains [15:41] parapente, ah, yes okay... I was looking at the 3.3 version fo the doc and it just said "bool cs", and I read "bool"... [15:41] 3.3? [15:42] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [15:42] use the 4.3 docs then :) [15:42] parapente: does it work fine other than calling expandAll? [15:42] they changed a LOT [15:42] Okay, great, it compiles :) [15:43] kibab, yes [15:44] Nick change: tgillespie__ -> tgillespie [15:44] and I can't really find the reason for that [15:44] Purple_Hatstand (n=john@87-194-162-239.bethere.co.uk) left irc: [15:44] Nick change: eponyme -> EPONYME [15:46] parapente: yeah, I don't remember ever explicitely having to call that after setting the model. [15:46] gummybearx (n=gc2@external-nat-space1.cec.wustl.edu) left irc: Read error: 104 (Connection reset by peer) [15:46] parapente: is the data in the model before you call setModel on the view? [15:47] kibab, no. I load the data later on [15:47] I wanted to create an empty treeview that gets filled after it reads a dir [15:48] I'm trying to port my qt3 app to qt4 but this model/view arch is giving me headaches :-S [15:48] margiolas (i=chris@147.52.24.30) joined #qt. [15:48] profoX` (n=wesley@ubuntu/member/profox) left irc: Read error: 104 (Connection reset by peer) [15:49] sven423 (n=sven@amarok/rokymotion/sven423) left irc: "Amarok - Rediscover your music! :: http://amarok.kde.org" [15:49] parapente: hmmm.... on the modeltest note, you called setModel() on modeltest, and then performed the necessary actions which should have caused data to be displayed in the view? [15:50] yes. and I tried both without the expandAll call and with that call [15:50] parapente: k. you might pastebin some of your code just to see if anybody spots anything wrong. [15:51] I can give you a link if you want to test the prog yourself. it does nothing for now except (with some luck) display the metadata of you mp3 or ogg files [15:51] wait a bit to upload it to svn [16:00] kibab, svn checkout svn://svn.berlios.de/mediatagtools/trunk [16:00] Hey, it's me again: I have a problem when linking: it's kinda very odd (I basically never understand these linking error: why the hell do they occur?). Here's a (colored) pastebin: http://rafb.net/p/ThaXCB67.html [16:00] (In there are the errors and the two concerned files) [16:03] n0x, in QtGnuplotInterface.cpp you need to have QtGnuplotInterface:: in front of every function you implement [16:03] they are part of the QtGnuplotInterface class right? [16:03] ;-) [16:03] tgillespie_ (n=tom@78.144.31.25) joined #qt. [16:03] Aaahh, darn! Right ... I'm really sorry, I'm a Java programmer also ... [16:04] i cant help it, but i really really hate Microsoft C++ code [16:04] its just rubbish, all the way [16:04] kibab, you need taglib, qt4 and cmake to build the program [16:04] GCN (n=GCN@2a01:e35:2eeb:1680:213:d4ff:fef5:8f46) left irc: "ZZZZzzzzzzzz" [16:05] it has the modeltest files included as well [16:11] Okay, it's me again: I have a segfault when I launch the program. The segfault occurs in the QProcess initialization (or so gdb says). Here's a pastebin with the "faulty" code (the process is init'ed at the very beginning) and gdb's backtrace output: http://rafb.net/p/mzswTG13.html [16:12] (I've never used QProcesses before (nor any kind of Process/thread in C++), so I really don't know what to think ... [16:13] momesana (n=momesana@134.102.123.211) left irc: Remote closed the connection [16:13] parapente: TreeModel? [16:13] Snouffy (n=Snouff@stp25-2-82-234-233-78.fbx.proxad.net) left irc: "ZzzzZZzZZZzZzZZ good night ZzZzZzzZzZzzzZZzZZZzZzZZZZZzZ" [16:13] yes [16:13] n0x: your problem is you've used static constructors for everything [16:14] The order in which static constructors is executed is undefined [16:14] And sometimes they never are [16:14] parapente: where how do new rows get added? [16:15] rohanpm, hum, ok,ok. And how do I *not* use static constructors? (Just to clear my mind, static means that they cannot be instantiated, as in Java, right?) [16:15] parapente: BTW, qDebug() / qWarning() are almost always more useful for debugging output than std::cout. They can take standard qobjects, such as qstrings, lists, etc. and display them [16:15] tommyd (n=tommyd@p5B277613.dip.t-dialin.net) left irc: [16:15] n0x: no... my language may have been incorrect. I mean your variables are static globals. [16:15] kibab, in mttMainWin::addFile there is an appendChild call [16:16] n0x: which is what happens when you just plunk them in source files not inside of a function or class [16:16] rohanpm, ah, yes, ok, I see what you mean. [16:16] kibab, also about qDebug: I was using that but someone told me that I shouldn't use it when debugging model/view [16:16] so I tried my luck with cout ;-P [16:17] And the problem I face when I don't put them there is that the QProcess gpp cannot be read if I define it in the constructor... [16:17] parapente: hmm.. I can't think of a single valid reason not to use qDebug()/qWarning()/etc. [16:17] parapente: ok, that's the problem [16:18] it's much easier for me to use qDebug than convert everything in an appropriate format for cout to print [16:18] you found it? :-O [16:18] anselmolsm (n=anselmo@201.82.185.201) left irc: Remote closed the connection [16:18] rohanpm, how can I not make the QProcess gpp static but still be able to use it nother functions? [16:18] parapente: in order for the model to be able to alert the view that it has new rows, etc., you have to implement insertRows(), in which you need to call beginInsertRows() and endInsertRows(), etc. [16:18] yartiss (n=Miranda@modemcable228.1-201-24.mc.videotron.ca) joined #qt. [16:18] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [16:18] n0x: make it a member of the plot class [16:19] parapente: some of what you have in addFile() belongs in the model, but try to keep a reasonable separation of concerns where possible [16:19] n0x: and move your plot class into main() [16:19] parapente: review the docs on the model-view, looking for beginInsertRows(), etc. and you should be able to fix it [16:19] !model-view [16:19] kibab: [model-view] Qt4 introduced a model/view architecture that allows for separation of the model from its view, see http://doc.trolltech.com/4.3/model-view-programming.html [16:19] (your variable of the plot class, rather) [16:20] tgillespie (n=tom@78.150.253.248) left irc: Read error: 110 (Connection timed out) [16:20] hunt0r (n=hunt0r@dslb-088-064-223-227.pools.arcor-ip.net) left irc: "KVIrc 3.2.6 Anomalies" [16:21] rohanpm, main(), you mean the main() of my whole program?! That's sounds kind of like a drastic move hey... Anyways, I've just make gpp a member of the class (by putting in a the header file but as a private member) and it seems to work (no compilation error and no other weirdness). [16:22] thanks kibab for your useful info. I'll try what you said [16:23] n0x: that's not a drastic move, it makes more sense than what you're currently doing [16:23] n0x: what you're currently doing is constructing a QtGnuplotInterface _before_ main where it is totally hidden [16:23] cmarcelo (n=cmarcelo@enlightenment/developer/cmarcelo) left irc: Remote closed the connection [16:24] n0x: if you construct one _in_ main, it makes it more explicit what you are doing [16:24] Not to mention less likely to crash in the future [16:25] rohanpm, hum, ok,ok. So I should move my whole class to the main where QApplication() and .connect() is? [16:25] n0x: No, just the instance of it [16:25] n0x: I guess in some .cpp file, you have a line like this, right: QtGnuplotInterface iface; [16:25] goodnight everybody! time for some sleep... [16:25] tgillespie_ (n=tom@78.144.31.25) left irc: Read error: 110 (Connection timed out) [16:25] n0x: move that into main(), or somewhere else where it makes sense [16:26] Ah, yes, ok,ok. I see what you mean. [16:26] parapente (n=nobody@ppp235-142.adsl.forthnet.gr) left irc: "Leaving" [16:27] parapente: BTW, that explains why modeltest didn't pick up anything, it never received any signals indicating that the model was changing, so it never needed to look at anything. IIRC, once the model 'actually does something' you should see debug output from modeltest [16:30] Ober (n=ober@dns.linbsd.org) joined #qt. [16:32] johnyb (n=jb@e176188221.adsl.alicedsl.de) left irc: Read error: 110 (Connection timed out) [16:38] pyCube (n=jmayfiel@12.87.213.22) left #qt. [16:38] Question: with QProcess, I should be able to have a dialog with an interpreter right? (a Python-like command line interpreter) [16:39] gkiagia (n=gkiagia@147.52.24.39) left irc: Remote closed the connection [16:39] (so I should be able to read lines like ">>>" and the result of python instructions) [16:40] kushal (n=kd@122.167.38.40) left irc: Connection timed out [16:40] n0x: yes [16:41] kushal (n=kd@122.167.38.40) joined #qt. [16:41] Nick change: delroth -> delrawth [16:42] kibab, okay, that is what I though. And how should I do that. For the moment, all I do is this: http://rafb.net/p/mzswTG13.html (function called cmd(const QString), line 45 ) [16:42] (and the following line to readà) [16:42] das_netz (n=dasnetz@189.130.162.172) left irc: Read error: 113 (No route to host) [16:42] kibab, but I don't exactly know that one nor the other works (cmd or getOutput). How could I check that? [16:43] (Well, actually, I'm pretty sure "cmd" doesn't work proprely since it is supposed to show a window and it doesn't ...) [16:43] n0x: (char*)(input.data()) [16:43] n0x: that's wrong [16:44] Dako-kun (n=dako@F300a.f.strato-dslnet.de) left irc: "(~lain) ey, ich kann 90% meines zeugs unter ner console (~lain) nur *chan nid (~lain) links2 -g hat keine tabs" [16:44] You can't just cast a QChar* to a char* [16:44] rohanpm: I'd guess he hasn't updated it since he fixed that (since it was discussed earlier) [16:44] rohanpm, oh, darn it... I added that because input.data() is a QChar* and write() doesn't work with a QChar* [16:44] margiolas (i=chris@147.52.24.30) left irc: Remote closed the connection [16:45] rohanpm: hehe... or maybe not :) [16:45] kibab, no, no, I actually modified that. I was using earlier a QString. [16:45] doitux (n=doitux@p57B6FA3D.dip.t-dialin.net) left irc: "Konversation terminated!" [16:45] (let me be clear: I still do have (char *)(input.Data()) ) [16:45] n0x: change cmd() to take a QByteArray as input instead of a QString [16:45] yartiss (n=Miranda@modemcable228.1-201-24.mc.videotron.ca) left irc: Read error: 110 (Connection timed out) [16:45] anselmolsm (n=anselmo@201.82.185.201) left irc: Remote closed the connection [16:46] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [16:46] anselmolsm (n=anselmo@201.82.185.201) left irc: Remote closed the connection [16:47] rohanpm, ok (I'll just convert the QString I receive to a QByteArray, because otherwise I have to modify half of what i've been coding for the past three hours) [16:47] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [16:47] anselmolsm (n=anselmo@201.82.185.201) left irc: Remote closed the connection [16:48] The constness of your function parameters is pretty weird too [16:48] das_netz (n=dasnetz@189.130.162.172) joined #qt. [16:48] rohanpm, yeah, I can take that off, it's ont big deal for me [16:51] mikem4 (n=mikem@85.148.12.76) left irc: "Java user signed off" [16:51] Purple_Hatstand (n=john@87-194-162-231.bethere.co.uk) joined #qt. [16:53] rohanpm, the following is okay for the conversion right? QByteArray thecmd(""); thecmd.append(input); [16:53] (input is a QString) [16:54] n0x: just do input.toLocal8Bit() [16:54] (I'm asking because it doesn't seem to work much more actually ...) [16:54] how are you testing if it is working? [16:56] al-, I launch my program and test it. I know that when I click on the button "Draw" it sends a command to gnuplot (or at least it is supposed to). And I know that command draws the function. And since nothing shows up, I deduct that it doesn't work. Plus, I have a qDeubg() that shows the command received by the cmd() function. [16:57] n0x: this is not a solution do your problem, but why are you plotting with gnuplot instead of qwt? [16:58] al-, ugh ... well, because I've never heard of qwt . [16:58] n0x: qwt.sf.net [16:58] das_netz (n=dasnetz@189.130.162.172) left irc: Read error: 104 (Connection reset by peer) [16:58] n0x: plotting toolkit based on qt [16:58] das_netz (n=dasnetz@189.130.162.172) joined #qt. [17:00] al-, hum, ok, interesting. I'll maybe use that some other day (because I've been working with gnuplot for a couple weeks now and I have to give in my project tomorrow evening and I've just started re-writting a gnuplot interface class because with the one I used up until now, I could not retrieve the "answer" of gnuplot) [17:01] (and, also, QWT doesn't seem to be able to plot 3D graphs nor parametric curves, and that's what i'm plotting right now) [17:01] kibab (n=kibab@unaffiliated/kibab) left irc: "leaving" [17:02] Action: al- nods [17:03] Anyways, I don't quite understand why my cmd() function doesn't seem to dialog with gnuplot ... :s [17:04] (I also tried the same code with Python, and it doesn't work either, so I'm positive there's somoething I'm doing wrong but .. .what hehe) [17:05] n0x: http://qwtplot3d.sourceforge.net/web/navigation/gallery_frame.html there are some parametric surfaces (once again not the solution) [17:06] Zarin (n=cr@124-169-23-204.dyn.iinet.net.au) joined #qt. [17:06] in deed, nice colors also [17:06] n0x: whats the command? [17:06] n0x: i really like those yellow colors too :-/ [17:07] al-, what command? in gnuplot? If so, first I do: "set parametric;" (and that's supposed to give my this message: "dummy variable is t for curves, u/v for surfaces"). [17:07] n0x: have you stepped through that commands you send, and tried to execute them yourself? [17:08] But it doesn't return anything (actually, it basically just freezes, the time gpp.waitForReadyRead() truns to "true" [17:08] al-, yes I have, and they work perfectly [17:08] jcoonan (i=jcoonan@129.21.110.22) joined #qt. [17:09] (Let me add that they also worked with the other class I used until now that I did not program (but I decided to rewrite the gnuplot interface in order to get the messages comming from gnuplot, which I coulnd't do with the other class) [17:09] I am trying to just nmake a small Hello progam to feel out QT but i dont have any .pro files only vcproj files [17:09] I'm using msvc2008 [17:09] and i compiled the source of QT with the -platform msvc2005 command [17:10] jcoonan: have you looked at http://qtnode.net/wiki?title=Qt4_with_Visual_Studio ? [17:11] jcoonan: i am not sure if it is fully up to date or not [17:11] No not yet, I'll go take alook. Thanks al- [17:11] al-, i'm just going to try writeToStdin() to see if that helps [17:12] xjunior (n=chjunior@201.80.85.17) joined #qt. [17:13] okay, actually, that doesn't seem to exists anymore ... [17:13] (i say it in a 2004 mailing list) [17:15] I have the source and I have configured and nmak'd it before [17:15] but i dont think i did it properly [17:15] is there something i can do to undo what i have done [17:17] did you edit the .pro file? [17:17] no [17:17] I mean the QT source, just to clearify [17:18] you want to re-build the Qt binaries? [17:21] I just want to be able to use the QT VS integration [17:21] crweb (n=tom@12-210-80-80.client.mchsi.com) left irc: Remote closed the connection [17:21] I have the source and I dont think i originally configured it properly [17:22] i have never played with vs integration, sorry [17:23] crweb (n=tom@12-210-80-80.client.mchsi.com) joined #qt. [17:24] k thanks for the link [17:25] Zarin (n=cr@124-169-23-204.dyn.iinet.net.au) left irc: Remote closed the connection [17:25] alunduil (n=alunduil@24-116-232-133.cpe.cableone.net) left irc: Client Quit [17:26] alunduil (n=alunduil@24-116-232-133.cpe.cableone.net) joined #qt. [17:28] structured (n=carm@cpe-72-229-151-94.nyc.res.rr.com) left irc: Read error: 110 (Connection timed out) [17:30] al3x4ndr3 (n=alexandr@208.pool85-57-69.dynamic.orange.es) left irc: Remote closed the connection [17:34] Ha! I think I got my answer! http://labs.trolltech.com/blogs/2006/03/16/starting-interactive-processes-with-qprocess/ [17:35] Okay, but now, how the hell do I use that kind of class ... ?N [17:39] xjunior (n=chjunior@201.80.85.17) left irc: Read error: 104 (Connection reset by peer) [17:40] GodFather (n=GodFathe@c-69-244-163-116.hsd1.mi.comcast.net) joined #qt. [17:40] clusty (n=vlazar@BAF0b53.baf.pppool.de) left irc: Read error: 113 (No route to host) [17:40] clusty (n=vlazar@BAF2164.baf.pppool.de) joined #qt. [17:41] SimonAW (n=sxw@p5B113FCB.dip.t-dialin.net) joined #qt. [17:41] Does anybody know how to use the class I've just posted before: http://labs.trolltech.com/blogs/2006/03/16/starting-interactive-processes-with-qprocess/ [17:42] The linking process doesn't work for me when I do :"InteractiveProcess gpp;". here's the error I get: multiple definition of `InteractiveProcess::stdinClone' [17:42] release/QtGnuplotInterface.o:(.data+0x0): first defined here [17:42] (sorry for the two liner) [17:43] xjunior (n=chjunior@201.80.85.17) joined #qt. [17:43] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [17:45] Tman (i=tyler@adsl-69-153-31-1.dsl.snantx.swbell.net) left irc: Read error: 110 (Connection timed out) [17:45] hibread (n=hibread@124.189.243.34) joined #qt. [17:57] Atte (n=atte@dsl-jklbrasgw1-fe13fb00-103.dhcp.inet.fi) left irc: Remote closed the connection [17:57] Atte (n=atte@dsl-jklbrasgw1-fe13fb00-103.dhcp.inet.fi) joined #qt. [17:59] Okay, good night everybody. Hopefully, my problem will be solved tomorrow morning. See you. [17:59] n0x (n=zeus@unaffiliated/n0x) left irc: "Good Bye" [18:10] kushal (n=kd@122.167.38.40) left irc: Read error: 110 (Connection timed out) [18:11] GodFather (n=GodFathe@c-69-244-163-116.hsd1.mi.comcast.net) left irc: Read error: 104 (Connection reset by peer) [18:14] Scorp1us (n=Scorp1us@216.50.65.6) left irc: Read error: 110 (Connection timed out) [18:18] anselmolsm (n=anselmo@201.82.185.201) left irc: Remote closed the connection [18:20] SimonAW (n=sxw@p5B113FCB.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) [18:21] SimonAW (n=sxw@p5B113FCB.dip.t-dialin.net) joined #qt. [18:23] struktured (n=structur@cpe-72-229-151-94.nyc.res.rr.com) joined #qt. [18:25] thiago_home (n=thiago@kde/thiago) left irc: Read error: 110 (Connection timed out) [18:27] Andrius (i=Stone@85-255-49-139.ip.kis.lt) left irc: Read error: 60 (Operation timed out) [18:31] jcoonan_ (i=jcoonan@129.21.110.22) joined #qt. [18:37] ereslibre (n=rafael@kde/ereslibre) left irc: Remote closed the connection [18:39] Atte (n=atte@dsl-jklbrasgw1-fe13fb00-103.dhcp.inet.fi) left irc: Remote closed the connection [18:39] hello all. I'm bulding a cross platform app via qt4/cmake. On the mac port I am trying to a deploy a mostly statically linked application bundle built among stati modules usually constructed as shared libraries on linux. When I build one of the modules as a static target that depends on qt4, my images resources for that library don't load properly at run time. anyone heard of this issue? [18:40] Lucifer_pen (n=Miranda@m20677151029.austincc.edu) left irc: "Core dumped!" [18:41] struktured: sounds like you might have to statically link in the imageformat plugins too. i have no idea how though [18:41] kushal (n=kd@122.167.38.40) joined #qt. [18:42] you might also consider just bundling the qt frameworks with your app, might be easier [18:43] Dave43: arealdy doing that (or trying to). the problem is I'm trying not to a bundle a library that depends on qt, and instead embed it into a binary [18:43] Dave43: and thus that binary only depnds on some reference to the qt framework, not any external qt plugins [18:44] ah i see [18:45] i'm not really sure. i think Purple_Hatstand has done this before though [18:45] Action: Purple_Hatstand hides [18:46] I haven't done static building [18:46] anselmolsm (n=anselmo@201.82.185.201) joined #qt. [18:46] Cannot open file ':/images/icons/prjm16-transparent.svg', because: Unknown error [18:46] Cannot open file ':images/icons/prjm16-transparent.svg', because: Unknown error [18:46] you need the svg plugin [18:47] The mac way seems to be to copy everything into the app bundle [18:47] Ah..yes QtSvg?. But I also am loading pngs..no errors for them, but they dont' appear. maybe the first error stopped control flow, or QtSVG handles other formats [18:47] the image plugins are separate [18:48] there's an svg plugin in addition to QtSvg [18:48] in: /Developer/Applications/Qt/plugins/imageformats [18:49] Although there are only dylibs there [18:49] jcoonan (i=jcoonan@129.21.110.22) left irc: Read error: 110 (Connection timed out) [18:49] Purple_Hatstand: this is confusing. also, I don't understand why a statically built library that depends on a shared qt library would exhibit this... [18:49] Run from the command line with DYLD_PRINT_LIBRARIES=1 and watch stuff get pulled in [18:51] Purple_Hastand: woah like runtime otools:) give me a minute to parse [18:52] dyld: loaded: /Developer/Applications/Qt/plugins/iconengines/libqsvg.dylib [18:52] dyld: loaded: /Library/Frameworks/QtSvg.framework/Versions/4/QtSvg [18:52] Cannot open file ':/images/icons/prjm16-transparent.svg', because: Unknown error [18:52] dyld [18:54] e-uoaphys (i=e-man@wsip-70-166-132-84.fv.ks.cox.net) joined #qt. [18:55] well I'm out of ideas. will let it go for now. thanks for your help Purple_Hatsand [19:06] kniolet (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) left irc: Connection timed out [19:10] uoaphys (n=e-man@wsip-70-166-132-84.fv.ks.cox.net) left irc: Read error: 110 (Connection timed out) [19:11] where's the best place to put application-wide information? [19:11] for example, a database connection [19:12] right now, the only place seems like QMainWindow [19:13] Ulmanen__ (n=mamb@host-212-149-245-8.kpylaajakaista.net) joined #qt. [19:14] blight_ (n=blight@chello080109145043.tirol.surfer.at) left irc: "using sirc version 2.211+KSIRC/1.3.12" [19:15] killown (n=darklee@unaffiliated/killown) joined #qt. [19:15] Ulmanen (n=mamb@host-212-149-245-8.kpylaajakaista.net) left irc: Read error: 110 (Connection timed out) [19:18] Nick change: amrit|wrk -> amrit|afk [19:30] das_netz (n=dasnetz@189.130.162.172) left irc: Remote closed the connection [19:30] Tman (i=tyler@adsl-69-152-254-154.dsl.snantx.swbell.net) joined #qt. [19:32] killown (n=darklee@unaffiliated/killown) left irc: "Ex-Chat" [19:40] dlee: you can make a singleton for it [19:41] is that the best practice for Qt apps? [19:41] it's what I always do. no idea if it's considered a good idea though :) [19:42] derek_k (n=derek@S0106000f669178a6.wk.shawcable.net) joined #qt. [19:43] kernco (n=chatzill@c-68-83-127-198.hsd1.de.comcast.net) joined #qt. [19:44] I have a Qt Jambi question, is there a channel for that, or do I just ask here? [19:44] i think you ask here kernco [19:45] In C++, you would have a term such as "Qt::AlignHCenter | Qt::AlignCenter", in Jambi I try to do this: "Qt.AlignmentFlag.AlignHCenter | Qt.AlignmentFlag.AlignCenter" but it is saying the | operator isn't defined for them. [19:49] kushal (n=kd@122.167.38.40) left irc: Read error: 110 (Connection timed out) [19:59] oneeyedelf1 (n=knic@c-71-227-176-15.hsd1.wa.comcast.net) joined #qt. [20:04] krawek (n=krawek@190.66.195.84) joined #qt. [20:09] kushal (n=kd@122.167.38.40) joined #qt. [20:14] kushal (n=kd@122.167.38.40) left irc: "Leaving" [20:20] kernco: is that supposed to combine vertical and horizontal? [20:21] Yes [20:21] kernco: do you mean AlignVCenter? [20:22] kernco: seems like you should just be able to do AlignCenter for both VCenter and HCenter alignment (based on C++ docs) [20:22] True [20:22] But what if I want it aligned top-left or something? [20:28] hibread (n=hibread@124.189.243.34) left irc: "Not the default" [20:39] SimonAW (n=sxw@p5B113FCB.dip.t-dialin.net) left irc: [20:42] kernco: without inspect docs personally, is it because they are two separate flags for vertical and horizantal, and you must enable both to true/false accordingly? [20:45] It should be a bitmask, so you would combine the two flags with an or operator. At least that's how it is done in C++ Qt. [20:54] dlee (n=anonymou@207.47.25.98.static.nextweb.net) left irc: [20:56] kernco: it looks you do this: setAlignment( Qt.AlignmentFlag.AlignHCenter, Qt.AlignmentFlag.AlignCenter ); (i.e. as many as you want), or this: setAlignment( Qt.AlignmentFlag.createQFlags( Qt.AlignmentFlag.AlignHCenter, Qt.AlignmentFlag.AlignCenter ) ); [20:57] ahh, ok. Thanks. [21:00] xtingray (n=xtingray@190.144.46.50) left irc: "Saliendo" [21:01] kde_pepo (n=pepo@p5B3BF249.dip.t-dialin.net) joined #qt. [21:03] _kdepepo (n=pepo@p5B3BCB61.dip.t-dialin.net) joined #qt. [21:05] cauliergilles (n=gilles@78.112.55.116) joined #qt. [21:07] SprocketKing (n=Sprocket@203.100.78.94) joined #qt. [21:08] chjunior (n=chjunior@201.80.85.17) joined #qt. [21:08] Are there any methods in the framework to specify scale levels at which features should not be drawn? [21:09] chjunior (n=chjunior@201.80.85.17) left irc: Remote closed the connection [21:10] Ulmanen__ (n=mamb@host-212-149-245-8.kpylaajakaista.net) left irc: Remote closed the connection [21:12] _kde_pepo (n=pepo@p5B3BD0BE.dip.t-dialin.net) joined #qt. [21:17] kdepepo (n=pepo@p5B3BE9EB.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) [21:18] SprocketKing: can you be more specific? [21:18] There is a feature like that in graphicsview [21:19] Regular widgets don't have a concept of "scale level" [21:20] kde_pepo (n=pepo@p5B3BF249.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) [21:22] rohanpm, is that capability available in graphicsview? Lemme be more clear here , Im working on a different project, its in Qt and uses Gdal library. Im little unsure if Qt provides this capability of drawing features based on scale/zoom level...Do you have any idea about that? [21:23] xjunior (n=chjunior@201.80.85.17) left irc: Read error: 110 (Connection timed out) [21:23] krawek (n=krawek@nelug/developer/krawek) left irc: Read error: 104 (Connection reset by peer) [21:23] kde_pepo (n=pepo@p5B3BCE91.dip.t-dialin.net) joined #qt. [21:24] SprocketKing: when you use QGraphicsView, every time an item is painted, that item receives a levelOfDetail parameter which it can use to decide how (and if) it paints itself [21:24] anselmolsm (n=anselmo@201.82.185.201) left irc: Remote closed the connection [21:25] deviceMatrix, virtual to real coordinates? [21:25] in qpainter [21:25] that wouldn't be scale [21:25] cauliergilles (n=gilles@78.112.55.116) left irc: Remote closed the connection [21:26] _kdepepo (n=pepo@p5B3BCB61.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) [21:28] krawek (n=krawek@nelug/developer/krawek) joined #qt. [21:33] kushal (n=kd@220.227.75.194) joined #qt. [21:34] kniolet (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [21:38] _kde_pepo (n=pepo@p5B3BD0BE.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) [21:39] Dave43 (n=david@wibble.sihnon.net) left irc: Remote closed the connection [21:40] jamuraa (n=jamuraa@c-75-72-202-201.hsd1.mn.comcast.net) left irc: " " [21:42] Arno[Slack] (i=100@gre92-1-81-57-177-108.fbx.proxad.net) joined #qt. [21:43] derek_k (n=derek@S0106000f669178a6.wk.shawcable.net) left irc: Remote closed the connection [21:48] kushal (n=kd@220.227.75.194) left irc: Read error: 113 (No route to host) [21:50] kewark (n=krawek@190.66.227.187) joined #qt. [21:55] Displacer (n=tool@tool.gtn.ru) left irc: Read error: 145 (Connection timed out) [21:56] kniolet (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) left irc: Read error: 110 (Connection timed out) [21:57] trpr (n=ftg2@24-117-49-210.cpe.cableone.net) joined #qt. [22:00] doitux (n=doitux@p57B6D070.dip.t-dialin.net) joined #qt. [22:01] trpr (n=ftg2@24-117-49-210.cpe.cableone.net) left irc: Remote closed the connection [22:01] trpr (n=ftg2@24-117-49-210.cpe.cableone.net) joined #qt. [22:03] struktured (n=structur@cpe-72-229-151-94.nyc.res.rr.com) left irc: "This computer has gone to sleep" [22:08] kernco (n=chatzill@c-68-83-127-198.hsd1.de.comcast.net) left irc: "ChatZilla 0.9.81 [Firefox 2.0.0.14/2008040413]" [22:10] krawek (n=krawek@nelug/developer/krawek) left irc: Read error: 110 (Connection timed out) [22:13] Displacer (n=tool@masq247.gtn.ru) joined #qt. [22:18] Andrius (i=prophet@85-255-49-139.ip.kis.lt) joined #qt. [22:24] kushal (n=kd@220.227.75.194) joined #qt. [22:27] kniolet (n=katrina@dialbs-213-023-005-234.static.arcor-ip.net) joined #qt. [22:29] ker (n=oli@offb-4dbd64b3.pool.einsundeins.de) joined #qt. [22:34] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [22:36] SprocketKing (n=Sprocket@203.100.78.94) left irc: "Leaving" [22:37] xRaich[o]2x (n=raichoo@i577BD11A.versanet.de) joined #qt. [22:54] _krawek_ (n=krawek@190.66.232.247) joined #qt. [22:54] Pinaraf (n=moi@193.48.251.196) joined #qt. [22:55] johnyb (n=jb@e176133022.adsl.alicedsl.de) joined #qt. [22:55] Nick change: zbenjamin|out -> zbenjamin [22:56] xRaich[o]2x (n=raichoo@i577BD11A.versanet.de) left irc: "leaving" [22:58] johnyb (n=jb@e176133022.adsl.alicedsl.de) left irc: Remote closed the connection [22:59] morning [23:05] bmann (n=andi@barop.wh.uni-dortmund.de) joined #qt. [23:08] OniLink (n=boris@240-118-223-201.adsl.terra.cl) left irc: Read error: 104 (Connection reset by peer) [23:09] kewark (n=krawek@190.66.227.187) left irc: Connection timed out [23:14] Dee|0x29a (n=Daher@196.219.252.102) joined #qt. [23:15] Dumble (n=Dumble@LAubervilliers-151-11-33-138.w193-251.abo.wanadoo.fr) joined #qt. [23:18] hello world ! [23:18] Hello, Dumble! [23:18] Nick change: daniel_ -> daniel [23:19] so qt + pdf = ? [23:21] Action: bhughes fails to parse that sentence [23:21] its a mathamatical equasion [23:21] qt + pdf = ? ( find ? ) [23:22] i wanna show pdf docs in a qt widget [23:22] thats what i meant [23:26] <_krawek_> Dee|0x29a: qt + poppler [23:26] <_krawek_> poppler is at http://poppler.freedesktop.org/ [23:27] tinchio_ (n=tinchio@190.19.196.141) joined #qt. [23:27] Or just ask Adobe [23:27] <_krawek_> http://people.freedesktop.org/~aacid/docs/qt4/ [23:30] skejoe (n=skejoe@0x57316d5b.vgnxx4.adsl-dhcp.tele.dk) left irc: "leaving" [23:31] Woods (n=damien@218.83.79.165) joined #qt. [23:31] hi all! [23:33] thiago_home (n=thiago@kde/thiago) joined #qt. [23:34] yea, i'll go with adobe, since its a commercial software [23:34] I have installed Qt with mysql package using rpm but couldn't load the mysql driver... I saw different threads with this problem on some forums and people seemed to solve this error by installing mysql with Qt source code [23:35] does someone know an other way to solve this problem ? [23:37] Tinchio (n=tinchio@190.19.196.141) left irc: Read error: 110 (Connection timed out) [23:38] what's the error? [23:38] exactly [23:41] Th30z (n=theo@h98-ipv4-80-68-185.mynet.it) joined #qt. [23:42] there is no error but the open method of the database return false [23:43] Qt generally prints a warning [23:43] if it can't load the driver, that is [23:43] where is your libqslmysql.so file? [23:43] wait i'm gonna display the last error message [23:44] iguanna (n=david@150.Red-88-12-152.dynamicIP.rima-tde.net) joined #qt. [23:45] QMYSQL : Unable to connect, Can't connect to MySQL server on 127.0.0.1 [23:45] the server is accessible via phpMyAdmin [23:46] ok, the driver was loaded [23:46] check your 4 connection parameters to see if they are correct [23:46] hostname, port, username and password [23:46] note that most modern MySQL installations do not use TCP [23:48] hostname is 127.0.0.1, login and pwd are ok [23:48] i don't set any port, should i ? [23:49] I can't tell you that [23:49] you're supposed to know your MySQL connection parameters [23:51] normally localhost don't require to set any specific port, right ? [23:51] Woods: you always need ports for connections [23:51] normally you look in mysql.conf and see how it's configured [23:52] and run netstat and look if its really up [23:52] check your phpmyadmin file and see how it connets [23:52] *connects [23:54] ok i'm going to check this and tell you how it goes ^^ thanks for the tips [23:55] Arno[Slack] (i=100@gre92-1-81-57-177-108.fbx.proxad.net) left irc: "Konversation terminated!" [23:59] pSiCoLaBiLe (n=stack@host235-254-dynamic.2-79-r.retail.telecomitalia.it) joined #qt. [00:00] --- Tue May 6 2008