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. Doubt about QgraphicsScene
Qt 6.11 is out! See what's new in the release blog

Doubt about QgraphicsScene

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 986 Views 2 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.
  • P Offline
    P Offline
    Pedro_Monteiro
    wrote on last edited by
    #1

    Hi, is there a way to put an image (png) in a QGraphicsScene, move and resize it with the mouse?
    Thanks!

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Yes it possible but not trivial
      Here is sample for resize
      http://www.davidwdrell.net/wordpress/?page_id=46
      (might need some tweaking)

      to insert image you can use
      http://doc.qt.io/qt-4.8/qgraphicspixmapitem.html#details

      P 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Yes it possible but not trivial
        Here is sample for resize
        http://www.davidwdrell.net/wordpress/?page_id=46
        (might need some tweaking)

        to insert image you can use
        http://doc.qt.io/qt-4.8/qgraphicspixmapitem.html#details

        P Offline
        P Offline
        Pedro_Monteiro
        wrote on last edited by
        #3

        @mrjj Is there an example in pyqt4?

        mrjjM 1 Reply Last reply
        0
        • P Pedro_Monteiro

          @mrjj Is there an example in pyqt4?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Pedro_Monteiro
          hmm. Not that I have seen.
          There is py group here u can ask questions on how to convert, but full
          exact sample i have not seen.

          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