[00:01] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) left irc: Remote closed the connection [00:02] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) joined #qt. [00:03] _shiro (i=rio@adsl-59.bartec.com.mx) left irc: "changing servers" [00:03] anyone know how to cut a char off the left of a QByteArray? [00:03] I know how to chop off the end or truncate, but I need to drop the first char [00:12] YaN3Z (n=oz@host55-92-dynamic.15-87-r.retail.telecomitalia.it) joined #qt. [00:13] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) left irc: Remote closed the connection [00:14] YaN3Z (n=oz@host55-92-dynamic.15-87-r.retail.telecomitalia.it) left #qt. [00:14] demonsdread (n=i$baran@unaffiliated/delusions) left irc: Read error: 110 (Connection timed out) [00:15] pwuertz (n=pwuertz@dslb-084-058-049-117.pools.arcor-ip.net) joined #qt. [00:15] kury7 (n=kury@CPE-76-178-171-156.natnow.res.rr.com) joined #qt. [00:15] anyone awake? [00:17] _shiro (i=rio@adsl-59.bartec.com.mx) joined #qt. [00:19] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) joined #qt. [00:19] eternaleye_ (n=alex@pool-71-112-116-176.sttlwa.dsl-w.verizon.net) left irc: Read error: 110 (Connection timed out) [00:32] kury7 (n=kury@CPE-76-178-171-156.natnow.res.rr.com) left irc: "Leaving" [00:33] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) left irc: Remote closed the connection [00:36] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) joined #qt. [00:41] grzywacz (n=grzywacz@moinmoin/student/karol) joined #qt. [00:44] gambler (n=orion@124-171-167-145.dyn.iinet.net.au) joined #qt. [00:47] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) left irc: Remote closed the connection [00:54] Lucifer (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) joined #qt. [01:07] MaNI (n=MaNi@dsl-245-54-182.telkomadsl.co.za) left irc: "Go on, get out. Last words are for fools who haven't said enough. - Karl marx" [01:17] johannesNeu (n=johannes@88.151.74.89) joined #qt. [01:22] skejoe (n=skejoe@0x57366123.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [01:22] sharkk (n=sharkk@adsl-ull-124-244.41-151.net24.it) joined #qt. [01:34] dv_ (n=dv@M1565P011.adsl.highway.telekom.at) left irc: "Gone" [01:35] logixoul (n=logixoul@78.83.215.202) joined #qt. [01:36] Hi. Where is QApplicationPrivate::app_icon set? (debugging my app not having a window/taskbar icon) [01:44] rand (n=chatzill@netblock-66-245-225-188.dslextreme.com) left irc: "ChatZilla 0.9.78.1 [Firefox 2.0.0.8/2007100816]" [01:44] tmske (n=thomas@20.109-136-217.adsl-dyn.isp.belgacom.be) joined #qt. [01:45] tommyd (n=tommyd@p54B957FC.dip.t-dialin.net) joined #qt. [01:47] maxx_k (n=max@p57A7FDA7.dip.t-dialin.net) joined #qt. [01:56] tommyd (n=tommyd@p54B957FC.dip.t-dialin.net) left irc: [02:02] BehnamFedora (n=BehnamFe@overflow.andhaladria.com) left irc: "A bientot ! :)" [02:04] logixoul: see "Setting the Application Icon" in assistant [02:07] thanks, looking into it [02:07] tomboy64 (n=tomboy64@e178048167.adsl.alicedsl.de) joined #qt. [02:08] Nick change: amrit|bbl -> amrit|zzz [02:11] guardian_ (n=Guardian@ANantes-252-1-68-243.w81-250.abo.wanadoo.fr) joined #qt. [02:24] mornin [02:26] twosouls82 (n=twosouls@cc100614-b.assen1.dr.home.nl) joined #qt. [02:27] how do I paint text using a transparent background over an image (QPainter)? [02:39] that would be the default [02:40] chakie: I painted a pixmap below the text, the text's background color is that of the control [02:41] not transparent, I can't see the image through [02:41] if you painted the pixmap after it's too late [02:41] it doesn't do any compositing on the "parts" later [02:41] do it the other way round [02:42] or perhaps i don't get what you're doing [02:43] chakie: so if I was being unclear, I first painted an image, then I've drawn some text over the image, now the text has a background of the control, not transparent [02:43] so*sorry [02:44] tmske (n=thomas@20.109-136-217.adsl-dyn.isp.belgacom.be) left irc: Connection timed out [02:44] hm [02:44] can you provide a small screenshot? [02:44] sure [02:44] have a sec [02:44] perhaps you need to set another brush before calling drawText() [02:45] setBrush (Qt::transparent); [02:46] wouldn't that cause the text itself to be transparent instead of it's background? [02:47] the text is draw using the pen [02:50] chakie: setBrush didn't work for me either [02:50] I'll take the screenie I promised [02:52] http://img521.imageshack.us/my.php?image=schermafdruk1yn9.png [02:54] and the blue is painted first, then the text? [02:55] indeed, the blue is from KDE's default wallpaper I paint on the control, then the text [02:58] tuxipuxi (n=michael@konversation/developer/pdpc.active.tuxipuxi) joined #qt. [02:59] I forgot to mention that this takes places in two seperate paintEvent triggers, and that seems to cause the background being cleared [03:00] but painting that image every 25ms is tooo slow, even if I paint just the changed rect [03:00] hm [03:01] so the blue is never cleared away? [03:01] why do you paint every 25ms? [03:01] logixoul (n=logixoul@78.83.215.202) left #qt ("Konversation terminated!"). [03:02] I am trying to smoothly slide text with a transparent backrgound over that image [03:03] so, how do you erase the old text? [03:03] and do you trigger an update for only that upper part of the window? [03:03] and this is qt3, right? [03:04] not done qt3 for years... [03:05] I used repaint(x, y, h, w) to repaint both the old and the new position of the text, and I redraw the image in that area [03:05] It is in qt4 [03:05] 4.2.3 to be precise [03:06] that method of mine works, but it was way to slow [03:07] so blitting the little area that the old text covers and then drawing the next text over gives you that? [03:07] qgraphicsview could be one way to go [03:08] no that is the result of when I omit to blit the area, before repainting the text on it [03:08] robthebob (n=rn114@robthebob.plus.com) joined #qt. [03:09] Qt::WA_OpaquePaintEvent [03:09] what if you try that one? [03:10] "Indicates that the widget paints all its pixels when it receives a paint event. It is thus not required for operations like updating, resizing, scrolling and focus changes to erase the widget before generating paint events. Using WA_OpaquePaintEvent is a small optimization. It can help to reduce flicker on systems that do not provide double buffer support, and it avoids the computational cycles necessary to erase the background prior to [03:10] paint. Note: Unlike WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid transparent window backgrounds. This is set/cleared by the widget's author." [03:14] hehehehe [03:14] that causes a line on my screen [03:15] so it seems to be transparent, but the old text doesn't get cleared anymore using that [03:16] Qt::WA_OpaquePaintEvent means you always paint all pixels [03:17] so you would need to fill with the old background first [03:17] there really is no way around that [03:17] unless you go with QGraphicsView [03:19] grrr [03:19] :) [03:20] chakie, thanks for your efforts [03:20] I'll dive into that class [03:20] how would you otherwise get the old text away? [03:20] but perhaps it's fast enough if you use Qt::WA_OpaquePaintEvent suitably? [03:22] I managed to do the trick, but that was to slow: 1) paint the whole image in the first event trigger, 2) repaint the image in the event rect + it's movement, 3) paint the text [03:22] but that was to slow [03:23] I tried Qt::WA_OpaquePaintEvent by editing the source [03:23] no luck [03:23] that's even slower [03:24] should not be [03:24] It seemed so [03:24] perhaps you could set the blue image to be the palette background brush [03:24] then a paintEvent would clear the rect to that :) [03:25] kukman (n=kukman@92.112.30.125) joined #qt. [03:25] sweet, I'll try it, sounds logical [03:27] YaN3Z (n=oz@host55-92-dynamic.15-87-r.retail.telecomitalia.it) joined #qt. [03:27] kukman (n=kukman@92.112.30.125) left #qt. [03:28] Hi, how can i use `pkg-config PKG --cflags --libs` with qmake? [03:29] woa autofsck [03:29] 1800 [03:29] chehrlic|NA (n=chehrlic@pD955A957.dip0.t-ipconnect.de) joined #qt. [03:30] Nick change: chehrlic|NA -> chehrlic [03:30] Cheetah__ (n=basti@i577B9AD4.versanet.de) left irc: Remote closed the connection [03:34] muesli (n=muesli@87-194-56-45.bethere.co.uk) joined #qt. [03:36] wallunit (n=sebastia@ip-62-143-28-82.1411H-CUD12K-01.ish.de) joined #qt. [03:37] How can i configure the color and font settings in qt-4? qt-3 comes with a tool qtconfig but qt-4 don't [03:39] YaN3Z: QMAKE_CFLAGS += `pkg-config PKG --cflags` ...and... LIBS += `pkg-config PKG --libs` [03:39] wallunit: there is one for qt4 too [03:39] Elperion (n=Bary@p5487589A.dip.t-dialin.net) joined #qt. [03:39] YaN3Z: in your .pro file [03:39] wallunit: but if you compile manually you need to enable qt3support [03:39] chakie: i know [03:40] but why? [03:40] wallunit: so why do you ask? [03:40] why what? [03:40] that i nee to enable qt3supprt looks like it is deprecated [03:41] i don't know [03:41] but that's how it works now [03:42] twosouls82: it works with QMAKE_CXXFLAGS... thanks! [03:43] peppe (n=peppe@151.65.235.253) joined #qt. [03:47] robthebob (n=rn114@robthebob.plus.com) left irc: Read error: 113 (No route to host) [03:49] :) [03:53] chuy_max (n=chuy@201-167-95-66-cable.cybercable.net.mx) left irc: "Leaving" [03:55] chakie: I did some other things, then I tried your setpalette suggestion, that gained the speed up! nice thinking ;) [03:55] thanks [04:04] tommyd (n=tommyd@p54B957FC.dip.t-dialin.net) joined #qt. [04:07] YaN3Z (n=oz@host55-92-dynamic.15-87-r.retail.telecomitalia.it) left irc: Read error: 104 (Connection reset by peer) [04:32] oversize (n=schmidtm@dslb-084-058-115-242.pools.arcor-ip.net) left irc: Remote closed the connection [04:32] oversize (n=schmidtm@dslb-084-058-117-178.pools.arcor-ip.net) joined #qt. [04:46] gigabytes (n=gigabyte@host121-17-dynamic.5-87-r.retail.telecomitalia.it) joined #qt. [04:48] guardian_ (n=Guardian@ANantes-252-1-68-243.w81-250.abo.wanadoo.fr) left irc: Read error: 110 (Connection timed out) [04:49] gigabytes_ (n=gigabyte@host121-17-dynamic.5-87-r.retail.telecomitalia.it) joined #qt. [04:50] capisce (n=srodal@cm-84.215.28.74.chello.no) left irc: "leaving" [04:50] peppe (n=peppe@151.65.235.253) left irc: "pappa" [05:03] ilker (n=ilker@unaffiliated/ilker) joined #qt. [05:06] gigabytes (n=gigabyte@host121-17-dynamic.5-87-r.retail.telecomitalia.it) left irc: Read error: 110 (Connection timed out) [05:09] Nick change: chehrlic -> chehrlic|NA [05:10] chehrlic (n=chatzill@pD955A957.dip0.t-ipconnect.de) joined #qt. [05:15] kaffeedoktor (n=marco@HSI-KBW-091-089-001-201.hsi2.kabelbw.de) joined #qt. [05:27] ICQnumber_ (n=none@e178249055.adsl.alicedsl.de) joined #qt. [05:27] gigabytes_ (n=gigabyte@host121-17-dynamic.5-87-r.retail.telecomitalia.it) left irc: [05:38] milk-it (n=michel@20158157127.user.veloxzone.com.br) joined #qt. [05:41] How do you get the divider in Qt Designer to not be so big? [05:41] like the margin [05:41] surrounding nested frames [05:42] i tried going into "Form Settings" and set "Layout Default" with Margin:2 and Spacing:2 [05:42] but it has no effect and didnt do anything [05:44] chehrlic (n=chatzill@pD955A957.dip0.t-ipconnect.de) left irc: Remote closed the connection [05:47] iguanna (i=david@172.pool85-60-28.dynamic.orange.es) joined #qt. [05:50] blight_ (n=blight@chello212186015227.403.14.wu-wien.teleweb.at) joined #qt. [05:50] even if i set the policy to expanding, etc, theres still a huge frame around it [05:51] it says Geometry is X9 Y9 [05:52] iguanna (i=david@172.pool85-60-28.dynamic.orange.es) left irc: "Saliendo" [05:52] gigabytes (n=gigabyte@host93-234-dynamic.8-87-r.retail.telecomitalia.it) joined #qt. [05:53] iguanna (i=david@172.pool85-60-28.dynamic.orange.es) joined #qt. [05:53] ain't in the manual either [05:54] Elperion (n=Bary@p5487589A.dip.t-dialin.net) left irc: "CYA @all" [05:57] twosouls82 (n=twosouls@cc100614-b.assen1.dr.home.nl) left irc: Remote closed the connection [06:02] hanzz_ (n=HanzZ@212.24.149.74) joined #qt. [06:12] tmske (n=thomas@dD5763506.access.telenet.be) joined #qt. [06:17] epifanio (n=chatzill@host91-148-dynamic.55-82-r.retail.telecomitalia.it) joined #qt. [06:18] HanzZ (n=HanzZ@212.24.149.74) left irc: Read error: 113 (No route to host) [06:21] CrashandDie (n=Crashand@81.56.209.63) joined #qt. [06:36] simon_h (n=sirius@rx1663.cip.uni-regensburg.de) joined #qt. [06:37] Elperion (n=Bary@p5487589A.dip.t-dialin.net) joined #qt. [06:38] hi, I just have problems with QLinkedListIterators. do the get invalid after I append items to the list with list.append()? [06:40] xjunior (n=xjunior@201.80.192.79) joined #qt. [06:43] gkiagia (n=gkiagia@ppp161-137.adsl.forthnet.gr) joined #qt. [06:44] wickedfiddle (n=michael@cpe-76-173-38-213.socal.res.rr.com) joined #qt. [06:46] skejoe (n=skejoe@0x57366123.vgnxx4.adsl-dhcp.tele.dk) left irc: "WeeChat 0.2.6" [06:48] krawek (n=wyswyg@190.66.206.238) joined #qt. [06:49] Nick change: zbenjamin|out -> zbenjamin [06:50] gigabytes (n=gigabyte@host93-234-dynamic.8-87-r.retail.telecomitalia.it) left irc: [06:51] tommyd (n=tommyd@p54B957FC.dip.t-dialin.net) left irc: [06:52] Dako-kun (n=Dako@F30f8.f.strato-dslnet.de) joined #qt. [06:58] simon_h: from the docs: If you want to modify the list as you iterate over it, use QMutableLinkedListIterator instead. [06:59] EgS: also if I don't want to modify it with that iterator? [06:59] sure [07:00] see "while iterating over it" as "as long as you use keep that iterator in use" [07:00] oh, then I misinterpreted the docs [07:00] thanks [07:00] you're welcome :) [07:05] chakie_work (n=jeh@ext122.almare.com) left irc: Read error: 110 (Connection timed out) [07:06] zchydem (n=mmt@ext122.almare.com) left irc: Read error: 110 (Connection timed out) [07:07] hi all [07:07] hi there! [07:08] EgS: somehow it still won't work. I can have two iterators on one list, can't I? [07:10] |caotic| (n=|caotic|@129.187.43.42) left irc: "Quit" [07:15] oh, never mind. obviously using "list.append()" also moves the iterator [07:16] In an isolated context, I found *very few* Qt widgets / widget packs [07:17] however, you could surely go into KDE and pull widgets out of other programs [07:17] it simply seems that nobody is sharing individual widgets [07:17] I found this: [07:17] http://www.qt4lab.org/qt4lab/index.htm [07:17] lol..... [07:18] I found this.... [07:18] http://www.geocities.com/gmbertani/qmeters.html [07:18] and this: http://qconsole.sourceforge.net/ [07:20] and lastly, [07:20] this: http://qwt.sourceforge.net/ [07:20] But that's all I could find, really. [07:20] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [07:20] Come on guys! [07:20] there must be more individual widgets? [07:26] Nick change: chehrlic|NA -> chehrlic [07:29] Scorp1us (n=jason@72.44.154.122) joined #qt. [07:31] Here is the scenario. I have items in a layout (usually Pushbuttons in an HBox). Some are not visible. When I set them to visible, the layout does not automatically recalculate their positions correctly. [07:31] myrizio (n=myrizio@nat16.phc.unipi.it) joined #qt. [07:32] what do I need to do to get the layout to update properly? [07:33] QLayout::update() ? [07:33] sadly, that doesn't work [07:33] tht was my knee-jerk reaction [07:34] hm [07:34] hrmmm... [07:36] Action: kornerr doesn't know [07:36] may be you should have a look at the code [07:36] what's called when you add smth to layout so that it is updated [07:36] my only guess [07:36] structured (n=carm@user-387h50u.cable.mindspring.com) left irc: Read error: 113 (No route to host) [07:41] well, it used to work in 4.2.3, but no longer works in 4.3.1 [07:46] capisce (n=srodal@cm-84.215.28.74.chello.no) joined #qt. [07:48] doitux_ (n=doitux@M7850.m.strato-dslnet.de) joined #qt. [07:50] come on [07:50] any Qt Designer pros here [07:52] it's week-end [07:52] is there actually a question ? [07:52] pros are having fun [07:53] lol [07:53] hey Silex dude [07:53] did you fuck a lot with Designer? [07:54] ASK THE REAL QUESTON [07:54] damnit [07:54] who cares about the answer to if I used QTDesigner a lot [07:55] i care [07:55] Did you? [07:55] ok, I'll answer no [07:55] just to blame you [07:55] :) [07:55] you know how irc works, you're supposed to ask the real question [07:56] dude [07:56] the real question is [07:56] !ask [07:56] zbenjamin: [ask] Do not ask to ask, just ask. Do not ask if anyone is familiar with XYZ, just ask your detailed question directly. Read http://jcatki.no-ip.org/fncpp/HowToGetBetterHelp and http://www.catb.org/~esr/faqs/smart-questions.html for information about how to ask useful questions. [07:56] did you fuck with Qt Designer [07:56] quit being stubborn [07:56] ok [07:56] yes I did [07:56] silex [07:56] do you actually use it? [07:56] yes [07:57] it's odd, since it's so "the same" as C++ [07:57] the same object system [07:57] I'm trying to figure out how it plays into the big picture of Qt.. cause [07:57] most of the Qt demos are code, not .UI's [07:57] although, a lot of the code looks like generated code [07:58] I guess people prefer to just have it gen code instead of UI files? [07:58] which do you do [07:58] it's a shame you had one one question per day with me :) [07:58] huh [07:59] right now, I see Qt Designer more as like a Qt Tutorial [07:59] no, it's a great tool [07:59] to showcase all the widgets and how you can put them down [07:59] I use it often, simplifies everything also allows non dev people to change the ui [08:00] twosouls82 (n=twosouls@cc100614-b.assen1.dr.home.nl) joined #qt. [08:00] i didnt figure out how to do advanced stuff with it yet, though [08:00] like.. I need a tab bar with a [+] button [08:00] so i write that in code [08:00] and then make a widget [08:01] for instance, with Qt designer, you can't build that composite out of the "tab widget" object, can you ? [08:01] it's funny how the real question was "I'd like to know if Qtdesigner is actually used for real world coding ? or "why are the Qt examples not using .ui files ?" [08:02] well Silex [08:02] I'll go away for a while, cya around [08:02] i come from a background of max/msp and puredata [08:02] Action: Sput has given up answering Zola's questions [08:03] which is kinda like Qt designer in a way [08:03] except it has everything Qt designer lacks -- you can program much more intense dynamic behaviour [08:03] however. it's not a compiling thing [08:03] so it's slow.. you build the program as you use it [08:03] Action: kornerr doesn't like designers, ides in general [08:03] if Qt designer integrated some max/msp like features, it'd be real crazy [08:04] i think designer could be vastly improved [08:04] doitux (n=doitux@M780e.m.strato-dslnet.de) left irc: Read error: 113 (No route to host) [08:04] then go do it. [08:04] stop complaining. [08:04] go implement it [08:04] Sput [08:04] it's open source [08:04] you should learn to discuss and have ideas besides "stop complaining" [08:04] that's usually about the depth of your concepts [08:05] You guys are such pussies and bitches, really [08:05] I try to get a conversation about Qt designer [08:05] and all you say is "stop complainig, go do it, what's your real question" [08:05] jeez, dont you guys have any free time? [08:05] or are you all robots/slaves working for companies [08:06] no, you are complaining and bitching about every Qt feature you can think of, and you have been for days, and that fucking gets on all of our nerves. [08:06] I have ideas [08:06] and try to get people to discuss [08:06] but you guys just sit there like dead fish as if this is smoe kind of teutonic german Qt nazi camp [08:06] come on [08:06] lol [08:06] you're funny [08:07] :) [08:07] you could have had a good discussion about QtDesigner with me if you didn't pissed me off with your silly starting question, which as it showed was irrelevant to the real points you were trying to make [08:07] YOU GUYS ARE SO RIGID [08:07] jesus christ [08:07] you don't have ideas, you usually don't get how Qt tools and classes work, you seemingly refuse to read the docs, and you use that half-knowledge to constantly whine about how Qt is crap and you could do it much better in a much better language and with much better tools. [08:07] it's ridiculous [08:07] also you called Godwin and lost. [08:08] heh [08:08] ok, Sput, i'll point something out [08:08] Zola, have you read "C++ GUI Programming with Qt4"? [08:08] Zola: our rigidness is a defense against your non-constructive way of approaching things [08:08] I'm always on topic [08:08] however [08:09] notice how instead of talking about Qt Designer [08:09] and fighting against the points of Qt designer [08:09] and defending the program [08:09] or having ideas about the program [08:09] or saying whats broken or whats great [08:09] Instead, it's about Zola [08:09] You're off topic [08:09] its not about me, Sput [08:09] you obviously haven't understood how designer works, otherwise you wouldn't say stuff like "it's not a compiling thing, so it's slow" [08:09] so what's the answer to my question? [08:09] Sput: lamer [08:10] lamer? [08:10] re-read what I wrote [08:10] what's that? [08:10] I said Max/Msp [08:10] structured (n=carm@user-387h50u.cable.mindspring.com) joined #qt. [08:10] Action: kornerr 's second question [08:10] lol [08:10] Qt designer *is* a compiling-thing [08:10] but it's not nearly as dynamic as max [08:11] Zola: notice how instead asking your questions in a nice way, listening to what we say to you about what you do wrong, you always insisit on doing things your way and end up being smacked up by everyone instead of talking about the subjects you like so much [08:11] i dont care [08:11] they're idiots cause they dont want to discuss software [08:11] that's my point [08:11] you're don't care [08:11] so stop pretending you are caring [08:11] Silex why should I? [08:11] cause [08:11] lol [08:11] ahm... [08:11] you find special people and they're special [08:11] others can't be converted [08:11] theres' nothing you can do to help people like Sput [08:11] i guess linux torvalds wasn't discussing anything before he did it [08:11] :) [08:12] oops, Linus i mean [08:12] sorry [08:12] Zola: my point is that you're the one that makes people talk about you, not the other way around [08:12] Action: kornerr hopes he's not here [08:12] you stubbornly refuse to listen what others tell you, you insult other people, you refuse to RTFM before you ask, you have a great mouth about how you are much better than everybody else, about how you know and use the tools that are better than anything else, and how about everybody except you is stupid. [08:12] sput: I dont care dude! [08:12] lol [08:13] i wanna talk about cool stuff [08:13] sput is right [08:13] quit being lame [08:13] you wanna blah-blah? [08:13] everything you're saying is Anally retentive and rigid [08:13] :) [08:13] loosen up a bit [08:13] lol [08:13] not to mention your attitude towards the people you allegedly like to discuss with [08:14] oh no, oh no, zola, you are so bad, let me waste 5 minutes to talk about whats wrong with zola [08:14] lol [08:14] Zola: we loosen up with people that we feel confortable with. With you almost every discussion is complicated and irritating. [08:14] Sput: SOFTWARE [08:14] we wasted more [08:14] who for the most part have already put you on there ignore list [08:14] get it in your head [08:14] :) [08:14] ! zola [08:14] Zola: Error: "zola" is not a valid command. [08:14] Sput put me on ignore [08:14] Zola: I have no idea how you are as a person and I don't care, but your style of "discussion" is inappropriate and destructive rather than inviting. [08:14] We were trying to talk about Qt Designer [08:15] Sput: too bad [08:15] you're pussy [08:15] Action: kornerr looks like a tv show [08:15] i mean it looks like, not me ... [08:15] Stop being weak [08:15] Sput, seems we need some op here [08:15] you were trying to talk about how designer is crap, and about how everybody except you is an idiot. [08:15] No, Sput [08:15] I was discussing Qt Designer [08:15] zbenjamin: yes, we do. [08:15] with Silex and you're going berserk. [08:16] Sput, no he just trying to wastes everybody's time [08:16] NOW, let's stay on topic [08:16] I invite all of you [08:16] lol [08:16] not to mention your starting question "did you fuck with Qt designer", paired with ad-hominem attacks [08:16] Sput: stay on topic [08:16] makes me want to engage in a serious discussion :) [08:17] :) [08:17] Zola: read the topic, what does it say? [08:17] I suggest we ban him [08:17] Sput if you dont want to engage in the talk [08:17] hansen (n=hansen@hrhansen.dk) joined #qt. [08:17] Sput, you know it really takes time for me to stop talking to people. In fact he's the first one who made it getting no answers from me. [08:17] then why not just not speak up [08:17] Stop attacking me [08:17] Silex, yep same suggestion [08:18] Zola: because everytime I check this channel, the screen is filled with stupid crap uttered by you, most of it a mixture of Qt ranting and ad-hominem attacks, and this fucking gets on my fucking nerves, which means I want it to stop. [08:18] so use /ignore [08:18] I don't deny Zola is smart or that he has interesting ideas, but he's too socially handicaped to talk with people [08:18] We used to be able to actually discuss things in here. [08:18] lol [08:19] Silex, in other channels he would be on the ban list already. Its just in here because here are only nice people who really want to help [08:19] Silex: that's what I am saying, I am just judging the "discussion" style, because that's all I get to see. [08:19] you guys are wasting so much time, we could have already got into a whole talk about Designer [08:19] but you yap yap yap about Zola [08:19] stop it! [08:19] ok, let's stop [08:19] :) [08:19] thanks [08:19] Zola: in the real world people love having a sane discussion, if they feel uncomfortable they leave the discussion [08:19] same things here [08:19] Silex: I think we were having a sane discussion [08:20] hell no! [08:20] before Sput i mean [08:20] not just now [08:20] I told you I didn't want to talk after what you did with your silly intro question [08:20] no you weren't [08:20] no before Sput too [08:20] I was leaving remember [08:20] FINE leave lol [08:20] :) [08:20] ICQnumber (n=none@e178202123.adsl.alicedsl.de) joined #qt. [08:20] you guys are so grumpy [08:20] Silex, did you speak about the "Did you fuck with Deisgner" - question? [08:20] yes [08:20] Zola | did you fuck with Qt Designer [08:20] lol, here again [08:20] it was a very silly question [08:20] Zola | quit being stubborn [08:21] yada yada yada [08:21] try not to say "you guys are" :) [08:21] kornerr you aren't [08:21] hehe [08:21] you're cool [08:21] yeah [08:21] that's better [08:22] !ask [08:22] kornerr: [ask] Do not ask to ask, just ask. Do not ask if anyone is familiar with XYZ, just ask your detailed question directly. Read http://jcatki.no-ip.org/fncpp/HowToGetBetterHelp and http://www.catb.org/~esr/faqs/smart-questions.html for information about how to ask useful questions. [08:22] luks (n=lukas@unaffiliated/luks) joined #qt. [08:22] Action: kornerr notes this [08:22] what I really want to know about [08:23] is different peoples philosophies on how they use Qt Designer in their development [08:23] ha, the real question [08:23] if they use it as a learning tool, or for Code generation, or .ui generation, and which limitations they ran into [08:23] Action: Silex points [08:23] oh, _that_ looks like a real question that might cause a discussion amongst people who still care to discuss with you. [08:23] funny thing [08:24] btw everyone: enough noise about all this [08:24] let's all go away [08:24] designer does not generate code [08:24] Form menu [08:24] (or ban him) [08:24] Form -> View Code [08:24] is that not code generation? [08:24] I don't have that option [08:24] viewing the code? [08:25] may be) [08:25] What version are you on Sput? [08:25] all designer does is generating a .ui [08:25] 4.3.2 [08:25] Hmm [08:25] i'm on 4.4, I can view the code as I build the UI [08:25] :$ [08:25] it generates the classes and namespaces and everything [08:25] designer used to have an inline code generator in 3.x [08:25] thank god they got rid of that [08:25] its back Sput [08:25] s/generator/editor/ [08:26] theres no editor but a basic code viewer for copying and pasting [08:26] ** Form generated from reading ui file 'designerGg3032.ui' [08:26] so it's [08:27] Qt Designer -> UI file -> C++ code [08:27] there's no point in copy pasting that code [08:27] why Silex? [08:27] UIC takes care of that [08:27] if you used Qt Designer you'd know why [08:27] I wouldn't know why one needs to generate code at all. 4.x requires a single call to setup the UI. [08:28] Sput: well the code is still generated when you compile your project :) [08:28] I mean ui_foo.h [08:28] generate code that is user-visible, I mean [08:28] yeah, agreed on that [08:28] this code is pretty readable [08:28] it makes sense [08:28] Zola: you don't "use" the moc-generated files as well. [08:28] of course not [08:28] thats different [08:29] they are generated during the compile, but it does not make sense to look at/edit/use them. [08:29] same thing, really. [08:29] the only time it makes sense is when you want to see how QtDesigner's action are reflected into the code [08:29] its not the same [08:29] ICQnumber_ (n=none@e178249055.adsl.alicedsl.de) left irc: Success [08:29] the code Generated in Qt designer Forms -> View Code is clean and readable code with indentation and 1:1 orthogonal use of the object system [08:29] the same way you'd use it yourself [08:29] so for me, it works as a learning tool [08:29] Zola: but it makes no sense to use it, because all you do in _your_ code is setupUi(this) [08:30] it makes sense to me Sput, instead of loading docs.trolltech.com [08:30] for a number of widgets [08:30] i can mess around with the widgets and then view the code [08:30] and copy and paste bits I need [08:30] the times where one needed to subclass a form in order to add program logic are long gone, thank god [08:30] manual form generation is so 90s. [08:31] i cant really use designer much though, unless I make plugins for it [08:31] all my stuff is dynamic [08:31] valcker (n=valcker@110-60-124-91.pool.ukrtel.net) joined #qt. [08:31] Action: kornerr doesn't like designers because they hide smth :) [08:31] what you're saying about setupUi only really works in a static UI paradigm [08:31] no [08:31] so this is my REAL question [08:31] if i am missing something about making Designer more dynamic [08:32] I put widgets that contains other dynamic widgets [08:32] they're still in QtDEsigner [08:32] Silex, example? [08:33] ? [08:33] I just told you [08:34] iguanna (i=david@172.pool85-60-28.dynamic.orange.es) left irc: "Saliendo" [08:34] when you say dynamic widgets, what do you mean by that -- for me, it's like, generating "X" subwidgets for an audio parameter editor [08:34] gyre (n=gyre@basquiat.sh.cvut.cz) joined #qt. [08:34] where the code handles the layout and what to put down, completely [08:35] i dont see how you use that kinda idea, in designer [08:35] I mean that [08:35] clever use of signal connections only? [08:35] no I mean I put a widget where my widget's list will be [08:35] and I manipulate that [08:36] a widgets's container if you want [08:36] anyway I have to go [08:36] Zygentoma (n=zygentom@manz-590c8012.pool.einsundeins.de) joined #qt. [08:38] can anyone advise me how can I make Qt desginer to do what I want instead what it wants ? :)...I have a GUI prepared...widgets grouped in layouts...but dunno how to make a toplevel layout to group these already prepared layouts... [08:39] when I apply a toplevel layout on prepared GUI all widgets get soooo messed up that my head is going to explode :) [08:39] gyre... click on the background [08:39] and use the layout button [08:40] its like, three horizontal bars or three vertical bars [08:40] Zola: heh that's what I THOUGHT....but IT GETS SOOO MESSED UP... [08:41] profoX` (n=wesley@ubuntu/member/profox) left irc: Read error: 104 (Connection reset by peer) [08:41] it works if you think of everything just F inside of E inside of D inside of C inside of B inside of A [08:41] or are you doing a Grid ? [08:41] I have major trouble with "Grid Layout" [08:42] Zola: Well I'd like to have a grid :) [08:42] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [08:42] ok, [08:42] w8...I'll put it on my web and you can see :) [08:42] did you have trouble with the divisions of the grid? [08:42] sure lets see [08:44] http://basquiat.sh.cvut.cz/gui.tar.gz [08:44] it's very simple [08:44] evelyette (n=eleanor@BSN-95-233-106.dsl.siol.net) joined #qt. [08:44] hey [08:44] cool [08:44] checking sec [08:44] anybody know what's wrong with this: [08:44] mainwindow.cpp:210: error: passing 'const QStringList' as 'this' argument of 'void QList::removeAt(int) [with T = QString]' discards qualifiers [08:44] but also as it seems very horribly to do in designer ;) [08:45] QList TownList; [08:45] this line is causing problems: TownList.at(indexI).MiddleTowns.removeAt(indexJ); [08:45] evelyette: you cannot modify a const list [08:45] because it's const :) [08:45] emm, how to change it...to not be a const one [08:45] ok, I have your layout loaded, Gyre [08:45] what part is broken? [08:46] now there is no toplevel apllied [08:46] because it gets messed up [08:46] Sput, ? [08:46] evelyette: I don't know your code, so I have no idea... you probably passed it around as a const QStringList & or something [08:46] what do you mean by no toplevel applied [08:47] Sput, nope...I didn't put const nowhere [08:47] I just put QStringList [08:47] Are you saying it doesnt resize? [08:47] sure that your TownList isn't const? [08:48] ah,, I see the problem [08:48] anyway, afk a bit [08:48] Sput, yes I'm sure [08:48] QList TownList; [08:48] easy fix sec [08:48] [16:45] this line is causing problems: TownList.at(indexI).MiddleTowns.removeAt(indexJ); [08:48] change it to [08:49] TownList[index].MiddleTowns.removeAt(indexJ); [08:49] zbenjamin, well TownList is a list of towns...can I use array? [08:50] evelyette, if you use the [] operators you get a non const list look in the docs [08:50] aha [08:50] evelyette, you don't have to change the type of TownsList [08:50] QList supports to access its contents with [] [08:50] thanks [08:50] but you should check the index before accessing it because of you get out of bounds it will assert [08:51] zbenjamin, aha...thank you for explanation...it works.. [08:51] np ;) [08:52] dpc (n=dpc@unregister180027239087.c27.msk.pl) joined #qt. [08:52] I need to apply toplevel and AVIOD NOT MESSING UP ALL OF THE WIDGETS :) [08:52] Zola: I'd like the labels buttons and line edits to preserve their size [08:52] Zola: preserve their size as they were designed... [08:52] Zola: dunno where to do that :) [08:52] or how :) [08:53] Hi. I'm trying to use ccache with qt4's qmake. And my stats are showing that ccache works but all files have "preprocessor error". Why? [08:53] gyre: fixed sizes are sort of contradicting the dynamic layouting Qt does [08:53] gyre, you can change their policy [08:53] gyre: you might be successul by setting sizePolicy to fixed [08:53] and thats next fixed sizes are not what you want [08:53] gyre: it's usually not a good idea to do that, because the size of the fonts will vary, the size of the screen will vary... [08:54] Sput: m' working on it :) [08:54] gyre: so you get these windows-like dialogs with screwed fonts if you use fixed sizes [08:54] does calling beginInsertRows and endInsertRows in a model cause an automatic update of the view? [08:56] Sput: aha...well...I should not use fixed size on labels then ?...I really need fixed size of line edits though... [08:56] Deimos_ (n=deimos@lns-bzn-46-82-253-246-44.adsl.proxad.net) left irc: "Quitte" [08:58] does qt provide a way to deal with posix signals? [08:58] gyre: Ok, I fixed the file for you and uploaded it [08:58] Zola: hehe where did you uploaded it ?? [08:58] Zola: there's no upload on my web ;) or is it ? [08:59] http://inpzl.com/gui.rar [08:59] You had a problem [08:59] gyre: nope, you shouldn't [08:59] Zola: thanks I'll take a look at it man...thanks again [08:59] your widgets down below were not put into a Subgrid.. [08:59] if you dont do that [08:59] it will go crazy [08:59] gyre: labels resize themselves to an appropriate size, and you can have line edits to expand to use the remaining space [08:59] I also laid out your main window to expand [08:59] and put all your widgets into grid cells [08:59] Zola: aha [09:00] you needed to Layout your tab page too [09:01] Zola: aha ..hm Im a newbiie to designer...and there is no goo tutorial... [09:01] Sput, one more question [09:01] how can I output the QString with printf statement? [09:01] in text mode [09:01] evelyette: printf is not C++ [09:01] evelyette: don't use it [09:02] yes I know... but I want to [09:02] evelyette: use qDebug() or something instead [09:02] okay, how can I output it with cout? [09:02] aha? [09:02] or cout [09:02] :) [09:02] idunno Gyre [09:03] i used designer the 1st time yesterday, you just gotta not try to build your app [09:03] and mess around making crazy stuff [09:03] for a few hours [09:03] evelyette: if you want to use cout, you should probably use string.toStdString() [09:03] till it makes sense [09:03] evelyette: qDebug() doesn't use std::streams [09:03] hansen, what does it use then? [09:03] that gets you a std::string [09:04] it just uses printf or even just write internally [09:04] iirc [09:04] if you want to use std::streams, do something like this: [09:04] it's a QDataStream [09:04] QString foobar = ...; [09:04] Gyre: just throw widgets everywhere [09:04] std::cout << qPrintable(foobar); [09:04] ah, right, qPrintable exists too [09:04] that or toStdString() [09:05] QDataStream is something different, it's binary output [09:05] Zola: looks cool...just one thing...I need the line edits to have fixed size... [09:05] :) [09:05] thats easy [09:05] insert a Horizontal spacer in the grid [09:05] or put in fixed size in property ed [09:06] Zola: well yup :) but I need to break the layout now aint i ? [09:06] nope [09:06] try breaking the top level layout it wont matter [09:06] cause you only have 2 objects in it [09:06] one Tab view, one Grid [09:06] your problem before, you had 20 objects in the top level [09:08] Zola: well I tried to break out the layout...I wanted to make line edits smaller but when I make them smaller with the mouse release the mouse button and the line edit gets back to its previous size :) [09:08] Zola: hm [09:10] profoX` (n=wesley@d54C0FB51.access.telenet.be) joined #qt. [09:11] profoX` (n=wesley@ubuntu/member/profox) left irc: Read error: 104 (Connection reset by peer) [09:11] profoX` (n=wesley@ubuntu/member/profox) joined #qt. [09:11] otavio (n=otavio@201.40.162.47) left irc: "Lost terminal" [09:16] xjunior (n=xjunior@201.80.192.79) left irc: Read error: 110 (Connection timed out) [09:18] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Read error: 104 (Connection reset by peer) [09:18] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [09:19] that designer tool is horrible ;)...I tried to put 3 widgets in one line ...I managed to puy 2 of them there...but when I tried to put 3rd...it always returns itself some pixels above the previous ones :) [09:19] nic [09:19] {slacky} (n=slacky@kde/developer/gianni) joined #qt. [09:19] gambler (n=orion@124-171-167-145.dyn.iinet.net.au) left irc: "Leaving" [09:19] profoX` (n=wesley@ubuntu/member/profox) left irc: Remote closed the connection [09:22] jaguilera (n=opsi@unaffiliated/opsidao) left irc: Remote closed the connection [09:24] gogstad (i=gogstad@caracal.stud.ntnu.no) joined #qt. [09:25] hibread (n=hibread@CPE-124-189-241-98.nsw.bigpond.net.au) left irc: "Not the default" [09:26] gyre: its quirky [09:26] but you get used to it [09:27] jaguilera (n=opsi@unaffiliated/opsidao) joined #qt. [09:31] Nick change: doitux_ -> doitux [09:32] Zola: it is HORRIBLE :)...I broke the toplevel layout...broke the layout with the line edits...changed the sizes of line edits and set them to fixed...applied the gridlayout on them and IT GOT MESSED UP horribly :) [09:32] Neutrinux (n=Neutrinu@155.229.102-84.rev.gaoland.net) joined #qt. [09:33] Zola: I think...whe I'll use it more...I'll lose my mind :) [09:33] lol [09:34] gyre, Qt designer has a certain brain flow to it, and it works perfectly once you align with that [09:34] Zola: hehe that;s probably true :) [09:35] Zola: those down toplevel widgets...did you put them in grid level ? [09:35] wallunit (n=sebastia@ip-62-143-28-82.1411H-CUD12K-01.ish.de) left #qt ("Leaving."). [09:36] when is qt4.4 due ? :) [09:36] nerve, you can use 4.4 right now [09:37] gyre: yes, the lower ones are in a grid [09:37] <{slacky}> nerve: 4.4 final nexxt year [09:37] <{slacky}> maybe march? [09:37] at the top level, i made it into two-objects [09:37] ah [09:37] is it stable at the moment? [09:37] you cant put a bunch of widgets at your top level [09:37] you need some kind of container [09:37] Action: nerve would die for the end of all flicker [09:37] <{slacky}> nerve: I don't know [09:37] nerve: download snapshot [09:37] it works good for me [09:37] ah [09:37] I have a list of bugs [09:37] cool :) [09:37] i'd love to discuss those bugs of course [09:38] if you DL it too [09:38] Zola: but WHY THE HELL..WHEN I SET LINE EDITS TO FIXED SIZES THEY GET EXPANDED WHEN I APPLY GRID LAYOUT ON THEM ?? [09:38] gyre: you need a horizontal spacer [09:38] you might have edited the wrong property [09:39] and you need to set the expansion Policy [09:39] das_netz (n=dasnetz@189.130.158.45) joined #qt. [09:39] Zola: I have edited sizePolicy... [09:39] gyre [09:39] dont work on your GUI [09:39] Zola: of course you can have several widgets at top level [09:39] the widget is your container [09:39] and has a top-level layout [09:40] Sput: I'm telling him he cant if he wants his layout to work [09:40] obviously you can put whatever crap you want [09:40] structured (n=carm@user-387h50u.cable.mindspring.com) left irc: "Konversation terminated!" [09:40] Zola: :) [09:40] Gyre: i was serious, dont work on your GUI [09:40] make a new file [09:40] with only some random widgets [09:41] and Only two boxes [09:41] do nothing but getting fixed sizings to work on that [09:41] when one thread executes a signal emit, how does qt decide what thread to run the slot(s) in? [09:41] Zola: that;s a good idea......because if i dont find out how to work wit it...ill get mad :) [09:41] my worker thread runs gui code and qt doesn't like that -.- [09:41] yes approach it atomically Gyre [09:42] so you see nothing but your problem [09:42] since the layout nesting is throwing you off at the moment [09:42] hanzz_ (n=HanzZ@212.24.149.74) left irc: Connection timed out [09:43] the one thing I dont understand about Designer is why the grids have all those weird empty cells [09:43] because you don't put stuff in them? Oo [09:43] Action: Sput does not have empty cells in his gridlayouts [09:44] Sput: Unused rows [09:44] or Unused columns [09:45] I don't have that [09:45] I make my grid as large as it has to be [09:45] and not larger [09:45] It bugs out [09:45] as you move stuff around [09:45] not here. [09:45] they appear and dont go away [09:45] "Simplify layout" fixes it, however [09:45] its just kinda odd how it works [09:46] Gyre: right click on the Grid layout i made for you and press simplify layout [09:48] Zola: and what will it cause ? :) [09:50] removes some of those jacked up empty cells [09:51] Zola: which layout did you mean ? the one below ? or toplevel one ? [09:52] below [09:52] the grid [09:52] das_netz (n=dasnetz@189.130.158.45) left irc: "Abuuurrr!!!" [09:52] Zola: heh when I right clicked on it ...I dont have the option to simplify :) [09:53] there is only Adjust :)...did you mean adjust ? [09:53] what version of Qt? [09:53] hanzz_ (n=HanzZ@212.24.149.74) joined #qt. [09:53] 4.3 [09:54] 4.3.1 :) [09:54] tmske (n=thomas@dD5763506.access.telenet.be) left irc: Connection timed out [09:57] Zola: i hear you had some propblems with your attitude again earlier ? [09:57] ICQnumber (n=none@e178202123.adsl.alicedsl.de) left irc: [09:58] profoX` (n=wesley@ubuntu/member/profox) joined #qt. [09:58] gkiagia (n=gkiagia@ppp161-137.adsl.forthnet.gr) left irc: Connection timed out [09:59] aep: read scrollback [09:59] judge for yourself [09:59] eternaleye_ (n=alex@pool-71-112-140-63.sttlwa.dsl-w.verizon.net) joined #qt. [10:00] starting with [10:00] any Qt Designer pros here [10:00] Gyre: You have to click on the right location in that grid [10:00] gyre: it's a bit tricky [10:01] it can depend on individual pixels where you click [10:01] to simplify the layout [10:01] however, use the Object inspector instead [10:01] the designer is a bit "single pixelly" [10:02] especially when you drag stuff to grid edges [10:02] Zola: i'm not here to judge you. just keeping the channel clean. and some users complained about you insultiing other users again. [10:04] aep : He was mostly just whining about how Qt stinks [10:04] profoX` (n=wesley@ubuntu/member/profox) left irc: Remote closed the connection [10:04] he does that all day. as long as he doesn't insult people i don't care [10:06] aep you're +o therefore you're judge and jury [10:07] hey... is it possible to make a Dock Widget drop area, in designer? [10:07] unfortunatly that's part of it yes [10:07] Action: Sput feels insulted by people calling him a bitch, pussy or idiot [10:08] Zola: looking at the backlog you are glad i wasn't available. i ask you a last time to stop insulting people [10:08] and i ask you other people to not feed the trolls [10:09] lol [10:09] aep did you actually read it [10:10] i did. why do you ask? [10:10] is it possible you are not aware of what you are saying insults people? [10:10] aep, to be quite honest [10:12] I think I'm totally on he money, trying to get people to cooperate, bringing up Qt topics quite often, asking quesions, engaging debates, discussing features, ways Qt can improve, etc [10:12] *on the money [10:12] And... [10:13] and telling them "to fuck of" [10:13] Sput comes in asking me to "stop complaininig" when I do so. -- which is insulting. And he did so first. [10:13] Notice who's on topic [10:13] and who's off topic [10:13] just lower your output [10:13] no need to defend yourself [10:16] Nick change: chehrlic -> chehrlic|NA [10:18] i'm glad this is FREEnode [10:19] Zola - It's pretty funny you actually think you are making this channel better. [10:21] hey... is it possible to make a Dock Widget drop area, in designer? [10:22] mainwindow has bultin areas [10:22] aep the Dock widgets dont drop into them [10:22] seems i missed some "discussions" again [10:22] bhughes_ (n=bhughes@ti221110a080-1534.bb.online.no) joined #qt. [10:22] Zola: sorry? [10:23] yes they do. as soon as the user drags them over the area [10:23] is there something special you have to do to enable it? [10:24] tuxman (n=tuxman@unaffiliated/tuxman) joined #qt. [10:24] hi everyone [10:24] aep: I can get that easily in code but not in designer [10:25] Zola: I don't think you can do this in designer, but you also don't need to [10:26] is it possible to do any docking at all, let alone QMainWindow docking? [10:26] gigabytes (n=gigabyte@host21-239-dynamic.14-87-r.retail.telecomitalia.it) joined #qt. [10:28] Zola: since separate forms in designer don't interact, it makes no sense to have that... just create your dockwindows as separate forms, and then enable dock areas in your code and add the dockwindows to them. [10:28] what's the purpose of the Dock Widget [10:28] in Designer [10:29] if you usually just make a separate form [10:30] wickedfiddle (n=michael@cpe-76-173-38-213.socal.res.rr.com) left irc: Read error: 104 (Connection reset by peer) [10:31] johannesNeu (n=johannes@88.151.74.89) left irc: Remote closed the connection [10:32] because your separate form is a dock widget that you can then use in your code. [10:33] same as with dialogs. you create them as separate entities in designer, create a corresponding class in your code and use it from within your code. [10:33] xjunior (n=xjunior@201.80.192.79) joined #qt. [10:36] so you're saying [10:36] put down a Dockwidget where you want it to be, but leave it empty [10:37] then make a separate form for a dockwidget, and edit your widget [10:37] I didn't get the first part with "put down"... what you mean? [10:37] and later on, replace the empty dockwidget's class with the separate form you made [10:37] and wire it up so dropping works [10:37] Sput: ok... like [10:37] nope, that's not what I'm saying. [10:37] Sput: dropping a "Dock Widget" Container into something [10:38] do you have that container in your version? [10:38] I have it, but you don't drop it anywhere [10:38] Nick change: zbenjamin -> zbenjamin[A] [10:38] Action: zbenjamin[A] is now away - Reason : "try to get some food" [10:38] you just use it as a container, i.e. fill it with the widget it should contain [10:38] Nick change: zbenjamin[A] -> zbenjamin [10:38] Action: zbenjamin is no longer away : Gone for 13 seconds [10:38] skejoe (n=skejoe@0x57366123.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [10:38] grent (n=grent@217-114-207-85.vychcechy.adsl-llu.static.bluetone.cz) joined #qt. [10:38] zbenjamin: that was quick [10:38] Sput: exactly.. but if you are doing that you dont need a separate form [10:38] nah [10:39] Nick change: zbenjamin -> zbenjamin[A] [10:39] Action: zbenjamin[A] is now away - Reason : "try to get some food" [10:39] I mean the QDockWidget form is separate from the QMainWindow form [10:39] zbenjamin[A]: can you switch that off please? [10:39] aep, what?` [10:39] that auto away message [10:39] okay [10:39] thanks [10:39] they don't interact in designer, interaction is implicit by calling addDockWidget() on it [10:39] in code [10:39] Nick change: zbenjamin[A] -> zbenjamin [10:39] Action: zbenjamin is no longer away : Gone for 45 seconds [10:39] Nick change: zbenjamin -> zbenjamin|out [10:39] :) [10:42] Sput: Here's how I see things, correct me where I'm wrong. There is two different dock widget methods. You can create a separate form for a QDockWidget. You can also drag a "Dock Widget" object from the Widget Box into your form. If you make the separate form you can then use that in your code. If you drag the Dock Widget into your form, you can edit it right there. And that's good. But it does not create a region where you can drag something b [10:43] The separate form one is clear and useful. [10:43] The "dock widget" dragging one is odd [10:44] right. and this channel cares about it.... why? [10:45] Essentially designer just seems to be missing a dock drop container you can put into your grid layouts and such [10:45] aep: Scroll up, I was asking a question [10:45] Sput was trying to help you. and you thank him with flooding him? [10:45] nice [10:46] didn't even know that you could drag the dockwidget anywhere... I don't use that [10:47] oh wait this time i triggered to early. i'm sorry. [10:47] yeah, this time he actually behaved :) [10:48] I am going to leave for bit now though [10:49] Sput: yeah thats what I was asking about, the draggable one [10:49] which doesnt make sense [10:49] if you figure it out, let me know [10:49] true [10:50] maybe i missunderstood something. but you find the actual widget from designer useless? [10:50] yep [10:50] aep: Yeah [10:51] how so? [10:51] i never used anything else [10:51] aep: How do you create a "drop region" where the widget can go back into, in designer? [10:51] now that I checked out again how I did it, I remember that I don't even use the widget from the designer [10:51] aep: how do you use it in designer? [10:51] once you pressed the detach button [10:51] you can never drop it back anywhere [10:52] {slacky} (n=slacky@kde/developer/gianni) left irc: Read error: 104 (Connection reset by peer) [10:52] eh? [10:52] click on the widget and select the region in the property editor [10:52] ok, for example [10:53] its set to LeftDockWidgetArea [10:53] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Remote closed the connection [10:53] when you Run the form/preview , it doesnt drop back into that region [10:54] actually it does [10:54] ok, what am i missing? [10:54] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [10:54] Action: Sput can't use it at all [10:54] but I gotta go [10:54] its also drag&dropping quiet smothly [10:55] AEP hmm! [10:55] aep: first off, you didnt define a drop region, did you? you used the builtin ones for QMainWindow, right? [10:56] http://omega.exys.org/pics/designerdock.png [10:56] what drop region? [10:56] you can't define drop regions in designer. it doesnt even make sense imo [10:56] the defaults are quiet sane [10:56] Oo I can't even put it there [10:57] Port4l (n=XChat@host.231.254.mtl.cablemodem.vdn.ca) left #qt ("Leaving"). [10:57] Port4l (n=XChat@host.231.254.mtl.cablemodem.vdn.ca) joined #qt. [10:58] so you say you are unable to drag the QDockWidget into your form? [10:59] I can, but it looks like a centralwidget then [11:00] you have to break your layout [11:00] otherwise it will act weird [11:00] gotta play with that some more later, now I am off to get dead animal :) [11:00] good luck [11:11] Zola, Sput: http://omega.exys.org/screencasts/qtdesigner-docks.ogg [11:11] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Read error: 104 (Connection reset by peer) [11:12] aep: thanks! checking [11:13] ow. i didn't recorde the mouse pointer [11:13] Action: aep does again [11:14] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [11:19] did again. [11:19] reDL? [11:19] yes [11:19] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Remote closed the connection [11:20] hm screencasts are an awesome way to show some dssigner tricks. maybe i should record more of those [11:22] that would be really great aep [11:22] gigabytes (n=gigabyte@host21-239-dynamic.14-87-r.retail.telecomitalia.it) left irc: [11:22] Nick change: zbenjamin|out -> zbenjamin [11:30] _jb (n=jb@e176142167.adsl.alicedsl.de) left irc: Remote closed the connection [11:30] hey aep [11:31] what codec is in that ogg? [11:31] i cant get it to play [11:31] johnyb (n=jb@e176142167.adsl.alicedsl.de) joined #qt. [11:31] success! [11:31] Action: Sput likes living in a city where you can get decent dead animal even on a saturday night [11:33] aep: i loove screencasts and i'll do most of my gui documentation using it for my project [11:33] aep: to show someone while talking is more than a thousand words... [11:33] hrm just tried two different OGG codecs [11:33] including FFDshow [11:33] and tried winamp and MediaPlayerClassic [11:33] neither will play it [11:34] Action: Sput should compile theora support [11:34] it's theora [11:35] mplayer ftw [11:35] hehe [11:35] no sound? [11:35] Action: Sput prefers xine [11:35] Elperion (n=Bary@p5487589A.dip.t-dialin.net) left irc: "CYA @all" [11:37] libtheora wont play it either [11:37] i can play other Ogg video files though, which are usually Mkv [11:37] Action: Sput rebuilds xine-lib with theora support [11:38] no sound [11:38] no mic available [11:39] k [11:40] jaguilera (n=opsi@unaffiliated/opsidao) left irc: Read error: 110 (Connection timed out) [11:40] aep: ok, i wateched it [11:41] got it working too [11:41] looks really horrible and i thinkn ppl need quite some fantasy to imaging what you click ;-) [11:41] heh [11:41] gigabytes (n=gigabyte@host21-239-dynamic.14-87-r.retail.telecomitalia.it) joined #qt. [11:41] Scorp1us (n=jason@72.44.154.122) left irc: Read error: 104 (Connection reset by peer) [11:41] i actually figured out the docks earlier but i didnt say anything cause i wanted to see his video :) [11:41] it's a program called "istanbul". didn't find anything else [11:41] the key is [11:42] i use [11:42] krecordmydesktop [11:42] which is really nice [11:42] checking. thanks [11:42] you have to set Property "docked: true" [11:42] since it can (not for me) record opengl [11:42] maybe that's because of this FUCKING ATI BULLSHIT closed source driver [11:42] and without doing that [11:42] the dock widget has no use [11:42] or simply (i don't think so) because of my setup... [11:42] when you do that, it becomes useful [11:42] aep: Is there any use for a "docked: false" dockwidget? [11:42] I have a QMutableLinkedListIterator. why does "while(iterator.hasPrevious()){iterator.previous()}" give me a segfault? [11:43] Zola: yes. you can dock them later in your code [11:43] qknight: may I join you in your hatred for ATI? [11:43] Sput: join is implicit. only 'leave' needs a notification [11:44] qknight: understood. I don't think that will be necessary. [11:44] hehe ;-) [11:46] they promised to make oss didnt they? [11:46] aep: I don't believe them until there actually is a working driver [11:47] i installed an ubuntu for a a friend earlier this day. it's funny, they war you your security is compromised the second you install closed source drivers [11:47] aep: and rightly so [11:47] aep: though I think it's still a good idea that they made it easy to get the closed source drivers now [11:48] easy? well... i had to compile them [11:48] not sure if that's "easy" for the standard buntu user [11:48] daniel (i=daniel@unaffiliated/daniel) left irc: Read error: 110 (Connection timed out) [11:48] my laptop's ATI chip is unusable with the open drivers, the closed drivers at least give me acceptable 2D performance (even though they crash at logout) [11:48] but propably i'm just to retarded to understand the gui installer [11:48] aep: there is a "restricted driver manager" [11:48] which allows you to install the closed source drivers [11:48] yeah i clicked that [11:49] and it installed something then X froze [11:49] in older ubuntu releases, there was a repository you could add [11:49] Nick change: zbenjamin -> zbenjamin|out [11:49] Xorg.conf had the "nv" driver though [11:49] but on the one hand, I don't run ubuntu, I am just tellin what others told me :) [11:49] and the nvidia kernel module didnt mtch the Xorg driver [11:49] s/one/other/ [11:49] oh well i didn't get photoshop to work so he goes back to vista anyway [11:50] Action: aep thinks gimp > photoshop. even with the retarded GUI [11:50] gentoo ftw [11:50] krita2 > gimp, I believe :) [11:50] krita never worked for me [11:50] i'm unable to do anything usefull with it [11:50] yeah, krita2 is supposed to be a milestone though [11:51] from what I've heard and seen [11:51] has real color mixing and stuff [11:51] aep: ack [11:51] yeah but not the tools i need [11:51] Sput: hope krita2 will be cool [11:51] real whatever mixing doesnt even remotly help me. i don't even know what to do with it [11:52] I also have high hopes in the rest of koffice2 [11:52] would be great to not have to resort to ooo anymore [11:52] Sput: forget about that ;) [11:52] koffice has still a way to go [11:52] i love what is in there right now [11:52] don't get me wrong [11:53] well, I mostly need it for simple presentations and *.doc and ppt display [11:53] any serious work is done in LyX or LaTeX anyway [11:53] css3 > latex [11:53] in that case ;-) [11:53] i do all my science papers with css [11:54] and render them to pdf with prince (comercial but awesome) [11:54] hm lets try to do something with krita [11:54] maybe improved [11:55] and i hate the gtk color dialog so... [11:56] aep: well, in academia the only thing you can actually use is LaTeX (or LyX) [11:56] templates are almost exclusively for latex [11:56] oh not here [11:56] also of course, it makes cooperation much easier [11:56] in the uni-tuebingen most ppt is used often [11:56] really? [11:57] for my taste 'far' to often [11:57] qknight: except for the MS Office morons [11:57] Sput: i would not call them morons but we got a lot of them [11:57] the argument that they should pay me the license and support for a windows installation usually shuts them up [11:57] even thos ding Graphical stuff use windows and usually tend to tolerate but not like ppl using linux [11:58] Sput: as student you can have the $MS_DEL_MY_SOUL_WHILE_I'M_A_STUDENT so you can use all m$ software for 'free' as long as you study [11:58] Sput: this argument is not working then.. [11:58] qknight: all MS software except office [11:58] you're in de/ [11:58] ? [11:59] yeah [11:59] office is not included in MSDNAA [11:59] well, I trained my superiors well [11:59] also, showing them the wonders of BibTeX and the layout of formulae helps [11:59] and of course, *.tex works with svn [12:01] isn't there a kind of 'svn' approach in m$ office? [12:01] just curious [12:01] or is there only differentical viewing [12:01] our company is switching to linux. firing people who resist [12:01] maybe i mix that up [12:01] dunno, I wouldn't know [12:01] aep: cool ;-) [12:01] never used MS Office [12:01] I tend to send ODF to people that send me *.doc [12:02] becouse in the end some cheap indians with linux experience are cheaper then MS licensing [12:02] gkiagia (n=gkiagia@ppp161-137.adsl.forthnet.gr) joined #qt. [12:02] aep: may i ask how big that 'firm' is? [12:02] well maybe not but the amount of indepence we gain through that is a decent point [12:02] startup. 20 people [12:02] ok, that's a lot [12:02] how can I draw a QPainterPath at x, y from topleft instead of using x, y from the baseline? [12:02] aep: it certainly is. [12:02] also, MS is stopping support for XP next year, and nobody wants Vista [12:03] no, not even those folks who get fired soon [12:03] twosouls82: give the right x,y to the QPainterPath(x,y) constructor [12:03] especially not admins [12:03] automatic, unstoppable updates? [12:03] love [12:03] i don't think they will stop support for xp, do you? [12:03] there are still to many ppl not using vista at all [12:03] as in you tell windows update to _not_ install an update, and it goes ahead and installs it anyway later? [12:03] qknight: they already extended the support period for 6 months [12:03] until next year [12:03] i mean in my case it's about 3 ppl i know they use vista at all [12:04] Triskelios (n=trisk@manticore.acm.jhu.edu) joined #qt. [12:04] Sput: lol, ok. hope they will change mind at m$ or a lot of uses may get 'lost' [12:04] I also love that remote-disable-feature of Vista [12:04] hm krita failed. you can't even convert selections to path and vise versa [12:04] lost in the sense of they will just have to do $whatever [12:04] aep: krita1 is crap [12:04] but krita2 looks _very_ promising [12:05] qknight: addText requires a baseline, so what should I do? [12:05] aep: thanks for your docapp video, no i understand docs ;) [12:05] you're welcome [12:05] twosouls82: just what i said [12:06] twosouls82: moment, have to 're'read your question [12:06] Sput: any url? [12:06] qknight: losing as many users as possible seems to be MS's goal lately [12:06] twosouls82: sorry, never used that [12:07] Sput: why? [12:07] aep: I can check, most of it I read in the KDE blogs [12:07] np, thanks anyway [12:07] qknight: well, ever since they started that WGA crap [12:07] and vista cost them more users than it converts [12:08] Sput: yes, it might be true ;-) [12:08] Sput: especially 'unbundled' users which 'have' to buy vista will get into trouble ... [12:08] Sput: i don't think that this is of interested for ppl buying bundled hardware [12:08] like a friend of mine who was temptet to switch to linux becouse of that [12:09] koffice runs on windows, which is a definitive plus for heterogeneous work environments [12:09] Sput: kde 4 or kde 3? [12:09] qknight: you only get home premium with bundles [12:09] that sucks [12:09] qknight: KDE4 [12:09] daniel (i=daniel@unaffiliated/daniel) joined #qt. [12:09] that's yet to prove Sput :p [12:10] aep: what? [12:10] runs and compiles are two different things [12:10] aep: hehe, yes [12:10] aep: I've seen screenshots of krita on windows [12:10] seems to run quite well already [12:10] Sput: must be the kde-windows theme then ;-) [12:10] i've seen a lot of screenshots [12:10] also kword [12:10] well, we'll see [12:10] there was the same rumor before the kde3 release [12:10] I am not that interested in that particular feature :) [12:10] and nothing happened [12:11] this time it will change [12:11] aep: kdelibs3 never were supposed to run on windows, though there was some inofficial porting project [12:11] i am. becouse that would totally convince me kde is good software [12:11] kdelibs4 on windows are quite stable already [12:11] kde3 didn't go to m$ platform only because of the qt3 license thing [12:11] you probably won't see the KDE4 desktop on windows anytime soon, but most apps should run [12:12] xjunior (n=xjunior@201.80.192.79) left irc: Read error: 110 (Connection timed out) [12:12] wa krita is a waste of time. it has like 3 tools [12:13] somone should just hack a new gui around libgimp [12:14] aep, he like that guy who asked if someone wants to port kolourpaint to gtk [12:14] yay! [12:14] myrizio (n=myrizio@nat16.phc.unipi.it) left irc: "Leaving" [12:14] well i would even use a gtk gui if it was usable [12:14] that was a good one [12:14] the current gimp gui is pure failure [12:15] "gtk" and "usable" don't mix [12:15] not really no [12:15] they dont have default buttons in dialogs! [12:15] they dont even have dialogs! [12:15] all mainwidnows [12:15] horrible horrible horibble [12:16] bah whatever. back to hacking with qt tools. <3 [12:16] aep, what are you hacking on? [12:17] QxtSharedPrivate [12:17] a shared private? [12:17] QSharedData * QxtPimpl [12:17] == awesome [12:17] note to self: this new pork chops seasoning I got is _hot_ [12:17] Action: Sput needs beer now [12:17] uh what about QxtQObjectPrivate to make it possible to have a private object as a child [12:18] means we can actually have an implicit shared qxt_d [12:18] hm? [12:18] a what? [12:18] do you remember the problem that if you have a QObject as private class and the public class moves to a different thread? [12:18] ow that [12:19] the solution is easy imo [12:20] the public class must be a QObject. so just call qxt_d().setParent(this); in the ctor [12:20] qt will do the rest [12:20] hm okay but in the destructor qt will call delete on the private class then [12:20] no. where? [12:21] ow that [12:21] if your public object gets deleted it will delete all its children+ [12:21] yeah well. won't work for share data. but shared data has no parent anyway [12:21] or multiple parents. [12:22] i think the ThreadMove event should have a info about where to move [12:22] what's wrong with just parenting it? [12:23] what happens to data created on the stack if delete is called on it [12:24] it's not stack [12:24] ow wait. it is [12:24] uuuuh [12:24] thats what i wanted to say [12:24] will crash badly [12:24] you are right. setting teh parent is horrible wrong [12:24] that will totaly confuse the qt connection system [12:25] unless we make it the private on the heap [12:25] i want to do that anyway. new cleaner syntax [12:25] private: QxtPrivate qxt_d; [12:25] way nicer then the macro [12:26] but for that, what i make must work in msvc6. can you test that? [12:26] yep and the template then can call new on it [12:26] yes! [12:26] msvc6 i can only test msvc2005 [12:26] but you can't do it inline in msvc afaik [12:26] err is that msvc7? [12:26] i dunno [12:26] template functions in non template classes won't work on msvc6 also [12:26] yes its msvc7 [12:27] you decide wich lowest msvc version we support. choose the one most people use [12:27] no wrong [12:27] its 8 or 9 i think [12:27] ow [12:27] GodFather (n=rcc@rrcs-72-43-61-48.nys.biz.rr.com) joined #qt. [12:27] but people use 6, do they? [12:27] in fact i can only test 2005 because i don't have access to a different one [12:27] so we're stuck with this as lowest version supported [12:28] no one ever tested anything lower [12:28] yep [12:28] i don't know which version jp uses [12:28] but i think from msvc.net on its very close to the standart [12:28] msvc6 was a really wired version [12:28] lastrainson (n=lastrain@lastrainson.henola.org) joined #qt. [12:28] weird [12:29] it's old [12:29] and it doesn't support ISO C++, it actually implements a draft [12:29] yes it is [12:29] bhughes_: wich is the lowest version qt supports? [12:29] msvc6 [12:29] 6 [12:29] ow [12:29] yup [12:30] how do you actually do anything ? :D [12:30] aep: it's like building IE-compliant websites :) [12:30] msvc6 is the reason qtconcurrent hasn't hit the 4.4 snapshots yet :/ [12:30] Sput: yeah hehe [12:30] Sput: i usually support IE5, so i know the pain [12:30] just another variation of MS hindering innovation [12:30] aep: I don't care for IE anymore [12:31] okay dinner time now. I'm out maybe i will come back later ... cya guys [12:31] Sput: you don't have huge customers then [12:31] err big [12:31] aep: nope :) [12:33] hi everyone. I got a segfault for which a gdb backtrace told me that it was actually an inner frame of QObject::connect() which was causing the segfault. Both connected object pointers are valid and the segfault is independent of any connection type (Queued / Direct have both been tested) . The two objects are owned by two different threads (a QThread subclass, and a custom class created in the thread's run() method) . Any idea that could help [12:33] me ? [12:33] yeah FACK [12:33] FAIL! : QxtSharedPrivateTest::explicitCopyCtor() 'm1.string()=="foo"' returned FALSE. () [12:34] no luck on calling an explciti copy ctor where none was defined at templete evaluating time [12:34] lastrainson: don't trust gdb when threads are invloded. [12:35] lastrainson: are you properly protecting your resources? (or ebtter not use any shared resources at all) [12:35] aep: my resources are well QMutex() protected (at least I think so) [12:36] aep: any better tool than gdb then ? ;) [12:36] valgrind? [12:37] well. a good eye [12:37] maybe paste some code? [12:38] bhughes_: i require your geniusness. see teh copy ctor here? PVT is forward declared, means it's totally unknown the time the template gets "Inserted" (howeer you call that). using that thoise two lines at least some copiing is done, but no custom copy ctor is called. http://qtnode.net/index.php/pastebin/4954 [12:39] aep: it's really connect() segfaulting, I got it commented and it went fine [12:39] the problem is obviiously the forwar declaration, but that's the whole point of the class [12:39] lastrainson: what's the line? [12:39] aep: I'm pasting it [12:40] including the backtrace [12:42] http://qtnode.net/pastebin/4955 [12:42] i'm think about some virtual mixin that can call the copy ctor. but thats so extremly weird [12:43] lastrainson: directconnection on a different thread is shooting yourself twice, [12:43] and what's "this" ? [12:43] a QThread? i hope not [12:44] the qt designer manual is so tiny [12:44] oh no. it is. looking at the trace you are trying to connect something to the actual QThread [12:44] lastrainson: the QThread itself lives in the caller thread [12:44] !f Qthread [12:44] aep: No keys matched that query. [12:44] !f thread [12:44] aep: 'threads' and 'thread' [12:44] !thread [12:44] aep: [thread] http://doc.trolltech.com/latest/threads.html [12:44] meh [12:44] !threads [12:44] aep: I have spawned 4 threads; 1 thread is still currently active: MainThread. [12:44] !f threads [12:44] aep: [threads] http://doc.trolltech.com/latest/threads.html [12:44] .... [12:44] qtdancer: you suck [12:44] aep: Error: "you" is not a valid command. [12:45] lastrainson: you maybe wanted MyQObject m; Qthread t; t.start(), m.moveToThread(&t); connect(stuff, &m,...); [12:46] aep: this is a QThread and DirectConnection was so the slots from the QThreads would be called from the QThread's thread and not the main thread, which is impossible with a Queued connection [12:46] or just use QxtJob or QConcurrent :p [12:46] What's the proper placeholder to use for my custom widgets? [12:46] with Designer [12:46] lastrainson: be aware that this is toally wrong [12:46] i don't feel like Designer-izing them [12:46] Zola: a Qwidget [12:46] if they're only used one time [12:46] then right click delegate [12:47] aep: Ok.. and then I simply inherit from that Qwidget? [12:47] err promote [12:47] yeah [12:47] Tomasu (n=moose@S0106001bfcce6c34.ed.shawcable.net) left irc: "Konversation terminated!" [12:47] or from whatever you want to inherit [12:47] err from "that" widget? no, you promote them to your widget [12:48] aep: I think I'll remember '-_- [12:48] i know QThread is a bit confusing. for the time beeing, just add slots to it [12:48] neither signals [12:49] * just don't [12:49] Are you guys happy with QThread? [12:49] aep: shame on me for having been to the DevDays, to Brad's talk about threads and not working that out :p [12:49] QThread is cool [12:49] no. and no you don't need to rant about it Zola. the Trolls are well aware of that problem and qt4.4 will bring cure [12:49] especially since TT invented the queued connections [12:50] lastrainson: exactly! :p [12:50] Action: Zola rants [12:50] no you won't [12:51] aep, i wanna hear you rant about it [12:51] no Zola. i won't either [12:51] :( [12:51] Action: Sput has no reason to rant [12:51] instead i provide proof of concepts and testcases and send them to the bugtracker [12:52] well aep, im doing that on 4.4, I have a textfile of about 30 bugs written up [12:52] bhughes_ : your talk was fine, really :) [12:52] didnt look into how to submit properly yet [12:52] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [12:52] Action: Zola hates stable builds [12:53] bhughes_: so any thoughts about that copy ctor? [12:54] tmske (n=thomas@dD5763506.access.telenet.be) joined #qt. [12:56] aep: when isn't your copy ctor called? [12:56] on copy? [12:56] what? [12:57] you're saying this class does not invoke copy ctor at all? [12:58] are you doing so with operator= or with Foo(Foo2) [12:58] thanks for trying to help Zola, but there is a reason i especially adressed brad with that question [12:58] aep [12:58] what? [12:58] you will never run into somebody who knows as much about templates as i do [12:59] well. ok. let's try [12:59] saw the past i made? [12:59] yup [12:59] PVT is forwarded [12:59] means there is no actual knowing of any copy ctor at the time this code is compiled [13:00] the compiler knows nothing about PVT actually, except it's a class [13:00] kaffeedoktor (n=marco@HSI-KBW-091-089-001-201.hsi2.kabelbw.de) left irc: "Verlassend" [13:00] so it won't call any custom copy ctor [13:01] aep, add a few more lines of code [13:01] saying what? [13:01] so that it's compilable [13:01] ie, missing a small bit of context [13:01] sorry? [13:01] adding random garbage won't help [13:01] nah, i mean [13:01] usually when we exchange template code [13:02] we pair it down into a minimum-example scenario which can be dropped into a compiler -- any compiler, ie comeau [13:02] Tomasu (n=moose@S0106001bfcce6c34.ed.shawcable.net) joined #qt. [13:02] so, add class Pvt; to the front of this code, or whatever else is needed to demonstrate the whole thing [13:02] i'm not folliwng you [13:02] and re-paste [13:02] you are talking about a testcase? [13:03] dpc (n=dpc@unregister180027239087.c27.msk.pl) left #qt ("Konversation terminated!"). [13:03] yep [13:03] aha. ok. i'll make you one [13:03] !testcase [13:03] aep: [testcase] Having a good testcase is critical for us to be able to help you, please read http://homepage1.nifty.com/algafield/sscce.html for more information. A simple Testcase skeleton: http://qtnode.net/index.php/pastebin/4702 [13:04] dont put in Qt code though [13:04] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) left irc: Remote closed the connection [13:04] just C++ .. oftentimes template troubles are compiler-dependent [13:04] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [13:06] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) left irc: Remote closed the connection [13:07] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [13:09] now that's weird. the copy ctor is actually called [13:09] at least in my test case [13:10] dappermuis (n=kinus@196.209.243.228) joined #qt. [13:10] yep [13:10] there was no problem in your code [13:10] ow right. i know why [13:11] anyone know if there's a Qt Designer plugin for QSqlTableModel [13:11] ? [13:11] you propably wanted a QTableView [13:12] aep, the table needs to represent an SQL table [13:12] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) left irc: Remote closed the connection [13:12] http://rafb.net/p/BgmLD670.html [13:12] could i maybe use a QTableView and promote it to a QSqlTableModel? [13:12] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [13:12] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) left irc: Read error: 104 (Connection reset by peer) [13:12] template support still being crap in compilers in one good reason for keeping moc around and not have templated signals [13:13] there's a little code i made for local functors, enjoy [13:13] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [13:15] ie, local scope functions and function objects [13:16] dappermuis: nope... those are 2 totally differnt things... you can never promote a view to a model (or vice versa) [13:16] ok putting all headers of the fialing combination together in one big test.cpp makes it work [13:16] that's bad [13:17] EgS, ok - thanks [13:17] dappermuis: what you want is put a qtableview into your widget in the designer and connect you QSqlTableModel to that view [13:17] as in myTableView->setModel(myQSqlTableModel) [13:17] EgS, aaaah - i see [13:17] EgS, and that does the trick? [13:18] dappermuis: jeah sure... models only contain the data and views... well views are graphical representations of that data [13:18] aep I'll always answer any template Q you have [13:18] skejoe (n=skejoe@0x57366123.vgnxx4.adsl-dhcp.tele.dk) left irc: "WeeChat 0.2.6" [13:18] skejoe (n=skejoe@0x57366123.vgnxx4.adsl-dhcp.tele.dk) joined #qt. [13:18] EgS, ahhh ok...I just saw that's what they do in the example in Qt Assistant [13:18] EgS, thanks :) [13:19] Zola: thanks. currently i'm just horrible confused. maybe if you have some time to contribute i would welcome a review of QxtSharedPrivate and QxtPimpl [13:19] GodFather (n=rcc@rrcs-72-43-61-48.nys.biz.rr.com) left irc: "Ex-Chat" [13:19] dappermuis: you should take a look at the model view controller howto in the assistant [13:19] valcker (n=valcker@110-60-124-91.pool.ukrtel.net) left irc: Remote closed the connection [13:20] aep: where are they [13:21] ah in extension [13:21] rand (n=chatzill@netblock-66-245-225-188.dslextreme.com) joined #qt. [13:21] Zola: http://libqxt.svn.sourceforge.net/viewvc/libqxt/trunk/src/core/qxtsharedprivate.h?view=markup&pathrev=935 [13:22] this is your code? [13:22] yes [13:22] ah, it is [13:22] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) left irc: Remote closed the connection [13:22] ok i read the code [13:23] dissonans_ (n=sub@29.84-48-217.nextgentel.com) joined #qt. [13:24] what does it have to do with Qt? [13:24] oh, for QSharedDataPointer [13:24] if I define a QGraphicsItem's shape(), say as a rectangle, how do I indicate that the shape is filled? [13:25] because right now the scene seems to think the item is all outline [13:25] the shapes are always filled, afaik [13:25] i.e., I only receive events when the cursor is above the outline [13:25] i guess that's Qt's reference counted pointer [13:25] EgS, sorry I had to take a phone call. Um, I was just about to ask you about something like that...is there any reference guide for understanding the underlying workings of Qt? [13:26] chakie: it doesn't appear that way, I can post a simple test app in Python if it would help [13:26] dappermuis: search for "Model/View Programming" in your assistant or http://doc.trolltech.com/4.3/model-view-programming.html [13:27] aep: if QSharedDataPtr is like shared_ptr() then what's QSharedData? [13:27] dissonans_: i made a custom shape for hexes, and they work as filled [13:28] Zola: the T [13:28] chakie: in my test, I only instantiate a path, and call addRect on it, the resulting item only receives events for the outline [13:28] jaguilera (n=opsi@unaffiliated/opsidao) joined #qt. [13:28] dissonans_: http://qtnode.net/index.php/pastebin/4956 [13:28] EgS, thanks :) [13:28] dissonans_: interesting, it should not be that way [13:28] aep: So Qt's shared pointers need a wrapper class around the objects they have ownership of? [13:28] I can paste my test app if you like? [13:29] dissonans_: http://qtnode.net/index.php/pastebin/4957 [13:29] Zola: yes [13:29] dissonans_: that one in c++, and it works as filled [13:30] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [13:30] dissonans_: but why do you have a rect as the shape? the default is the bounding rect, afaik [13:30] Ok. Well that has implications such that: You can then store a temporary of that object, and later transfer ownership to another shared pointer. [13:30] However. [13:30] It works out the same as simply using a temp shared_ptr [13:30] I define the boundingRect as shape().boundingRect() [13:30] So I'll have to check on their shared pointers to see what the point of them using a wrapper was [13:30] it's just for testing [13:30] the shape might as well be an ellipse [13:31] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) left irc: Remote closed the connection [13:31] dissonans_: paste the code for the item [13:31] dissonans_: or the relevant parts [13:31] aep: do you know why trolltech chose the wrapper? [13:31] nerve (n=nerve@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [13:31] chakie: i'll paste the test app (it's small) [13:32] it might be roughly equivalent to boost::ref [13:33] chakie: http://qtnode.net/index.php/pastebin/4959 [13:33] Zola: didnt you want to read that code? [13:33] it'll print out hoverEnter/hoverLeave events [13:33] Aep, a few things you should know [13:34] chuy_max (n=chuy@201-167-95-66-cable.cybercable.net.mx) joined #qt. [13:34] dissonans_: no workee :) [13:34] chakie: oops, bug, i'll fix it [13:34] why didn't you follow the rule of three in QxtSharedPrivateData [13:34] your classes are also not self assignment safe. you need to use the swap() idiom [13:35] !rule of 3 [13:35] Zola: Error: "rule" is not a valid command. [13:35] ehh [13:35] oh god. i utterly fail at babysitting you [13:35] chakie: http://qtnode.net/index.php/pastebin/4960 [13:36] never heard of such a rule [13:36] rule of three: if you declare one of destructor, copy constructor, and assignment operator you should declare all three [13:37] Hi: I wonder if someone could help me with a compiler error I'm getting, I'm getting multiple definitions of a function, although I used #ifndef in the header containing the function. the paste is here: http://qtnode.net/index.php/pastebin/4961 [13:37] Tomasu (n=moose@S0106001bfcce6c34.ed.shawcable.net) left irc: Connection timed out [13:38] chuy_max: since feed() is in a header, you'll get the code in multiple .o file [13:38] chuy_max: so you either need to move the code into one .cpp file, or mark the function as inline in the header [13:39] aep: you fail at babysitting me? [13:39] dissonans_: you have a stroked path [13:39] Zola: never mind. just forget what i asked you for [13:39] chakie: aha, so that makes a difference [13:39] dissonans_: not a regular rect. a stroked path is an outline and i assume that works exactly right [13:40] aep, when I'm reviewing your code, why are you an asshole? [13:40] bhughes_, ok, I'll take the cpp approach ^^. thanks for the info. I didn't know you couldn't just add functions to a header like I did. :) [13:40] chakie: the idea was to account for the pen, I thought that was the way to do it [13:40] oops, I think I may have missed something [13:40] come to think of it I suppose the stroked path should be added, no? [13:40] bhughes_ (n=bhughes@ti221110a080-1534.bb.online.no) left irc: Read error: 104 (Connection reset by peer) [13:41] dissonans_: what if you base shape() on self.__ppath? [13:41] chakie: I think the shape should be the union of the two [13:41] bhughes_ (n=bhughes@ti221110a080-1534.bb.online.no) joined #qt. [13:41] Zola: i was trying to push your ego. int the hop you do something else then talking shit, but you used it as opportunity to talk more shit [13:41] to account for the stroke [13:41] dissonans_: yeah [13:41] dissonans_: but not only the stroked path [13:41] daniel (i=daniel@unaffiliated/daniel) left irc: Read error: 110 (Connection timed out) [13:42] Zola: that bug was a stupid typo [13:42] chakie: thanks for noticing! [13:42] dissonans_: i had the same thing when i used some rectangles done in svg as items. the stroke was outside the bounding rect defined in the svg [13:43] aep: usually when we're reviewing peoples classes, we find all the things that need fixing [13:43] it's not talking shit [13:44] right. in the time you do that i moved the comma to the intendet position [13:44] sorry for trying to integrate you. [13:44] !give aep fail [13:44] aep: Error: "give" is not a valid command. [13:44] meh [13:44] fix your self assignment problems [13:44] i even fail at that [13:45] it works like this [13:45] Action: bhughes_ has no problems self assigning [13:46] T& T::operator= (const T& in) { T tmp(in); swap(in); return *this; } [13:46] make sure that Swap is set to throw() [13:46] Action: Sput usually assigns new cold beer to himself [13:46] Sput: can spare one for me please? [13:47] inside swap, pull your deletion/New code out of your previous copy ctor and op= [13:47] aep: sure, my fridge is usually filled with cold beer (and not from Turkey) [13:47] Zola: it's all right. you've proven you're geniusness. you can stop now [13:47] Sput: :) [13:47] aep: dude, its not geniusesnesss [13:47] aep: you have to come over to get it though :) [13:47] its basic C++ [13:47] which reminds me, we should think about some sort of informal hackathon at some time [13:48] yee [13:48] if you bring the beer :p [13:48] beer is never the issue ;) [13:48] true [13:48] yeah rather the distance. [13:49] nah, you are not that far away [13:49] no? [13:49] i have no clue where you live honestly [13:49] aep: line 157 is dangerous [13:49] link? [13:49] don't think so, aren't you located somewhere close to bavaria? [13:49] Karlsruhe [13:50] bhughes_: me? [13:50] yeh, what code are we looking at? :) [13:50] Sput: no. thuringa/eisenach [13:50] aep: ah, k, still not too far away [13:50] :) [13:50] bhughes_: that was QxtSharedPrivate. i had a typo. sorry for bugging you [13:51] bugging me? [13:51] bhughes: do you know how come QPainterPathStroker can't be constructed from a QPen automatically? [13:51] bhughes_ I mean [13:51] aep: this class is also not exception safe [13:51] bhughes_: i thought i had an ultra advanced problem only you can solve. turned out to be a stupid typo ;) [13:51] instead of calling setWidth etc. [13:51] aep: takes exactly 3 hours by train :) [13:51] oh? [13:51] and 66 euros [13:51] dissonans: no idea :) [13:52] bhughes_: you didn't get my highlight? [13:52] aep: no, i didn't [13:52] explains why you didn't answer. [13:52] bhughes_: an omission of sorts maybe, perhaps I should make a suggestion in the tracker [13:52] [21:40] <-- bhughes_ has left this server (Read error: 104 (Connection reset by peer)). [13:52] ow [13:52] hm, WebKit seems to work pretty fine, at least the sample qt "browser". nice [13:53] it makes sense to me at least [13:53] chakie: yes! it's ectremly easy to integrate [13:53] Action: chakie thinks he can work out something around webkit [13:53] aep: definitely, the app is trivial [13:53] hmmm, /me wonders how all that fuzz between QtWebKit and KHTML is going to play out [13:53] fuzz? [13:53] like what? didn't notice anything [13:53] if only i can figure out how to signal from JS to my app that something happened [13:53] yeah, apparently the people talking about "khtml and webkit get reunited again" didn't ask the khtml devs before [13:54] aep: there has been some slight friction lately [13:54] chakie: easy with the qt stuff in html. dunno if its public yet [13:54] oh lol [13:54] aep: hm? care to elaborate? [13:54] chakie: [13:55] aep: biggest problem being the fact that Qt has quite long release cycles, probably trolltech additionally needs to sync with apple, and the KDE people don't feel like having to wait for a year to get a bugfix in [13:55] [13:55] aep: hm, ok, that looks interesting :) [13:55] aep: but it's not what i need, i think [13:55] including JS/QScript/Qt mapping [13:55] it's awesome [13:55] Sput: i see [13:55] aep: what i really am after is getting out some info from JS on a page [13:55] well that'sa good reason for fuzz [13:56] qt having a full blown html rendering engine is some kind of weird anyway [13:56] well, it'll make assistant faster, so i take it any day [13:57] and finally no more table layouts in assistant docs [13:57] and horrible broken css [13:57] http://www.kdedevelopers.org/node/3073 <-- this is a short summary of the issues [13:57] personally i think QTextBrowser should be made way more lightweight in favor for QWebPage [13:58] main problem being apple very reluctant on accepting patches, KDE needing to sync khtml updates with KDE releases, and trolltech being somewhere in between [13:58] ow doesn't sound good. hopefully it's the real issue and not something that shows the usual Oopen Source vs Closed SOurce thing [13:59] *that hides [13:59] aep: no closed source involved, thank god [13:59] long release cycles? [13:59] aep: but very different development models [14:00] yeah qt release cycles are indeed to long considering security patches for a web browser [14:00] Action: bhughes_ thinks... 4.3 in late may 2007, 4.4 in late march/early april 2008 [14:00] "If we have to commit a patch to WebKit, wait for WebKit to release with the next version of OS X, and wait for Trolltech to release that with the next version of Qt, we are in for some very long and unsatisfying turn-around times." [14:00] http://lists.trolltech.com/qt-interest/2004-09/thread00848-0.html [14:00] bhughes_ : Do you know if that's been fixed ? [14:01] bhughes_: 11 months is quite cool for something like Qt, but it _is_ long for a web rendering engine that needs to keep track of current developments and also needs to take care of security issues [14:01] Port4l: no idea, i'm not a windows person [14:01] and who knows how often apple is updating their branch [14:01] bhughes_ : Where could I find something like that out? [14:01] I can see the problems there, though I personally would love having QtWebKit everywhere [14:01] bhughes_ : I can't try it since I don't have commercial edition (yet) -- And this is one of the deciding factors [14:01] Port4l: trolltech support? [14:02] bhughes_ : Do they give support to open source users? [14:03] not beyond the normal bug reporting process [14:03] if you're needing activeqt, why not get yourself an evaluation license? [14:03] (that entitles you to support during the evaluation period, iirc) [14:04] activeqt is closed anyway. isn't it? [14:05] yes [14:05] how can a QMutableLinkedListIterator get invalid? [14:05] if you run over the boundarys i guess [14:06] bhughes_ : I think I already had an evaluation license a while ago [14:06] bhughes_ : Do you know if it's possible to get another? [14:06] aep: I'm quite sure I don't [14:06] simon_h: well then it's very unusual [14:06] Port4l: dunno... you'll have to ask the sales guys :) [14:06] ok :) [14:06] meaning it's propably a bug [14:06] !testcase [14:06] aep: [testcase] Having a good testcase is critical for us to be able to help you, please read http://homepage1.nifty.com/algafield/sscce.html for more information. A simple Testcase skeleton: http://qtnode.net/index.php/pastebin/4702 [14:06] Port4l: ^ [14:07] aep: do you have another idea why "while(iterator.hasPrevious()){iterator.previous()}" could give a segfault? [14:07] Yes aep ? [14:07] Port4l: you don't know wether you approached sales and got an evaluation license that you installed? you need to stay off the chemicals :) [14:07] Port4l: wrong nick. sorry [14:08] simon_h: no. make a testcase please [14:08] chakie: It was a while ago.. [14:08] bhughes_ : I will use an alternate e-mail, don't tell anyone :) [14:08] Port4l: look in you mail box :) [14:08] your [14:08] I just checked, I did already use my primary e-mail for an eval version [14:10] jaguilera (n=opsi@unaffiliated/opsidao) left irc: Remote closed the connection [14:10] Nick change: amrit|zzz -> amrit [14:10] so why did Qt choose a wrapper in their shared pointers [14:11] Port4l: well, approach sales and ask for a new one. i guess they really want to *sell* stuff :) [14:11] Zola: a wrapper in their shared pointers? [14:11] Zola: read again [14:12] bhughes_: QSharedData [14:12] it makes perfect sense. stop questioning Trolltechs engeneers. it just makes you look more stupid then you already made yourself looking [14:12] SolarWar (n=SolarWar@pool-71-123-90-122.wma.east.verizon.net) left irc: Remote closed the connection [14:12] i dont care if look stupid aep [14:12] the thing is [14:13] i would be worried if noone questioned us :) [14:13] SolarWar (n=SolarWar@pool-71-123-90-122.wma.east.verizon.net) joined #qt. [14:13] if you dont look stupid, or if you worry about looking stupid [14:13] you wont learn shit [14:13] Zola: you're wondering why we have QSharedData instead of ...? [14:14] bhughes_: instead of no QSharedData whatsoever, and always passing object ownership onto another shared pointer [14:14] in the QSharedData scenario, you can let all the shared pointers go away [14:14] where do you put the reference count then? [14:14] in a global [14:14] Action: aep hides [14:15] on the heap on a fixed position. casting a fixed int number to a pointer to access it [14:15] multiple QSharedDataPointers can point at a single QSharedData... they all have shared ownership, and the last one has the responsibility of deleting the data [14:15] (hey wait, that could actually work. weird) [14:16] this means we have to have a reference counter somewhere [14:16] aep: a database would be better [14:16] gigabytes (n=gigabyte@host21-239-dynamic.14-87-r.retail.telecomitalia.it) left irc: [14:16] chakie mysql? :D [14:16] we put it in QSharedData [14:16] bhughes_: easy [14:16] aep: perhaps, or sqlite [14:16] bhughes_: the reference count can be in the the QSharedDataPointer itself [14:16] you dont allocate in there [14:16] Zola: are you sure? [14:16] yes [14:16] you keep a pointer to a reference [14:16] "Please set up your MySQL server prior to use Qt Multithreading facilities. Thank you." [14:17] *using [14:17] to the reference count [14:17] So, if i have 2 QSharedDataPointers, each has a reference count? [14:17] no [14:17] wait. he has an actuall good idea [14:17] you just decouple the mixin [14:17] each one has a RefCount >* [14:17] having two objects to share [14:18] the actual object and the counter [14:18] hm wait that's my idea. i already wrote it. you just read it [14:18] heh [14:18] i did? [14:18] no. he [14:18] no idea what you're talking about aep [14:19] bhughes_: QxtSharedPrivate decouples the counter from the actual data [14:19] in order to have the data private [14:19] oh [14:19] aep your class was extremely buggy [14:19] Zola: yes of course. [14:19] i are failure [14:19] i guess that works [14:20] Action: bhughes_ personally likes having the refcount with the data... makes it possible to only require a single memory allocation when copying [14:20] s,copying,detaching, [14:21] kury7 (n=kury@CPE-76-178-171-156.natnow.res.rr.com) joined #qt. [14:21] bhughes_: indeed. the problerm i encountered though, is that it makes it impossible to forward the private. [14:21] * forward the data. so it's private [14:22] oh? [14:22] of course. since it has to be declared before you construct the QSharedDataPointer [14:23] If I run string.contains( QRegExp("(\\d)") ) is their a way to get the value the regex captured? [14:23] kury7: yes. just use QRegExp directly [14:23] !rtfm QRegExp [14:23] aep: QRegExp (Qt 4.3) http://doc.trolltech.com/4.3/qregexp.html [14:23] QStringList QRegExp::capturedTexts () [14:23] aep: QSharedDataPointer has to be able to create your data, so yeh, it needs to be declared :) [14:24] bhughes_: yes. unless you can ignore msvc6 :P [14:24] wich i will herby do. [14:24] Action: bhughes_ cannot, unfortunately [14:24] yeah [14:25] aep: right now I have no idea how to make a testcase from this. I was just running it in a debugger (again). the while loop works one time (doing iterator.previous()), when it enters the second time it segfaults. this suggests that the iterator is valid. [14:25] you can't run it twice [14:25] construct a new iterator [14:25] huh? [14:26] what? [14:26] what do you mean with "run twice"? [14:26] how do I add a suggestion, as opposed to a bug, in the TT task tracker? [14:26] oh i thought you sayd you run it twice [14:26] dissonans_: send another bug [14:27] I can have two iterators on one list, can't I? [14:27] aep: so I have to indicate in some way that this is a suggestion rather than a bug? [14:27] hm [14:27] err.. yeah, as long as you don't modify the list [14:28] dissonans_: yes. [14:28] dissonans_: just write a mail to bugs@tt [14:28] but don't tell the newbies :p [14:28] aep: I do modify it [14:28] simon_h: well then, what do you expect to happen? [14:28] your iterators are not synced [14:28] ok, thanks [14:28] Tomasu (n=moose@S0106001bfcce6c34.ed.shawcable.net) joined #qt. [14:29] aep: I expected the second iterator to stay unchaged if the change is after it, and staying between the two items if the change is before it [14:29] QMutableLinkedListIterator knows it deleted something and just increased or decreases multiple timeys [14:30] simon_h: do it in that order: List l; Iterator i1 (l); for(i1...) ; i2(l); for(i2.... [14:31] dont do List l; Iterator i1 (l); i2(l); for(i1...) ; for(i2.... or worse List l; Iterator i1 (l); i2(l); for(i1...) { for(i2.... } [14:31] well, I want one of the iterators to stay in place as a "bookmark" [14:31] rtcm (n=jman@10001283488.0000036678.acesso.oni.pt) joined #qt. [14:31] you can't [14:31] oh [14:31] that concept works with QIndex thought on a model [14:32] hi, how do I set subpixel font antialiasing for QT 4 apps, without having KDE running? [14:32] QPersitentIndex [14:32] but iterators are not persistent [14:32] rtcm: qtconfig [14:32] err, no you can't. eww [14:32] no clue [14:32] btw, where are the options in ~/.config/Trolltech.conf documented? [14:33] rtcm: they are set by qtconfig [14:33] rtcm: you need to setup fontconfig to do that [14:33] Sput: so, you mean, read the source? :-) [14:33] rtcm: nope, run the app :) [14:33] aep: so my best option is to use a usual linked list and do the bookmark with a pointer? [14:34] Sput: the antialiagin setting isn't there... [14:34] simon_h: i think so. [14:34] simon_h: maybe QLinkedList can help [14:34] rtcm: yeah, I don't think it's in the config file either [14:34] rtcm: use fontconfig [14:34] bhughes_: I didn't want to resort to edit those pesky xml files... [14:35] aep: well, that was the one I was working with, but gave me these errors [14:35] ok, thanks [14:35] simon_h: sure :p maybe it has a function to give you a specific item as pointer [14:35] bbl [14:38] I think this won't work, as I want to e.g. advance the bookmark by one item, so the list has to be aware of it. I think I'll just do my own one then [14:41] luks (n=lukas@unaffiliated/luks) left irc: Remote closed the connection [14:44] rtcm (n=jman@10001283488.0000036678.acesso.oni.pt) left irc: "leaving" [14:44] Anyone here used Netbeans UI designer with Java? [14:44] I'm wondering how it compares to using Qt [14:44] Java has threading classes, so that covers QThread, it also has file IO, which covers QFile, etc [14:47] http://turing.iimas.unam.mx/~elena/PDI-Lic/qt-vs-java-whitepaper.pdf [14:47] Nevermind :) [14:47] tuxipuxi (n=michael@konversation/developer/pdpc.active.tuxipuxi) left irc: "Verlassend" [14:49] dappermuis (n=kinus@196.209.243.228) left irc: Remote closed the connection [14:49] dappermuis (n=kinus@196.209.243.228) joined #qt. [14:52] tmske (n=thomas@dD5763506.access.telenet.be) left irc: Connection timed out [14:52] just dont understand qt assistant...that thing is something....undescribably horrible... [14:52] if I want an array of 7 line edits and if I want to preserve their size fixed...to apply and design this is something unreachable in that program... [14:53] gyre: It's for dudes who are working on Qt code underneath 12 feet of snow in the north pole reserch lab [14:53] gyre: and have no internet except for polar-bear express delivery [14:53] Zola: hehe...I tried to put some spaces between those line edits...but it didntwork [14:53] it just didnt [14:53] and no idea how to do that :) [14:54] absolutely no [14:55] it always gets messed up whatever you decide to do :) [14:56] gyre: select a widget [14:56] gyre: and try pressing set maximum or minimum [14:56] that one's useful [14:56] hm ? [14:56] SimonAW (n=sxw@p5B116364.dip.t-dialin.net) joined #qt. [14:56] pressing set minimum ? I dont get it ;) [14:56] also, the ctrl+1 2 3 4 5 6 keys will group try those [14:57] hehe I tried [14:57] EspadaV8_K (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [14:57] but that STUPID PROGRAM doesn;t understand THAT I WANT CERTAIN WIDGET TO HAVE FIXED SIZE [14:57] WRAAAUUUCH [14:57] it just doesn't get it [14:57] that;s all [14:58] that's because having fixed widget sizes is _wrong_ [14:58] gyre: right click [14:58] even if you set it to be fixed...it just decided to not behave :) [14:58] it's so... windowsy [14:58] gyre: Size Constraints [14:58] makes it easy [14:58] gyre: LOL sounds like designer is frustrating you :) [14:58] don't break your mouse [14:59] Sput: well...If I want to prog, an app that will send character data...and I have to pass only one char...WHY SHOULD I MAKE A LINE EDIT TO BUS SO F** WIDE ?? [14:59] Zola: it does :) [14:59] you can say fucking here if you want [15:00] Nick change: chuy_max -> chuy [15:00] chuy (n=chuy@201-167-95-66-cable.cybercable.net.mx) left irc: "Leaving" [15:00] lastrainson (n=lastrain@lastrainson.henola.org) left irc: Remote closed the connection [15:00] chuyh (n=chuy@201-167-95-66-cable.cybercable.net.mx) joined #qt. [15:01] Zola: i dont know...when I right click on a widget there is no size contraint option [15:01] can someone else verify that please [15:01] I am on Qt4.4 [15:01] Zola: I am 4.3 :) [15:02] ooooh you poor bastard [15:02] chuyh (n=chuy@201-167-95-66-cable.cybercable.net.mx) left irc: Client Quit [15:02] you did not end all flicker [15:02] shame on you [15:02] and it made me so FUCKING ANGRY that my computer almost went out of my window [15:02] chuy_max (n=chuy@201-167-95-66-cable.cybercable.net.mx) joined #qt. [15:02] rofl [15:02] i;ve been working on it for 5 hours now...ONE SIMPLE THING [15:02] AND NO SUCCESS [15:02] NO [15:02] gyre if you post your problem again ill fix it [15:03] Zola: My only problem is that I want my LINE EDITS TO BE FIXEDD SIZE NOT LOOOONG... [15:03] NO [15:03] noooooooooooo [15:03] Zola: :) [15:04] did you put horizontal spacers next to them? [15:04] thats what i told him to do earlier [15:04] slango (n=nsloan@unaffiliated/iamethos) joined #qt. [15:04] hello [15:04] did you contrain the size of the edits? [15:04] and set the size policy to Maximum? [15:04] Zola: I want them to be 51 wide and 25 high...that;s all [15:05] is there anything available to improve Vim syntax highlighting for Qt C++ projects? [15:05] so go set that as maximum size [15:05] gyre: Property editor, like what Sput just said [15:05] aep, still around? [15:05] Sput: I set size policy to FIXED SIZE [15:05] what else should I do ???? [15:05] gyre: you need a size too [15:05] gyre: set the maximum size [15:05] maximum and minimum [15:05] that's what this setting is for [15:06] thats what I was saying about right clicking and setting constraints [15:06] but you can use property editor as well [15:07] Zola: so I should set minimum and maximum sizes to values I prepare in designer ?? [15:08] what do you think maximumSize() is for? :) [15:08] Zola: and what about sizeIncrement and basesize ? and how about [15:09] don't need them [15:09] just set the max size [15:09] (and maybe go read about the layout system so you understand what's going on) [15:19] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Connection timed out [15:19] Nick change: EspadaV8_K -> EspadaV8 [15:22] Sput: well I read...but theres only couple of lines of that...and problem is not with the kayout but with the size... anyway... [15:22] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Read error: 104 (Connection reset by peer) [15:22] Action: bhughes_ pulls down code from tuxbox.org [15:22] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) joined #qt. [15:29] scy (n=scy@p54B61B14.dip0.t-ipconnect.de) joined #qt. [15:37] kury7 (n=kury@CPE-76-178-171-156.natnow.res.rr.com) left irc: "Leaving" [15:39] Nick change: amrit -> amrit|bbl [15:41] wah [15:41] Action: bhughes_ bootstraps a cross compiler for this dreambox [15:43] P0rt4l (n=XChat@host.231.254.mtl.cablemodem.vdn.ca) joined #qt. [15:49] dissonans_ (n=sub@29.84-48-217.nextgentel.com) left irc: "Die, flip or go to India" [15:52] EspadaV8 (n=espadav8@82-39-54-124.cable.ubr03.benw.blueyonder.co.uk) left irc: Remote closed the connection [15:56] skejoe (n=skejoe@0x57366123.vgnxx4.adsl-dhcp.tele.dk) left irc: "WeeChat 0.2.6" [16:05] apropo (n=flav@chello080109207086.1.graz.surfer.at) joined #qt. [16:05] Hi [16:10] gkiagia (n=gkiagia@ppp161-137.adsl.forthnet.gr) left irc: Remote closed the connection [16:11] Port4l (n=XChat@host.231.254.mtl.cablemodem.vdn.ca) left irc: Connection timed out [16:11] http://qtnode.net/index.php/pastebin/4962 While the bool values on lines 6-7 are set up properly, it does not work for the QString on line 13. It returns an empty string, even when the appropiate key (here "General/lastshownwidgets") on the persistent media is set to a non-empty string. What am I missing ? [16:11] Sput: man you were right...thanks a lot ;) [16:15] chuy_max (n=chuy@201-167-95-66-cable.cybercable.net.mx) left irc: Read error: 104 (Connection reset by peer) [16:16] welcome [16:18] Zygentoma (n=zygentom@manz-590c8012.pool.einsundeins.de) left irc: Read error: 110 (Connection timed out) [16:19] how can I set up a signal that occurs when I press the escape key while a particular widget has focus? [16:25] or am I not thinking about this properly at all? [16:26] chehrlic|NA (n=chehrlic@pD955A957.dip0.t-ipconnect.de) left irc: Read error: 104 (Connection reset by peer) [16:26] maxx_k (n=max@p57A7FDA7.dip.t-dialin.net) left irc: Read error: 104 (Connection reset by peer) [16:26] slango void QWidget::keyReleaseEvent ( QKeyEvent * event ) [virtual protected] and QWidget::hasFocus() [16:30] |caotic| (n=|caotic|@129.187.43.42) joined #qt. [16:33] jaguilera (n=opsi@unaffiliated/opsidao) joined #qt. [16:36] dv_ (n=dv@M1466P026.adsl.highway.telekom.at) joined #qt. [16:41] apropo, I don't suppose you can achieve that in Qt Designer, can you? [16:42] slango Qt means C++, C++ means programming, and programming means using your keyboard, not your mouse [16:42] so it's very natural having to type in code in order to achieve functionality [16:43] MMonk (n=monkircu@host81-153-47-235.range81-153.btcentralplus.com) left irc: Remote closed the connection [16:43] apropo, of course. I just have a lot of this to do, and you can usually save a fair amount of time using Designer to do things [16:43] MMonk (n=monkircu@host81-153-47-235.range81-153.btcentralplus.com) joined #qt. [16:45] apropo, also, some articles suggest that using strictly text to represent programming concepts is a major deficiency of the state of programming languages today. [16:45] slango : There's never been a good "visual" programming language afaik [16:46] what you want has nothing to do with the way widgets look like, but with how they act [16:46] slango : I do however see how it would be possible :) [16:47] P0rt4l, I think there are a lot of simpler things that could be done with visual languages. I was using IBM's WebSphere Business Process Modeler and I found myself thinking: "If done right, this should be able to write simple applicatiosn for you." [16:47] I mean, I'm actually interested in making a visual wrapper for C++ [16:48] Would be very cool [16:48] Wouldn't need to write a language from scratch, but could be a visual tool to generate C++ code [16:48] the downside is that it would make programming easier, and thus reduce available jobs for established programmers [16:48] yeah [16:48] but that's not considering the greater good [16:49] can I make Qt designer to generate code for me ? [16:49] It's inevitible [16:49] Anything that will make programming easier will be adopted [16:49] gyre - Qt Designer already does [16:49] Well, not the designer, but qmake [16:49] gyre, that's pretty much what qmake does [16:49] It takes the ui files and builds headers [16:49] I'm thinknig about general programming concepts. [16:49] well, Qt Designer does too, but just XML that isn't really helpful to anyone [16:50] slango: hm...All I have is *.ui file...and that resembles XML or something like that [16:50] Such as using arrows to show derived classes, a circular arrow to show a loop [16:50] etc [16:50] gyre, when you run qmake on your .pro file, it will create a header file for you [16:50] SimonAW (n=sxw@p5B116364.dip.t-dialin.net) left irc: Remote closed the connection [16:51] P0rt4l, if you are seriously considering starting a project like that, let me know [16:51] I'd be interested in helping out from the beginning [16:51] if you're open sourcing it, that is [16:52] sharkk (n=sharkk@adsl-ull-124-244.41-151.net24.it) left irc: [16:53] trpr_ (n=ftg2@63-229-111-172.phnx.qwest.net) left irc: Remote closed the connection [16:56] kramed_ (n=mark@bas4-toronto63-1096804266.dsl.bell.ca) left irc: "Leaving" [16:56] tomboy64 (n=tomboy64@e178048167.adsl.alicedsl.de) left irc: "This connection was severed due to nasty aliens, performing nasty experiments on the sys-admin." [16:58] slango: yup...thanks! :)..I found it in tutorial [17:01] ilker (n=ilker@unaffiliated/ilker) left irc: "haydi hay1rl1 t1ra_lar" [17:02] dappermuis (n=kinus@196.209.243.228) left irc: Remote closed the connection [17:02] bhughes_ (n=bhughes@ti221110a080-1534.bb.online.no) left irc: Read error: 104 (Connection reset by peer) [17:03] bhughes_ (n=bhughes@ti221110a080-1534.bb.online.no) joined #qt. [17:04] bhughes_ (n=bhughes@ti221110a080-1534.bb.online.no) left irc: Client Quit [17:06] i wonder where that fish has gone... [17:15] sebr (n=seb@c220-237-99-87.randw2.nsw.optusnet.com.au) joined #qt. [17:22] orzelf (n=orzel@freehackers.org) joined #qt. [17:23] hello. I'm having problem compiling qt-copy from kde svn. I can't remember having had any problem, and i've been using that for years. [17:23] the problem is this one : http://freehackers.pastebin.com/m6dedbaab [17:23] i've tried removing all .moc .obj .pch moc_* and such. and reconfigured. [17:23] but the pb remains. [17:24] any idea? [17:27] slango : I'm just thinking about how it could be accomplished now. [17:27] scy (n=scy@p54B61B14.dip0.t-ipconnect.de) left #qt ("[IRSSI] http://debian.org/"). [17:27] slango : If I decide to actually move forward with it, I will definately let you know [17:28] slango : Would be pretty cool to have a "visual designer" for every class a person is to write :) [17:29] slango : That said, we'd also need to allow for users to drop in actual code as well [17:30] jott (n=j@unaffiliated/jott) joined #qt. [17:33] tomboy64 (n=tomboy64@e178032122.adsl.alicedsl.de) joined #qt. [17:35] simon_h (n=sirius@rx1663.cip.uni-regensburg.de) left irc: "Konversation terminated!" [17:35] does QLineEdit has focus? because when I hit enter in it I press also a button [17:36] that button still have focus while I m in the lineEdit [17:40] deimos`, line edits don't do anything with enter, so it defaults to the default control [17:41] think about when you're filling out an HTML form. If you press enter in a text area box you get a new line. If you press enter in a single-line text input box, it presses enter. QLineEdit is only for single lines, so it ignores the enter key [17:41] I would like to catch the returnPressed event inside the qlineedit, how I can fo that if there are buttons around ? [17:41] Nick change: P0rt4l -> Port4l [17:43] j0tt (n=j@unaffiliated/jott) left irc: Read error: 110 (Connection timed out) [17:44] deimos`, at that point, you've exhausted my knowledge [17:44] :) np, I will do something else [17:46] Action: tuxman goodnight to you all [17:49] tuxman (n=tuxman@unaffiliated/tuxman) left irc: Remote closed the connection [17:52] krawek (n=wyswyg@nelug/developer/krawek) left irc: Read error: 104 (Connection reset by peer) [18:00] grzywacz (n=grzywacz@moinmoin/student/karol) left irc: ":wq" [18:03] muesli (n=muesli@amarok/developer/muesli) left irc: "Konversation terminated!" [18:06] krawek (n=wyswyg@nelug/developer/krawek) joined #qt. [18:09] blight_ (n=blight@chello212186015227.403.14.wu-wien.teleweb.at) left irc: Remote closed the connection [18:09] blight_ (n=blight@chello212186015227.403.14.wu-wien.teleweb.at) joined #qt. [18:11] krawek (n=wyswyg@nelug/developer/krawek) left irc: Remote closed the connection [18:14] gyre (n=gyre@basquiat.sh.cvut.cz) left irc: "Leaving" [18:15] ELBunce (n=erik@kde/developer/bunce) left irc: "Leaving" [18:17] johnyb (n=jb@e176142167.adsl.alicedsl.de) left irc: "Konversation terminated!" [18:21] paf (n=paf@bas4-montreal28-1242417599.dsl.bell.ca) left irc: "Leaving" [18:25] _shiro (i=rio@adsl-59.bartec.com.mx) left irc: Remote closed the connection [18:27] _shiro (i=rio@adsl-59.bartec.com.mx) joined #qt. [18:28] jaguilera (n=opsi@unaffiliated/opsidao) left irc: Read error: 104 (Connection reset by peer) [18:29] hibread (n=hibread@CPE-124-189-241-98.nsw.bigpond.net.au) joined #qt. [18:38] Pogonip (n=jeff@208-106-7-96.dynamic.calweb.com) joined #qt. [18:39] I need some help compiling. I keep getting "error: qapp.h: No such file or directory" [18:40] I added usr/include/qt3 to my $PATH, but still no soap. [18:41] doitux (n=doitux@M7850.m.strato-dslnet.de) left irc: "Konversation terminated!" [18:42] alesan (n=alesan@p54955949.dip.t-dialin.net) joined #qt. [18:43] CpuWhiz (n=erikku@cpe-66-87-222-218.co.sprintbbd.net) joined #qt. [18:45] I need some help compiling. I keep getting "error: qapp.h: No such file or directory" [18:45] do you have qt-dev installed :) ?? [18:47] Lucifer_bed (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) joined #qt. [18:47] Lucifer_bed (n=satan@ppp-70-243-82-198.dsl.austtx.swbell.net) left irc: Read error: 104 (Connection reset by peer) [18:49] alesan: yes. I think need to change the configure file. [18:51] daniel (i=daniel@unaffiliated/daniel) joined #qt. [18:51] Pogonip: qapplication.h [18:51] alesan: The *.h files I need seem to be located in /usr/include/qt3. That means I should set the include location in configure to /usr/include/qt3? [18:52] normally qmake creates a Makefile that has the correct -I options for gcc [18:53] have a look at what blight_ said anyway ;) [18:53] alesan: I've been using ./configure, should I be using qmake? [18:53] ./configure? which software is that? [18:54] the instructions for compiling this package say to run ./configure && make. Non of the .h files are being seen, so I have to set a pointer somewhere. [18:55] maybe the package needs Qt4? [18:55] arnebef (i=arnebef@apollo.orakel.ntnu.no) left irc: Read error: 110 (Connection timed out) [18:55] I have qt 4 too. How do I use qmake? [18:56] after the configure have a look at the Makefile and see how the include path (-I /path) is set [18:58] qt_includes = /usr/include [18:58] INCLUDES = -I [18:59] hey I would like to create a class with a static member function that I pass a key and I get back a value (like on a QMap) [18:59] das_netz (n=dasnetz@189.130.158.29) joined #qt. [19:00] QMap or QDict may work too. [19:01] alesan: Do I need to change my INCLUDES = -I to INCLUDES = -I /usr/include ? [19:02] well, supposedly configure does that [19:02] have a look at the configure script