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. Using graphicsView to display an image
Qt 6.11 is out! See what's new in the release blog

Using graphicsView to display an image

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 4.5k 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.
  • J Offline
    J Offline
    jk_mk
    wrote on last edited by
    #1

    Hello,

    I have used a graphicsView and a button and I want to display an image from a directory file. How it could be done? Should I use something like setScene()?

    I have already displayed my image in a label in this way:
    label->setPixmap(QPixmap(":/open_image/.../test.png", 0, Qt::AutoColor));

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vinb
      wrote on last edited by
      #2

      you started 3 threads within 3 days about the same question, you allready got help "here":http://developer.qt.nokia.com/forums/viewthread/5968/ .

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        I agree with vinb: lets keep your image-displaying topics together. Closing this one.

        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