Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Designer » Displating image in a frame » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page Displating image in a frame
Author
Post « Previous Thread | Next Thread »
tuli.anubhav tuli.anubhav is a male
Software Engineer


Registration Date: 06.03.2008
Posts: 39

Level: 12 [?]
Experience: 2,814
Next Level: 2,912

98 points of experience needed for next level

Achtung Displating image in a frame Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 tuli.anubhav is offline Send an Email to tuli.anubhav Search for Posts by tuli.anubhav Add tuli.anubhav to your Buddy List
anusha anusha is a female
Assistant


Registration Date: 16.03.2007
Posts: 8

Level: 13 [?]
Experience: 3,426
Next Level: 4,033

607 points of experience needed for next level

RE: Displating image in a frame Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 anusha is offline Send an Email to anusha Search for Posts by anusha Add anusha to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Designer » Displating image in a frame

views today: 6.038 | views yesterday: 12.104 | total views: 10.251.511


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich