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. Design hint needed for a Qt newbie (or an Qt-example reference)
Forum Updated to NodeBB v4.3 + New Features

Design hint needed for a Qt newbie (or an Qt-example reference)

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 229 Views 3 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
    JWSchuetz
    wrote on 16 Oct 2022, 12:27 last edited by JWSchuetz
    #1

    I am a Qt newbie and I want to develop an application which simulates a 2-dimensional chaotic system.
    The user should get an impression of the system dynamic. And so I want to calculate and display the points one after the other.
    The user should see a growing trajectory of points on screen.

    I need a little hint how to display a just calculated point without the need to update the whole widget-window.
    The previous painted points should not be deleted.

    I think this should be a trivial task, but nevertheless I need some initial help. Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 17 Oct 2022, 05:19 last edited by
      #2

      Look into QPainter https://doc.qt.io/qt-5/qpainter.html or QImage. You can keep adding new points while keeping the old ones visible using a saved image cache.

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mchinand
        wrote on 17 Oct 2022, 14:03 last edited by
        #3

        Check out the colliding mice example which uses Qt's Graphics View Framework.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JWSchuetz
          wrote on 18 Oct 2022, 09:01 last edited by
          #4

          Thanks for your hints, I will have a look.

          1 Reply Last reply
          0

          1/4

          16 Oct 2022, 12:27

          • Login

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