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. Modify Elastic Nodes from QT5 example

Modify Elastic Nodes from QT5 example

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 464 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.
  • A Offline
    A Offline
    Annabela_Cortez
    wrote on last edited by
    #1

    Greeting,
    I am using this example of graph from QT5
    https://doc.qt.io/qt-5/qtwidgets-graphicsview-elasticnodes-example.html

    I want to modify it's node to use QGraphicsEllipseItem so I can change the size of the ellipse because I can't modify the existing one. But I don't how to do it. Can you suggest me how to modify existing node in Elastic Nodes, or how to use QGraphicsEllipseItem for node.

    Thanks in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why about adding a method to that class that would allow you to change the size of the ellipse drawn ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        Why about adding a method to that class that would allow you to change the size of the ellipse drawn ?

        A Offline
        A Offline
        Annabela_Cortez
        wrote on last edited by
        #3

        @SGaist I tried that, but nothing changes. The size stays the same, or I don't know to to make it bigger.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What exactly did you try ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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