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. Ruler for object mesurments
Forum Updated to NodeBB v4.3 + New Features

Ruler for object mesurments

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • R Offline
    R Offline
    RJM93
    wrote on last edited by
    #1

    Hey people)
    Im new in Qt, started with c++ few monthes ago...
    Currently writing programm for my PhD thesis.
    I spend a lot of time with one task, but i really dont have any idea how to solw it.
    I wii try to explain what i want to realize.
    In Widget im building 3D object (by the results of calculations) using openGL. After i want to create something like ruler for measuring sides of my obtained object.
    It can looks like in posted screens, where screenshot with black backgroung its my 3D object.
    And second screenshot its option which i want to create and further use it with my 3D object.
    Anyone knows how can i start to create this. I will be very greatful if someone help me with code or information how to do that.
    alt text

    alt text

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

      Hi and welcome to devnet,

      Some pointers:

      1. On the left, the "calling rule" is a QToolbar
      2. The "measuring" can likely be done with e.g. a QRubberBand
      3. The "answer" a QStatusBar with a custom widget to show exactly what you want.

      Hope it helps.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • R Offline
        R Offline
        RJM93
        wrote on last edited by
        #3

        Thanks a lot for reply. I will try to use your recommendations. In case of some questions will use this topic for more questions.
        Thanks a lot.

        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