[PyQt] Larger size of QIcon?

Mads Ipsen mpi at comxnet.dk
Wed Mar 25 08:10:07 GMT 2009


> Hi all,
>
> I have just started using pyqt4 and decided to make a small
> thumbnail-viewer to learn how things work.
>
> I would like the thumbnails to be displayed in a grid that
> automatically change the grid when resized so I use the QListWidget.
> So far so good - it works fine ...almost... the thumbnails (QIcons)
> are very small - how do I make them larger?
>
> Code is attached.
>
> Thanks!
> Mads
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

like this:

list_view = QListView()
list_view.setIconSize(QSize(1024,1024))


More information about the PyQt mailing list