[PyQt] About styling QListWidgetItem selection background

2007-08-21 Thread Gustavo A. Dí­az
Hi!! Is it possible to Style the item of a QListWidget which is QListWidgetItem? Cause for example, i want to add a background pixmap to its selection rectangle. Thanks!! Cheers. -- Gustavo A. Díaz GDNet Projects www.gdnet.com.ar ___ PyQt mai

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Gustavo A. Dí­az
As i said, only Escape key. I want to know to do the same but with alt + Escape... or which is the way to do it... cheers. Henrik Pauli escribió: What I was thinking about was this: http://doc.trolltech.com/4.3/qt.html#WidgetAttribute-enum -> Qt::WA_DeleteOnClose as it's now called.  As

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Henrik Pauli
What I was thinking about was this: http://doc.trolltech.com/4.3/qt.html#WidgetAttribute-enum -> Qt::WA_DeleteOnClose as it's now called. As I said, I could be completely wrong with assuming it being the culprit, but anyway. Now... isn't the code you pasted actually handling Escape, not Alt+Escap

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Gustavo A. Dí­az
I forgot, that code only hide the app when i press Esc key, i want alt + Esc key combination to do the same... Thanks. Uğur Çetin escribió: 22-08-2007 01:18 Gustavo A. Dí­az: I am trying to catch the keyPressEvent of alt + esc combination with: def keyPressEvent(self, event):

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Gustavo A. Dí­az
I think you are missunderstanding I have an app, i have a systray, when i press the close button, it hide on the systray, cause i've implemented that... Now i want to hide the app too when i press alt+esc...not closing it. Thanks... Cheers. Uğur Çetin escribió: 22-08-2007 01:18 Gusta

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Uğur Çetin
22-08-2007 01:18 Gustavo A. Dí­az: > I am trying to catch the keyPressEvent of alt + esc combination with: > > def keyPressEvent(self, event): > if event.key() == QtCore.Qt.Key_Escape: > self.hide() > > And this has no effect, the app closes anyway. What i want is to h

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Gustavo A. Dí­az
what?? Henrik Pauli escribió: Off the top of my head, and as such it could be completely wrong: WDestructiveClose? On 8/22/07, "Gustavo A. Dí­az" < [EMAIL PROTECTED]> wrote: Hi!! I am trying to catch the keyPressEvent of alt + esc combination with: def keyPressEvent(self,

Re: [PyQt] About keyPressEvent

2007-08-21 Thread Henrik Pauli
Off the top of my head, and as such it could be completely wrong: WDestructiveClose? On 8/22/07, "Gustavo A. Dí­az" <[EMAIL PROTECTED]> wrote: > > Hi!! > > I am trying to catch the keyPressEvent of alt + esc combination with: > > def keyPressEvent(self, event): > if event.key() == Qt

[PyQt] About keyPressEvent

2007-08-21 Thread Gustavo A. Dí­az
Hi!! I am trying to catch the keyPressEvent of alt + esc combination with: def keyPressEvent(self, event):         if event.key() == QtCore.Qt.Key_Escape:         self.hide() And this has no effect, the app closes anyway. What i want is to hide the app and not close it. What i

Re: [PyQt] Some problems with styleSheets in QT4.3.1 and PyQt4.3

2007-08-21 Thread Gustavo A. Dí­az
Claudio, ¿Qué tal? Puedes chequear el código de mi app aquí: http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/MainApp.py Allí mismo ya está implementado el FIX para QTabWidget. Solo busca más abajo donde se establecen los estilos para tal. Saludos. -- Gustavo A. Díaz GD

Re: [PyQt] Some problems with styleSheets in QT4.3.1 and PyQt4.3

2007-08-21 Thread Gustavo A. Dí­az
Ok, nevermind, this fix does not affect QT4.3, so is perfect. Thanks Again David! Cheers. Gustavo A. Dí­az escribió: David, Hi!! That fix worked out for QT4.3.1, i didn't test it yet for QT4.3... this will be a problem for this one? Thanks! Cheers. David Boddie escribió:

Re: [PyQt] Some problems with styleSheets in QT4.3.1 and PyQt4.3

2007-08-21 Thread Gustavo A. Dí­az
David, Hi!! That fix worked out for QT4.3.1, i didn't test it yet for QT4.3... this will be a problem for this one? Thanks! Cheers. David Boddie escribió: On Sunday 19 August 2007 23:56, you wrote: So, with QT4.3.1 and pyqt4.3 the tabwidget uses the stackedwidget background

Re: [PyQt] Some problems with styleSheets in QT4.3.1 and PyQt4.3

2007-08-21 Thread David Boddie
On Sunday 19 August 2007 23:56, you wrote: > So, with QT4.3.1 and pyqt4.3 the tabwidget uses the stackedwidget > background pixmap (as i clearly demostrate on the screenshots) > > This does not happen with qt4.3 nd pyqt4.3 OK. The problem is that the bug which prevented QStackedWidget from