Re: [PyQt] scene and layers

2010-04-30 Thread Jan Ekholm
m background and something extra in the foreground on top of everything else. I'd look at the z property of items to create virtual layers. -- Jan Ekholm jan.ekh...@smultron.net ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Simple connect does not work

2009-04-24 Thread Jan Ekholm
nt") > def foo(self, i): > print i Or perhaps: QtCore.QObject.connect(spin, QtCore.SIGNAL('valueChanged(int)'), spin.foo) -- Jan Ekholm jan.ekh...@smultron.net ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QGraphicsScene/Item/View optimisation

2009-02-06 Thread Jan Ekholm
to move, the CPU goes to 100%! > > Any idea to improve that code? At least don't use a thread to update GUI stuff, you'll just cause yourself a lot of problems and crashes. -- Jan Ekholm jan.ekh...@smultron.net ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: Portability: [Was: Re: [PyQt] QWebKit issue with certain URLs]

2008-09-24 Thread Jan Ekholm
p = QtGui.QApplication([]) > web = QtWebKit.QWebView() > url = QtWebKit.QUrl("http://library.williamson-tn.org";) > web.load(url) > web.show() > app.exec_() > > helped quite a bit, but didn't find QUrl. QUrl comes from QtCore. -- Jan Ekholm [EMAIL PROTECTED] _

Re: [PyQt] Problem using promoted widgets with PyQt 4.4.2

2008-07-31 Thread Jan Ekholm
On Thursday 31 July 2008 10:15:34 Jan Ekholm wrote: > Seems that QObjectCreator.addCustomWidget > in /usr/lib/python2.5/site-packages/PyQt4/uic/objcreator.py manages to find > a class named KeywordTree in PyKDE4.kdeui. When that method is entered the > data is all fine and when done it

Re: [PyQt] Problem using promoted widgets with PyQt 4.4.2

2008-07-31 Thread Jan Ekholm
On Thursday 31 July 2008 09:53:24 Jan Ekholm wrote: > On Wednesday 30 July 2008 14:25:37 Jan Ekholm wrote: > > On Wednesday 30 July 2008 13:47:55 Jan Ekholm wrote: > > > > > > > > I cut the window down to a minimal example that for me does not work. The > >

Re: [PyQt] Problem using promoted widgets with PyQt 4.4.2

2008-07-30 Thread Jan Ekholm
On Wednesday 30 July 2008 14:25:37 Jan Ekholm wrote: > On Wednesday 30 July 2008 13:47:55 Jan Ekholm wrote: > > > > I cut the window down to a minimal example that for me does not work. The > files are all attached and the code is also inline below. I assume I do > somethi

Re: [PyQt] Problem using promoted widgets with PyQt 4.4.2

2008-07-30 Thread Jan Ekholm
On Wednesday 30 July 2008 13:47:55 Jan Ekholm wrote: I cut the window down to a minimal example that for me does not work. The files are all attached and the code is also inline below. I assume I do something silly, but for the love of Darwin I can't figure it out. tags.py: import sys

[PyQt] Problem using promoted widgets with PyQt 4.4.2

2008-07-30 Thread Jan Ekholm
have I stumbled across any problems. I consider nuking KDE 4.1 if I can't solve this, as this application is *very* important for us. But perhaps there's something that a n00b like me hasn't spotted? Something that used to work despite it being

Re: [PyQt] Building the QScintilla-1.73 PyQt4 bindings

2007-11-26 Thread Jan Ekholm
On Monday 26 November 2007, Phil Thompson wrote: > On Monday 26 November 2007, Jan Ekholm wrote: > > Or is this a case where I should either a) remove all the distro packages > > and compile everything myself or b) just let it be and wait for some > > future version of said di

Re: [PyQt] Building the QScintilla-1.73 PyQt4 bindings

2007-11-26 Thread Jan Ekholm
or some future version of said distro which includes a newer sip and possibly everything else too? -- Jan Ekholm [EMAIL PROTECTED] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Building the QScintilla-1.73 PyQt4 bindings

2007-11-26 Thread Jan Ekholm
yQt4: Version: 4.3-2ubuntu7.1 (for Qt 4.3.2, from Ubuntu packages) PyQt4 itself works just fine. What more information should I include? Best regards, Jan Ekholm -- Jan Ekholm [EMAIL PROTECTED] ___ PyQt mailing listPyQt@r

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Jan Ekholm
le for an example of the extra datastructure that is required. What is IMHO missing there is a QAbstractTreeModel that removes most of the gore (such as parent()) and leaves only the relevant pieces for the applications developer to worry about. But this is way off-topic for this list and

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Jan Ekholm
to do that for my own app. But as subclassing works ok and the tree models are just that much too horrible to use I could take a while. :) I wonder what someone smoked when designing the models wrt trees... -- Jan Ekholm [EMAIL PROTECTED] ___ PyQt mailing li

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Jan Ekholm
r dnd > properties to true. At least I couldn't get DnD to work without subclassing and providing something in the dragEnterEvent, dragMoveEvent and dropEvent handlers. But it did work fine when following the docs at: http://doc.trolltech.com/4.3/dnd.html -- Jan Ekh

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Jan Ekholm
still design with Designer but you end up using your own subclasses. Works fine with PyQt too. -- Jan Ekholm [EMAIL PROTECTED] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyKDE] QPixmap from a QVariant?

2006-10-30 Thread Jan Ekholm
x27;s fine, but the QIcon is in a QVariant and the QVariant class has no QVariant.toIcon() method, one should in C++ use code like: if (v.canConvert()) QPixmap p = v.value(v); How would one do that with PyQt? Any workarounds if it can't be cast to QIcon? Best regards,

Re: [PyKDE] Crashes with QAbstractListModel?

2006-07-16 Thread Jan Ekholm
On Sunday 16 July 2006 00:58, Phil Thompson wrote: > You need to post a short example that demonstrates the problem. I haven't been able to reduce the app sufficiently and retain the GC error. The crash when clicking on a row seems to have been my own mistake where a model was given to a QListW

[PyKDE] Crashes with QAbstractListModel?

2006-07-15 Thread Jan Ekholm
soon as a row is clicked. I don't really know how to get more meaningful information about the crash. Hints are welcome. PyQt4 is compiled with sip-4.4.5 and uses Qt 4.1.2 from Kubuntu Dapper. Any ideas? Should one just not use the model/view stuff? Best regards,     Jan Ekholm -- Shad

[PyKDE] Running PyQt3 and PyQt4?

2006-03-09 Thread Jan Ekholm
tion, but that is no option at the moment. How have you others done it? Or maybe there even are [K]Ubuntu packages somewhere that work alongside PyQt3? Best regards, Jan Ekholm -- Jan Ekholm [EMAIL PROTECTED] ___ PyKDE mailing listPyKDE@mats.