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. Wire lines graphics, how to ?
Forum Updated to NodeBB v4.3 + New Features

Wire lines graphics, how to ?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.3k Views 2 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.
  • D Offline
    D Offline
    deleted28
    wrote on last edited by
    #1

    Hello,

    I want to learn how to connect graphical objects with lines.
    e.g. drawing wires between electronic parts and defining nodes
    on particularly parts.
    Does anybody know an example or tutorial explaining how to draw this lines ?
    Actually playing around with QRubberBand but Iwould like to see
    more examples.
    Thank you

    wally

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      QRubberBand is for visualizing selection regions, not drawing lines.

      To draw graphical objects like pictures, lines, shapes etc. you can use QGraphicsView and its various item types. Take a look at the elastic Nodes Example to see if that's the sort of thing you want to do.

      D 1 Reply Last reply
      0
      • Chris KawaC Chris Kawa

        QRubberBand is for visualizing selection regions, not drawing lines.

        To draw graphical objects like pictures, lines, shapes etc. you can use QGraphicsView and its various item types. Take a look at the elastic Nodes Example to see if that's the sort of thing you want to do.

        D Offline
        D Offline
        deleted28
        wrote on last edited by deleted28
        #3

        @Chris-Kawa said:

        QRubberBand is for visualizing selection regions, not drawing lines.

        Yes, now I know. The example you mentioned is interesting, thnak you.
        Any libraries or other readymade solutions known ?
        (maybe boost or others)

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Qt is more than enough for this task.

          D 1 Reply Last reply
          0
          • Chris KawaC Chris Kawa

            Qt is more than enough for this task.

            D Offline
            D Offline
            deleted28
            wrote on last edited by
            #5

            @Chris-Kawa said:

            Qt is more than enough for this task.

            but not a lot more than this " elastic Nodes Example" , or is there more ?
            :)

            1 Reply Last reply
            0

            • Login

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