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 Updated to NodeBB v4.3 + New Features

QT openGL Dynamic Line Depends on Height and Width

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 810 Views 1 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.
  • H Offline
    H Offline
    horderon
    wrote on 17 Aug 2018, 08:29 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?

    J 1 Reply Last reply 17 Aug 2018, 08:41
    0
    • H horderon
      17 Aug 2018, 08:29

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 17 Aug 2018, 08:41 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 17 Aug 2018, 09:09
      1
      • H Offline
        H Offline
        horderon
        wrote on 17 Aug 2018, 08:59 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
        • J jsulm
          17 Aug 2018, 08:41

          @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 17 Aug 2018, 09:09 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.

          J 1 Reply Last reply 17 Aug 2018, 09:10
          0
          • H horderon
            17 Aug 2018, 09:09

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 17 Aug 2018, 09:10 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 17 Aug 2018, 09:19
            0
            • J jsulm
              17 Aug 2018, 09:10

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

              H Offline
              H Offline
              horderon
              wrote on 17 Aug 2018, 09:19 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 17 Aug 2018, 11:03 last edited by
                #7

                Can anyone give me an example or documentation for read?

                K 1 Reply Last reply 17 Aug 2018, 15:33
                0
                • H horderon
                  17 Aug 2018, 11:03

                  Can anyone give me an example or documentation for read?

                  K Offline
                  K Offline
                  kenchan
                  wrote on 17 Aug 2018, 15:33 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

                  1/8

                  17 Aug 2018, 08:29

                  • Login

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