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. QT openGL Dynamic Line Depends on Height and Width
Forum Update on Monday, May 27th 2025

QT openGL Dynamic Line Depends on Height and Width

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 806 Views
  • 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.
  • H Offline
    H Offline
    horderon
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • H horderon

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      1
      • H Offline
        H Offline
        horderon
        wrote on last edited by
        #3

        Yes. I will enter H and W, depends this h and w there will be line on the screen, thats all.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @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
          H Offline
          H Offline
          horderon
          wrote on last edited by
          #4

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

          jsulmJ 1 Reply Last reply
          0
          • H horderon

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

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @horderon But what is the problem you have? Where do you need help?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            H 1 Reply Last reply
            0
            • jsulmJ jsulm

              @horderon But what is the problem you have? Where do you need help?

              H Offline
              H Offline
              horderon
              wrote on last edited by
              #6

              @jsulm I'm new on Cpp and QT . Just doing basic mouseover lines. Bu didn't do dynamically. I'm looking for any documentation or example for my problem.

              1 Reply Last reply
              0
              • H Offline
                H Offline
                horderon
                wrote on last edited by
                #7

                Can anyone give me an example or documentation for read?

                K 1 Reply Last reply
                0
                • H horderon

                  Can anyone give me an example or documentation for read?

                  K Offline
                  K Offline
                  kenchan
                  wrote on last edited by
                  #8

                  @horderon

                  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 Reply Last reply
                  4

                  • Login

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