PDA

View Full Version : QWidget Refresh Problem



MarkoSan
15th January 2008, 10:53
Hi to all!

I have weird problem! My QWiget, which contains some pictures from database, is shown ok. When I filter database and want to display a subset of picture from database (show only designated pictures), the screen does not update and filtered pictures are shown in small rectangular in upper left section of qwidget. Netiher update() neither repaint() help. But If I resize whole window, the subset of pictures is shown correctly. Which method should I call?

marcel
15th January 2008, 11:16
Did you remember to override sizeHint and minimumSize for your QWidget subclass?

MarkoSan
15th January 2008, 11:24
I do not understand, you mean I must also call sizeHint and set minimumSize?