Dear All,
I need to insert an Image(JPEG) on MainWindow just above the Login area. To display the company Logo.. How to load the image on to MainWindow.Any resources file to be created...
Thanks in Advance
Dear All,
I need to insert an Image(JPEG) on MainWindow just above the Login area. To display the company Logo.. How to load the image on to MainWindow.Any resources file to be created...
Thanks in Advance
Add a label above the login widget and load the image with QLabel::setPixmap.
Here you can find an example of managing image resources.
Thanks you, I was able to insert Image of PNG format.. If, we need to set the size of image on QLabel means we have to call setMinimum ,max functions or we need to have same size of image.
In the same way, can we set the Window Icon also?
Do you mean the icon next to window title ? If yes, then use QWidget::setWindowIcon.
If you want to set custom icon of the app file, then read this: setting the application icon.
About the sizes, I don't know if i understood you correctly, but maybe you need to setScaledContents to true.
Vivek1982 (17th October 2013)
Bookmarks