Ruler for object mesurments



  • 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


  • Lifetime Qt Champion

    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.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.