QT openGL Dynamic Line Depends on Height and Width
-
wrote on 17 Aug 2018, 08:29 last edited by
Hello guys.
I want to select a line that has his width and height. Height and width will be entered from form or something, depends on this h and w has entered, i will put the line to the screen.H and W can be entered many times, each times i will put new line to screen wherever i want. I didn't find any correct solution for this. Can you show me a way or example for this? -
Hello guys.
I want to select a line that has his width and height. Height and width will be entered from form or something, depends on this h and w has entered, i will put the line to the screen.H and W can be entered many times, each times i will put new line to screen wherever i want. I didn't find any correct solution for this. Can you show me a way or example for this?@horderon said in QT openGL Dynamic Line Depends on Height and Width:
I want to select a line
I guess you want to DRAW a line, right?
What exactly is the problem?- How to draw a line
- How to let the user enter height/width
-
wrote on 17 Aug 2018, 08:59 last edited by
Yes. I will enter H and W, depends this h and w there will be line on the screen, thats all.
-
@horderon said in QT openGL Dynamic Line Depends on Height and Width:
I want to select a line
I guess you want to DRAW a line, right?
What exactly is the problem?- How to draw a line
- How to let the user enter height/width
-
@jsulm I want to use this 2 problem together. In form or something there will be two value, H and W. For example when i enter H = 3, W=4 , there will be line on the screen has his width(4) and (height). Sorry for grammer.
@horderon But what is the problem you have? Where do you need help?
-
wrote on 17 Aug 2018, 11:03 last edited by
Can anyone give me an example or documentation for read?
-
wrote on 17 Aug 2018, 15:33 last edited by
If you want to do interactive graphics this
http://doc.qt.io/qt-5/qgraphicsscene.html
and this
http://doc.qt.io/qt-5/qgraphicsview.html
are a good place to start.
1/8