[PyKDE] QtCore.Qt and QtGui.Qt
Hi I just have a couple of questions regarding conventions that are being followed in PyQt4. I'm using the '20060226' snapshots of PyQt4 and Sip, and i noticed that the Qt namespace is present in *both* QtCore and QtGui! why is that? Also, enums like Qt::WindowFlags are present in QtCore.Qt, whereas a few enums like Qt::WhiteSpaceMode are present in QtGui.Qt! What is the reasoning for this? Thanks in advance! Regards Sreeram signature.asc Description: OpenPGP digital signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] QtCore.Qt and QtGui.Qt
Phil Thompson wrote: > The short answer is that the Python objects are placed in the module > corresponding to the C++ library in which they are implemented. > Does this mean that Qt::WindowFlags and such will be moved from QtCore.Qt to QtGui.Qt? Regards Sreeram signature.asc Description: OpenPGP digital signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] QtCore.Qt and QtGui.Qt
Giovanni Bajo wrote: > Are you saying that this: > > --- > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > dir(Qt) > --- > > won't show the full Qt namespace, thus making PyQt4 unusable without the > annoying QtCore/QtGui prefix in front of everything? There are very few entries in QtGui.Qt, so as a workaround you can import QtCore *after* QtGui from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4 import QtGui and if you need QtGui.Qt, you can use that alone with a explicit QtGui prefix. But ofcourse, i would still prefer that QtCore.Qt and QtGui.Qt were the same! :) (or better still, not have QtGui.Qt at all!!) Regards Sreeram signature.asc Description: OpenPGP digital signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] QListWidget Designer bug
i'm using Qt4.1.1 and PyQt4 20060226, and if i set the 'wrapping' property in Designer for a QListWidget, then the pyuic generated code contains: listWidget.setIsWrapping( True ) This causes an AttributeError as the correct method to use would be: listWidget.setWrapping( True ). Not sure if this is a bug in Qt or PyQt... Regards Sreeram signature.asc Description: OpenPGP digital signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] QPixmap toWinHBITMAP and fromWinHBITMAP
Hi Phil [PyQt4 20060226, WinXP] The QPixmap class is lacking toWinHBITMAP and fromWinHBITMAP. I need these two methods in some low level code i'm writing. Can you add support for these methods in PyQt4? Thanks in Advance! Regards Sreeram signature.asc Description: OpenPGP digital signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] PyQt4
PyQt4 has been quite stable for many months now! I ported a reasonably large application from PyQt3 to PyQt4 in February, and the app has been very stable all thru! Regards Sreeram Frode Øijord wrote: > Hi, > I am currently developing an application using Qt 3.3.4 and PyQt 3.16. I > would like to port to Qt4/PyQt4 as soon as possible, and was wondering > about the PyQt4 beta release. Would anyone recommend using it now, or > are there issues that need to be worked out before porting? > signature.asc Description: OpenPGP digital signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde