PDA

View Full Version : as displaying an image in a mdi?



Lycus HackerEmo
5th July 2010, 04:28
as displaying an image in a mdi?
this is possible? some example.

Ginsengelf
5th July 2010, 08:18
Hi, have you already tried something? For displaying images QLabel should be sufficient.

Ginsengelf

Lycus HackerEmo
5th July 2010, 23:27
yes, I know that.
I wondered, to see it the Gwenview (http://gwenview.sourceforge.net/data/screenshots//2.4/full/new_start_page.png), use the mdi?

ChrisW67
6th July 2010, 00:03
The Qwenview screenshot looks like a couple of QTabWidgets in a fixed ratio layout or separated by a QSplitter. The tabs contain QListViews in QListView::IconMode. I cannot see an obvious QMdiArea. However, I haven't looked at the actual source, which is something you could do to work out how they do it.

vcp
6th July 2010, 13:14
Hi Lycus,

To display images, texts ... in MdiArea you should derive the class QMdiArea and reimplement the paintEvent(),
just this. Inside of paintEvent() use QPainter to do job.

cheers