[PyQt] audio tags in QWebview

2012-02-16 Thread Peter Bienstman
Hi, Upon upgrading to PyQt 4.9.1 Python 2.7 Win 32 bit from PyQt 4.8.6-1, audio tags in QWebview no longer work: import sys from PyQt4 import QtWebKit, QtGui a = QtGui.QApplication(sys.argv) w = QtWebKit.QWebView() w.setHtml(audio testaudio src='file:///C:/test.mp3' controls autoplay)

[PyQt] figuring out where keypress events go

2011-11-11 Thread Peter Bienstman
Hi, I want to customise handling of certain keys, but they never make it to my keyPressEvent handler, probably because they get processed by another object. Is there an easy way to debug which objects these might be, such that I can subclass them to ignore this keypress event? Peter

[PyQt] processevents needed for qthreads?

2011-08-12 Thread Peter Bienstman
Hi, I have a threaded program which works fine under Linux, but crashes sometimes under Windows. My suspicion is that this is because I use QtCore.QCoreApplication.processEvents, for which I read everywhere that this is to be avoided and is a crutch for poor design. Also, many tutorial

[PyQt] QWaitCondition and signals/slots across threads

2010-09-07 Thread Peter Bienstman
Hi, Attached is a simple testcase which emits a signal from a worker thread, and then waits until the main thread has released a database connection. It works fine under Linux, but under OSX Qt 4.7RC, PyQt 4.7.4, the slot never get's called, i.e. print slot called never gets executed. From

Re: [PyQt] slots don't get called

2009-09-28 Thread Peter Bienstman
On Tuesday 22 September 2009 01:40:42 pm Peter Bienstman wrote: On Tuesday 22 September 2009 01:26:50 pm you wrote: Which system is this? Mine is WinXP with PyQt-Py2.6-gpl-4.5.4-1.exe . Linux using current snapshots. A problem like that is unlikely to be platform dependent

Re: [PyQt] slots don't get called

2009-09-22 Thread Peter Bienstman
On Tuesday 22 September 2009 11:06:06 am you wrote: On Sun, 20 Sep 2009 20:39:53 +0200, Peter Bienstman peter.bienst...@ugent.be wrote: On Saturday 19 September 2009 08:51:29 pm you wrote: Not a lot I can do without a test case that I can run... You'll find a heavily stripped down

Re: [PyQt] slots don't get called

2009-09-22 Thread Peter Bienstman
On Tuesday 22 September 2009 01:26:50 pm you wrote: Which system is this? Mine is WinXP with PyQt-Py2.6-gpl-4.5.4-1.exe . Linux using current snapshots. A problem like that is unlikely to be platform dependent. Is there a Windows installer for the latest snapshot by any chance? Perhaps the

Re: [PyQt] slots don't get called

2009-09-20 Thread Peter Bienstman
On Saturday 19 September 2009 08:51:29 pm you wrote: Not a lot I can do without a test case that I can run... You'll find a heavily stripped down version of the program here: http://users.ugent.be/~pbienst/pub/noslot.tar.gz Thanks for looking into this! Peter

[PyQt] slots don't get called

2009-09-19 Thread Peter Bienstman
Hi, I have a rather strange problem with 4.5.4, in the sense that none of my QAction slots get called under Windows. Under Linux with 4.4.4, the same program runs fine... Is there anything that could cause this? My ui file has code like connection senderactionAddCards/sender

Re: [PyKDE] determining origin of resize events

2006-10-28 Thread Peter Bienstman
Turns out the way to solve this was by using bool QEvent::spontaneous () const Returns true if the event originated outside the application (a system event); otherwise returns false. Peter On Thursday 26 October 2006 20:49, Matt Newell wrote: On Thursday 26 October 2006 11:26, Peter Bienstman

[PyKDE] determining origin of resize events

2006-10-26 Thread Peter Bienstman
Hi, I'm wondering if it's possible to determine the origin of resize events. I'd like my application to behave differently when the user resizes the window himself, as compared to the window getting resized because some child widget needs to expand. Is this even possible? Peter

Re: [PyKDE] determining origin of resize events

2006-10-26 Thread Peter Bienstman
missing a way to check the mouse button status from within the resizeEvent handler? Peter On Thursday 26 October 2006 20:49, Matt Newell wrote: On Thursday 26 October 2006 11:26, Peter Bienstman wrote: Hi, I'm wondering if it's possible to determine the origin of resize events. I'd like my

[PyKDE] Hang on exit

2003-11-01 Thread Peter Bienstman
to what's going on here? My program uses external C extension modules. Thanks! Peter -- Peter Bienstman Ghent University, Dep. of Information Technology Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium tel: +32 9 264 34 45, fax: +32 9 264 35 93 WWW

[PyKDE] subclassing QListViewItem

2003-10-27 Thread Peter Bienstman
I created the ListViewItems directly. Am I missing something? Thanks! - -- - Peter Bienstman Ghent University, Dep. of Information Technology Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium tel: +32 9 264 34 45, fax: +32 9 264 35 93 WWW: http

Re: [PyKDE] subclassing QListViewItem

2003-10-27 Thread Peter Bienstman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 27 October 2003 18:51, you wrote: On Monday 27 October 2003 5:24 pm, Peter Bienstman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, The following code works as expected: QListViewItem(self.element_list, foo