How to insert images in widgets..
Hi..basically im new to Qt..
can anyone give me a basic code to load images…
Thanks in advance..
5 replies
Or looking at the tutorials [doc.qt.nokia.com] could also help to orient in Qt.
You can have code like this:
- QLabel mylabel;
- mylabel.setPixmap("myFile.png");
- mylabel.show();
Does this works for you?
You can use also QPushButton [doc.qt.nokia.com] to insert images if you want to have button’s capabilities
You must log in to post a reply. Not a member yet? Register here!







