17 Sep
2004
17 Sep
'04
13:35
On Friday 17 September 2004 15:16, Prabu Subroto wrote:
I have an image file named "1.png", I want this image file displayed in a Dialog Form.
Anybody would be so generous to give me a very simple sample code how to display an image file into a Dialog Form with QImage?
All I know only this step : QImage::QImage("images/1.png");
QImage is almost always the wrong choice. Use a QLabel with a QPixmap in it.
QImage is for doing heavy image processing, not for simple displaying.
CU
--
Stefan Hundhammer