[PyQt] Setting icon size on a header view

Mads Ipsen madsipsen at gmail.com
Wed Mar 14 14:40:27 GMT 2012


Hi,

Trying to set the size of the icon displayed by a vertical header using 
its setIconSize() method in QTableView and QStandardItemModel framework. 
All attempts are unsuccessful so far.

Have attached small snippet and an PNG illustrating the issue.

Any ideas about what is going wrong?

Best regards,

Mads

-- 
+-----------------------------------------------------+
| Mads Ipsen                                          |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv |                              |
| DK-2500 Valby        | phone:          +45-29716388 |
| Denmark              | email:  mads.ipsen at gmail.com |
+----------------------+------------------------------+


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120314/c92ef6f5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: header_icon.py
Type: text/x-python
Size: 1190 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120314/c92ef6f5/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X.png
Type: image/png
Size: 2016 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120314/c92ef6f5/attachment.png>


More information about the PyQt mailing list