Qt Designproblem with QtableWidget
-
Hello,
An the Moment, I programming a Little Mapeditor vor my 2D-RPG game.
All functions are successfoul implementated to my Mapeditor, but the disign
of the QtableWidget is for my opinion very bad.I would, that the textures in each cell are full streched. But actually the textures aren't streched.
Here is a little picture, where i can show you this.
http://s14.directupload.net/images/131231/acqnwyss.pngHow can I change the settings in the QtableWidget, that all textures in each cell are streched?
-
Hi,
Try setting the sizehint using "setSizeHint":http://qt-project.org/doc/qt-5.0/qtwidgets/qtablewidgetitem.html#setSizeHint to that of the cell size.
-
Okay I have set the cell size to 32x32, its the size of the textures.
I think, that I have taken a wrong way to load textures in a cell.
Actually I load the textures over the iconSet function, is this the right way, or exists a better methode to load images in a cell ?