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
GDNet Projects
www.gdnet.com.ar
Gustavo A. Díaz


Claudio A. Quezada R. escribió:
Hola Gustavo,

estoy escribiendo un software libre con python y PyQt, vi tu mensaje en la lista, y me gustaría consultarte 2 cosas:

1) ¿Cómo estableces la instancia "QTabWidget QStackedWidget { background: url/to/pixmap }" que menciona David? O más bien... ¿cómo modificas el background para un QTabWidget (u otro widget)?

2) ¿Sabes como reimplementar el QApplication::Notify()?, he hecho algunas llamadas incorrectas, y me ha aparecido 2 veces este error mientras corro el programa, aunque arreglando el código ya no vuelve a aparecer dicho error (Qt has caught an exception thrown from an event handler...)

Si gustas (y tienes tiempo) te puedo enviar la interfaz gráfica en la que trabajo.

Gracias de antemano,

Saludos,

Claudio


2007/8/21, "Gustavo A. Dí­az" < [EMAIL PROTECTED]>:
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ó:
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 being
styled correctly was fixed in Qt 4.3.1. Previously, you had to set the
frame style to make it work.

Unfortunately, QTabWidget itself contains an internal QStackedWidget, and

that is now styled as well. The trick is to make sure that this internal
QStackedWidget has its own background. You can turn it off by adding this
to the style sheet for each QTabWidget instance:

  QTabWidget QStackedWidget { background: none }


I'm told that future Qt releases will use something like this in the default
widget style sheet, so this workaround will only be necessary for Qt 4.3.1.
Still, it shouldn't cause any side effects if it's applied twice.


David

  


--
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar
Gustavo A. Díaz


--
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar
Gustavo A. Díaz

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt




--
Claudio Quezada Romegialli
Ingeniero Ambiental
(02)7321665 - 81466049



_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to