Home > other >  QListWidget item is added
QListWidget item is added

Time:05-27

QListWidget item is added to the problem, I want to have a picture preview function, will be a folder image displayed in the QListWidget, but there is a problem because the image sizes, finally displayed the item arrangement is not neat, as shown in figure,  , image is aligned at the top, but words not neat, change how to do, the item - & gt; 57; seven setSizeHint (QSize ()); My code used in this sentence, but also have no alignment,

CodePudding user response:

I have written PYAlbum and PYBella http://qtcn.org/bbs/read-htm-tid-45256.htmlhttp://qtcn.org/bbs/read-htm-tid-45774.html you see whether meet your demand

CodePudding user response:

Can not can put the image processing, to generate the size of a thumb, and then set up

CodePudding user response:

Line source as follows, no more than 15:

CodePudding user response:

Self. Errorlist. SetIconSize (QSize (200200))
Item. SetIcon (QIcon (pixmap. Three (200, 200)))
Set up a fixed size picture
  • Related