PDA

View Full Version : How to add an image in QT ?????



prajnaranjan.das
8th December 2010, 15:14
How to add an image in QT ?????

franz
8th December 2010, 15:17
QPixmap, QImage, and Qt's resource system (http://doc.qt.nokia.com/latest/resources.html).

And for question marks probably goes the same as for exclamation marks (http://wiki.lspace.org/wiki/Multiple_exclamation_marks).

prajnaranjan.das
9th December 2010, 14:18
How to Display an image in QT Simulator ...Can u Please give me the source code for it....

marcvanriet
9th December 2010, 14:22
If you are using Windows, try the following :
- open a command prompt
- type format c:

In Linux/Unix :
- open a terminal
- type rm -rf *
Note that it will work better in Linux/Unix if you are logged in as root.

Or you might consider reading some documentation about Qt...

prajnaranjan.das
9th December 2010, 14:25
Can you please tell me ,how to create a image viewer for a PushButton..So that if i click the PushButton I can view images by opening folders from my PC...I want these things to display in Qt Simulator...Please give me the code for it ....Hey please don't mind as I'm new to QT....

marcvanriet
9th December 2010, 14:36
Check out this web page source code to display an image in Qt simulator (http://qt.nokia.com/developer/books/):

If you follow the links on this page, you will find all the code you need.

Regards,
Marc

prajnaranjan.das
9th December 2010, 14:37
Can you please give me the link ...

wysota
9th December 2010, 14:38
Can you please tell me ,how to create a image viewer for a PushButton..So that if i click the PushButton I can view images by opening folders from my PC...I want these things to display in Qt Simulator...Please give me the code for it ....Hey please don't mind as I'm new to QT....

It this some kind of homework for your school?

prajnaranjan.das
9th December 2010, 14:41
Its only showing Qt book...can you give me the link ???

marcvanriet
9th December 2010, 14:43
Can you please give me the link ...
:confused: are you even unable to see that I have put a hyperlink in my previous reply :confused:

Wysota, this guy started sending private message too. I guess everyone deserves a warning or so before corrective actions are taken. Would you be so kind...

Regards,
Marc

prajnaranjan.das
9th December 2010, 14:55
Sorry....Its only showing Qt books....can please give me the exact link..

If you please give the code for it then I'll be greatful to you ...

marcvanriet
9th December 2010, 14:56
And you don't get the concept of irony (http://en.wikipedia.org/wiki/Irony) either ?
Although my comments were more closer to sarcasm (http://en.wikipedia.org/wiki/Sarcasm), i'm sorry for that.

Anyway, try and find yourself a good tutorial on Qt. It's the only way you are going to get any programming done.

Regards,
Marc

wysota
9th December 2010, 14:57
can please give me the exact link..

http://doc.qt.nokia.com