Adding an Icon to QDialog

How to add an icon in QDialog, but not an icon on a frame, I need to put an icon in this dialog box.

+6
source share
2 answers

You can use QLabel and set pixmap properties to display the image. This is not an icon, though

+3
source

I do not use QT very much, so I can’t answer for sure, but here I found some examples:

http://www.trinitydesktop.org/docs/qt4/widgets-icons.html

Hope this helps you.

+1
source

Source: https://habr.com/ru/post/903276/


All Articles