[Qt-interest] Icon sidepane in Windows Vista/7 (Fixed size for a QListWidgetItem?)

Lukas Hetzenecker LuHe at gmx.at
Thu Dec 10 09:34:56 CET 2009


Hello,

i have a QListWidget that displays a button bar, like in KDEs Kontact.
I attached my current implementation, written in C++, and my original 
implementation in Python/PyQt4. 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: sidepane-python.zip
Type: application/zip
Size: 3816 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091210/050a7347/attachment.zip 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sidepane-c++.zip
Type: application/zip
Size: 14386 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091210/050a7347/attachment-0001.zip 


More information about the Qt-interest-old mailing list