[PyQt] Icon sidepane in Windows Vista/7

Lukas Hetzenecker LuHe at gmx.at
Tue Dec 8 12:50:33 GMT 2009


Hello,

i have a QListWidget that displays a button bar, like in KDEs Kontact.
I attached my current implementation. This works fine with Linux/Oxygen theme 
(as you can see in this screenshot: http://imagebin.ca/img/Od0zEZ.jpg ) and 
Windows XP, but looks ugly in Windows Vista and Windows 7 (as you can see 
here: http://imagebin.ca/img/umwpMN1.jpg ).

Is it possible to extend the region of the background of a selected item in 
windows vista?

I even tried it with a QStyledItemDelegate and QStyleOptionViewItemV4 
(decorationSize attribute), but this didn't help.

Does anybody know what I should try else?

Thanks for your help,
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ui_mainwindow.py
Type: text/x-python
Size: 7943 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091208/fe59fc46/ui_mainwindow-0001.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sidepane.py
Type: text/x-python
Size: 1204 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091208/fe59fc46/sidepane-0001.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mainwindow.ui
Type: application/x-designer
Size: 7614 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091208/fe59fc46/mainwindow-0001.bin


More information about the PyQt mailing list