[Qt-interest] Qt-interest Digest, Vol 4, Issue 282

OS Prog osprog at gmail.com
Thu Mar 26 18:03:27 CET 2009


On Thu, Mar 26, 2009 at 11:00 AM, <qt-interest-request at trolltech.com> wrote:

> Send Qt-interest mailing list submissions to
>        qt-interest at trolltech.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.trolltech.com/mailman/listinfo/qt-interest
> or, via email, send a message with subject or body 'help' to
>        qt-interest-request at trolltech.com
>
> You can reach the person managing the list at
>        qt-interest-owner at trolltech.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qt-interest digest..."
>
>
> Today's Topics:
>
>   1. Re: assign ID to QComboBox (Alexandre Beraud)
>   2. Re: statusBar() (R. Reucher)
>   3. qtwebkit 4.5 flash plugin bug (Firuz Kosimov)
>   4. Re: QLineEdit signal (Luca Ottaviano)
>   5. _Z5qFreePv at QtCore4.dll ? (James Yan)
>   6. Make file error in Visual studio QT + VTK project
>      (Giancarlo Amati)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 26 Mar 2009 11:06:24 +0100
> From: Alexandre Beraud <aberaud at infflux.com>
> Subject: Re: [Qt-interest] assign ID to QComboBox
> To: Qt Interest <qt-interest at trolltech.com>
> Message-ID: <49CB53A0.10408 at infflux.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Well, QComboBox has a currentIndex() function. You can also receive the
> index from the various available signals like currentIndexChanged(int).
> When you fill your combo box, you can add a data to each index. Example:
> myCombo->setItemData(i, variantId);
> Then, when you want to get the id for the selected element:
> int index = myCombo->getCurrentIndex();
> QVariant variantId = myCombo->itemData(index);
> You can store whatever kind of id you want in the QVariant data.
> But maybe the index is enough for your needs.
>
> Regards,
>
> Alex
>
>
> Matthias Pospiech a ?crit :
> > Alexandre Beraud schrieb:
> >> Hi,
> >>
> >> You can use the setItemData() function of the QComboBox class.
> >>
> >>
> > Ok, that has an 'index' as option. But how do I get the index back for
> > the currentRow ?
> >
> > Matthias
> >
> >
>
>
> --
> BERAUD Alexandre
> Ing?nieur D?veloppement
>
> Infflux - Informatique & Flux
> Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
> Mail: aberaud at infflux.com
> Visitez notre site :  www.infflux.com
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 26 Mar 2009 11:07:43 +0100
> From: "R. Reucher" <rene.reucher at batcom-it.net>
> Subject: Re: [Qt-interest] statusBar()
> To: qt-interest at trolltech.com
> Message-ID: <200903261107.44162.rene.reucher at batcom-it.net>
> Content-Type: text/plain;  charset="utf-8"
>
> On Thu March 26 2009 10:54:30 Sujan Dasmahapatra wrote:
> > In my prpoject I have many classes and the  main class is "MainWindow"
> > which is derived  from QMainWindow. So I am able to show message in my
> > 'MainWindow' class......How could I show message on the statusBar from
> > any other class. When I am trying to do that its not happening.Plss tell
> > me some idea to show message from other class than MainWindow..
> How did you try to do it?
>
> Anyway, it should work this way:
>
> ...
> myMainWindow->statusBar()->showMessage("Hello World!");
> ...
>
> See also:
> http://doc.qtsoftware.com/4.5/qmainwindow.html#statusBar
> http://doc.qtsoftware.com/4.5/qstatusbar.html#showMessage
>
> HTH, Ren?
> --
> Ren? Reucher
> rene.reucher at batcom-it.net
> http://www.batcom-it.net/
>
> Anybody can win, unless there happens to be a second entry.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 26 Mar 2009 15:21:05 +0500
> From: Firuz Kosimov <firuzkosimov at gmail.com>
> Subject: [Qt-interest] qtwebkit 4.5 flash plugin bug
> To: qt-interest at trolltech.com
> Message-ID:
>        <5bb3eb170903260321jfcd15c7ided3d2cf7b9849f1 at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> qtwebkit 4.5 loads cpu by 40-70% when flash plugin enabled and
> web-page with flash elements loaded (on windows).
>
>
> I have a problem - Every page that qtwebkit shows has some adobe flash
> plugin elements. And every page that has flash overloads cpu up to
> 40-70% while playing. Non-flash web-pages dont consume that much(I
> would say not at all).
>
> I tested on demo browser that ships with qt 4.5 and it also has the
> same problem. As I drill down into process details of my application
> or demo browser, I see that "Page Fault Delta" is almost always
> 30,000-60,000 every second. I dont see such big Page Fault Delta on
> other browsers(firefox,apple safari,internet explorer). And every time
> I go to a web-page containing flash it jumps quickly to 30,000-60,000
> again. I tested on 5 other computers in our office with different
> flash player versions(I tried 8th,9th,10th versions of adobe flash
> player). but No luck! I guess this "bug" is only on ms windows.
>
> I would appreciate any comment or advice regarding this issue.
>
> WBR,
> Firuz Kosimov
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 26 Mar 2009 11:25:45 +0100
> From: Luca Ottaviano <lottaviano at develer.com>
> Subject: Re: [Qt-interest] QLineEdit signal
> To: "NARCISO, Rui" <RUI.NARCISO at airbus.com>
> Cc: "Qt Interest \(E-mail\)" <qt-interest at trolltech.com>
> Message-ID: <1238063145.6268.6.camel at vger>
> Content-Type: text/plain
>
> Il giorno gio, 26/03/2009 alle 10.15 +0100, NARCISO, Rui ha scritto:
> > Apparently not...
> > I'm getting the following error on the line just after the creation of
> > MyQLineEdit (self.path = MyQLineEdit(self)   )
> > Traceback (most recent call last):
> >
> > File
> >
> "/home/cfdqdv2/to96665/TOOLS/EGADYT/integration/Version_0.9.4/CampaignManager/MainWindow.py",
> line 302, in addCalculationMenu
> >
> > diag = AddCalculationDlg(self, self.statusList)
> >
> > File
> >
> "/home/cfdqdv2/to96665/TOOLS/EGADYT/integration/Version_0.9.4/CampaignManager/AddCalculationDialog.py",
> line 36, in __init__
> >
> > layout.addWidget(self.path, 3,1)
> >
> > RuntimeError: underlying C/C++ object has been deleted
>
> You have to be careful in the way you create objects in PyQt. If you
> don't specify a python object as parent, the ownership of the object
> remains to c++ code which will delete the object without notifying
> python.
>
> Hope this helps. I bet, however, that you will receive more precise
> answers on the pyqt mailing list.
>
> Best regards,
>
> --
> Ing. Luca Ottaviano - lottaviano at develer.com
> Develer S.r.l. - http://www.develer.com/
> .hardware .software .innovation
> Tel.: +39 055 3986627 - ext.: 218
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 26 Mar 2009 18:45:11 +0800
> From: James Yan <jyan972 at gmail.com>
> Subject: [Qt-interest] _Z5qFreePv at QtCore4.dll ?
> To: qt-interest at trolltech.com
> Message-ID:
>        <adf041890903260345w75a12d9tbe1ae913f547d42b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> hey,
>
> I building my project with latest Qt Creator successfully, the exe
> generated
> from debug mode is run well, but the exe from release mode show an error :
> THe procedure entry point _Z5qFreePv could not be located in the dynamic
> link libaray QtCore4.dll
>
> any wrong with the released package?

Most probably your PATH is not pointing to the new (Qt 4.5) libraries. Maybe
you have had instaled earlier Qt and the PATH includes it not Qt4.5. Just
add Qt4.5 path in the PATH environment variable, just before earlier Qt path
(or replace the old one with the new if you don't need it).
If you cannot run the application from the debugger (QtCreator), press
'Project' button on the left toolbar and choose the needed configuration for
the release (qt version, path, ...etc.)

>
> thanks.
>
> regards,
> J.Y.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.trolltech.com/pipermail/qt-interest/attachments/20090326/44c363c4/attachment-0001.html
>
> ------------------------------
>
> Message: 6
> Date: Thu, 26 Mar 2009 11:50:20 +0100
> From: Giancarlo Amati <ilferraresebono at hotmail.it>
> Subject: [Qt-interest] Make file error in Visual studio QT + VTK
>        project
> To: <qt-interest at trolltech.com>
> Message-ID: <BAY141-W794C9EB4CCE66E3970F6FD9910 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hello everybody,
>
> I created a Makefile project under visual studio 2008 follorwing
> www.telldus.se/qt/tutorial.pdf
> so....I had to install MingW-make as well. But it's ok.
> now, I got this error which seems in Makefile.Dubug which is generated
> automatically so...any ideas?:
>
> 1>Performing Makefile project actions
> 1>mingw32-make -f Makefile.Debug clean
> 1>mingw32-make[1]: Entering directory
> `c:/KCLSoftware/QTVTK_Diorama/QTVTK_Makefile'
> 1>mingw32-make[1]: Leaving directory
> `c:/KCLSoftware/QTVTK_Diorama/QTVTK_Makefile'
> 1>Makefile.Debug:77: *** missing separator.  Stop.
> 1>mingw32-make: *** [debug-clean] Error 2
> 1>Project : error PRJ0002 : Error result 2 returned from
> 'C:\WINDOWS\system32\cmd.exe'.
> 1>Build log was saved at
> "file://c:\KCLSoftware\QTVTK_Diorama\QTVTK_Makefile\Debug\BuildLog.htm"
> 1>QTVTK_Makefile - 1 error(s), 0 warning(s)
>
> Very veyr thanks!
>
> GC.
>
> _________________________________________________________________
> Non solo posta: scopri i nuovi servizi Windows Live.
> http://clk.atdmt.com/GBL/go/136430530/direct/01/
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.trolltech.com/pipermail/qt-interest/attachments/20090326/3537d966/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> End of Qt-interest Digest, Vol 4, Issue 282
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090326/1b07e10a/attachment.html 


More information about the Qt-interest-old mailing list