Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Preview a picture: QLabel or QImage?
Forum Updated to NodeBB v4.3 + New Features

Preview a picture: QLabel or QImage?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    isaacEnrique
    wrote on last edited by
    #1

    Greetings.

    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

    Isaac Pérez
    Programming is understanding.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Code_ReaQtor
      wrote on last edited by
      #2

      "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.

      Please visit my open-source projects at https://github.com/Code-ReaQtor.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved