|
 |
Displating image in a frame |
tuli.anubhav
Software Engineer
 
Registration Date: 06.03.2008
Posts: 39
Level: 12 [?]
Experience: 2,780
Next Level: 2,912
 |
|
Displating image in a frame |
 |
Hi
i am using Qt3 designer.
can any one help me with this.
i need to display an image " aaa.jpg" i can also convert it into "aaa.png"
can any one help me by telling that how can i display that image in a dialog
means i want to ask that which container/widget should i use.
n how can i change its properties, so that i can display that image.
Regards
Anubhav Tuli
|
|
09.04.2008 12:13 |
|
|
anusha

Assistant
Registration Date: 16.03.2007
Posts: 8
Level: 13 [?]
Experience: 3,419
Next Level: 4,033
 |
|
| RE: Displating image in a frame |
 |
Hi,
You can use a Lable as a container to hold that image. Try with the following code
QImage image;
image.load("./surge.jpg");
ui.label->setAlignment(Qt::AlignCenter);
ui.label->setPixmap(QPixmap::fromImage(image));
Regards,
Anusha
|
|
14.04.2008 08:22 |
|
|
|
|
|
 |
views today: 9.122 | views yesterday: 17.520 | total views: 10.242.491
Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -
SMS Gewinnspiel -
Hotels -
Stadtpläne -
Branchenbuch & Stadtplan
|