Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Preview a picture: QLabel or QImage?
isaacEnrique last edited by
I am creating a dialog box should show, among other things, a preview of an image.
I have little doubt that the structure will be more convenient to use for this purpose, QLabel or QImage (or perhaps some other).
Thanks in advance for any suggestion
Code_ReaQtor last edited by
"QLabel::setPixmap()":http://doc.qt.digia.com/qt/qlabel.html#pixmap-prop is the easiest option to show an image.
BTW, you can't show a QImage on the screen unless you paint it on a widget using QPainter.