QT openGL Dynamic Line Depends on Height and Width
-
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
-
@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.
-
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.