Re: [PyQt] Re: Importing Phonon module

2008-06-27 Thread Gustavo A. Díaz
Hi guys... Any help here? please? Thanks... Does nobody compiled PyQt in K/Ubuntu hardy with phonon support? Cheers. 2008/6/27 Gustavo A. Díaz <[EMAIL PROTECTED]>: > Hi Simon, > > I have this... and non from Qt4 :( > > [EMAIL PROTECTED]:~$ locate libphonon.so > /opt/amarok-nightly/lib/libphonon

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Phil Thompson
On Fri, 27 Jun 2008 16:57:27 +0100, Mark Summerfield <[EMAIL PROTECTED]> wrote: > On 2008-06-27, Phil Thompson wrote: >> On Fri, 27 Jun 2008 09:38:04 +0100, Mark Summerfield <[EMAIL PROTECTED]> > wrote: >> > Hi, >> > >> > I got caught by this today: >> > >>> from PyQt4.QtCore import * >> >

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Mark Summerfield
On 2008-06-27, Phil Thompson wrote: > On Fri, 27 Jun 2008 09:38:04 +0100, Mark Summerfield <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > I got caught by this today: > > >>> from PyQt4.QtCore import * > > >>> s = QString("X") > > >>> c = QChar("X") > > >>> s[0] == c > > > > False

Re: [PyQt] qvariant_cast?

2008-06-27 Thread Phil Thompson
On Fri, 27 Jun 2008 09:37:10 -0600, Carlos Scheidegger <[EMAIL PROTECTED]> wrote: > Hi, > > I have a QVariant that contains a QBrush, and I'd like to get it from > PyQt. The Qt documentation mentions qvariant_cast for that purpose, > but I see no PyQt methods that achieve a similar funct

[PyQt] qvariant_cast?

2008-06-27 Thread Carlos Scheidegger
Hi, I have a QVariant that contains a QBrush, and I'd like to get it from PyQt. The Qt documentation mentions qvariant_cast for that purpose, but I see no PyQt methods that achieve a similar functionality (I see, however, toDouble and friends). I'm trying to get the background brush from

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Phil Thompson
On Fri, 27 Jun 2008 09:38:04 +0100, Mark Summerfield <[EMAIL PROTECTED]> wrote: > Hi, > > I got caught by this today: > > >>> from PyQt4.QtCore import * > >>> s = QString("X") > >>> c = QChar("X") > >>> s[0] == c > False > >>> s[0] == QString(c) > True > > In C++/Qt i

Re: [PyQt] Crash when reading negative size of data from QUdpSocket

2008-06-27 Thread Phil Thompson
On Tue, 24 Jun 2008 19:16:47 +0300, "İsmail Dönmez" <[EMAIL PROTECTED]> wrote: > Hi, > > Using latest sip/PyQt snapshots with Qt4.4, see following: > from PyQt4.QtNetwork import QHostAddress, QUdpSocket socket = QUdpSocket() success = socket.bind(QHostAddress("0.0.0.0"), )

[PyQt] Tab key shortcut no more working ?

2008-06-27 Thread kib2
Hi, I've got a problem with an old app. This was supposed to work with PyQt 4.2 (only Tab key): keyTab = QtGui.QShortcut(QtGui.QKeySequence(self.tr("Tab")), self) self.connect(keyTab, QtCore.SIGNAL("activated()"), self.on_tab) but now, it just does not work under PyQt4.4. This one works (Ctrl+

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Mark Summerfield
On 2008-06-27, Hans-Peter Jansen wrote: > Am Freitag, 27. Juni 2008 schrieb Mark Summerfield: > > Hi, > > > > I got caught by this today: > > >>> from PyQt4.QtCore import * > > >>> s = QString("X") > > >>> c = QChar("X") > > >>> s[0] == c > > > > False > > > > >>> s[0] == QS

Re: [PyQt] Re: Importing Phonon module

2008-06-27 Thread Gustavo A. Díaz
Hi Simon, I have this... and non from Qt4 :( [EMAIL PROTECTED]:~$ locate libphonon.so /opt/amarok-nightly/lib/libphonon.so /opt/amarok-nightly/lib/libphonon.so.4 /opt/amarok-nightly/lib/libphonon.so.4.3.0 /usr/lib/kde4/lib/libphonon.so /usr/lib/kde4/lib/libphonon.so.4 /usr/lib/kde4/lib/libphonon.

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Hans-Peter Jansen
Am Freitag, 27. Juni 2008 schrieb Mark Summerfield: > Hi, > > I got caught by this today: > >>> from PyQt4.QtCore import * > >>> s = QString("X") > >>> c = QChar("X") > >>> s[0] == c > > False > > >>> s[0] == QString(c) > > True > > In C++/Qt if you do the s[0] == c comp

Re: [PyQt] problem with model/view

2008-06-27 Thread Vicent Mas
El Friday 27 June 2008 Phil Thompson escribió: > On Fri, 27 Jun 2008 10:22:13 +0200, Vicent Mas <[EMAIL PROTECTED]> wrote: > > Hi, > > > > the attached scripts are intended to do the same thing: display a widget > > that > > contains a QTreeView with two columns and one row. The script right.py > >

Re: [PyQt] problem with model/view

2008-06-27 Thread Phil Thompson
On Fri, 27 Jun 2008 10:22:13 +0200, Vicent Mas <[EMAIL PROTECTED]> wrote: > Hi, > > the attached scripts are intended to do the same thing: display a widget > that > contains a QTreeView with two columns and one row. The script right.py > works > just fine. However the other doesn't work and I c

[PyQt] Comparing QString with QChar

2008-06-27 Thread Mark Summerfield
Hi, I got caught by this today: >>> from PyQt4.QtCore import * >>> s = QString("X") >>> c = QChar("X") >>> s[0] == c False >>> s[0] == QString(c) True In C++/Qt if you do the s[0] == c comparison it will return true because operator[] returns a const QChar &, but in P

[PyQt] problem with model/view

2008-06-27 Thread Vicent Mas
Hi, the attached scripts are intended to do the same thing: display a widget that contains a QTreeView with two columns and one row. The script right.py works just fine. However the other doesn't work and I cannot understand the reason. Probably I'm doing something very stupid, but I'm unable t