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. Overlaying Picture with heat map

Overlaying Picture with heat map

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 788 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.
  • T Offline
    T Offline
    tiegert
    wrote on last edited by
    #1

    Hi, i would like to draw a raster in a window and lay a picture on top. It should be possible to resize the picture by dragging and afterr resizing then getting the size of the picture relativ to the raster. In addition i would like to overlay the picture afterwards with a heatmap.

    Has anyone got an idea on where to go? Is QML/Qt-Quick the way to go?
    Right now i do just need a place to start.

    Just to get an idea of what i want:

    qt-picture heatmap.png

    Pl45m4P 1 Reply Last reply
    0
    • T tiegert

      Hi, i would like to draw a raster in a window and lay a picture on top. It should be possible to resize the picture by dragging and afterr resizing then getting the size of the picture relativ to the raster. In addition i would like to overlay the picture afterwards with a heatmap.

      Has anyone got an idea on where to go? Is QML/Qt-Quick the way to go?
      Right now i do just need a place to start.

      Just to get an idea of what i want:

      qt-picture heatmap.png

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @tiegert said in Overlaying Picture with heat map:

      Has anyone got an idea on where to go? Is QML/Qt-Quick the way to go?

      You could use the GraphicsView Framework

      • https://doc.qt.io/qt-5/graphicsview.html

      or you paint everything manually

      • https://doc.qt.io/qt-5/qtwidgets-widgets-scribble-example.html

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tiegert
        wrote on last edited by
        #3

        Ok, thanks i will have a look at the GraphicsView Framework at first, because painting everything manually sounds like a lot of work!

        mrjjM 1 Reply Last reply
        0
        • T tiegert

          Ok, thanks i will have a look at the GraphicsView Framework at first, because painting everything manually sounds like a lot of work!

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

          @tiegert
          Hi
          Its not so much to avoid manual drawing but the GraphicsView Framework gives
          z order / selection handling and zoom/scrolling and panning out of the box where
          as QPainter is just the actual painting.

          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