Skip to content
QtWS25 Last Chance
  • Best practice drawing lines

    Unsolved QML and Qt Quick qtquick2 lines drawing
    5
    0 Votes
    5 Posts
    881 Views
    johngodJ
    @GrecKo Thanks for the tips. Initially I had a QList with c++ objects, but now for simplicity I am trying to avoid that. To manage the dynamic objects, each has a signal connection when they are created. Then when something happens, they receive signals and each object manage it self (turns visible, unvisible, gets deleted, ....). I think this approach it is much easier than creating filters and lists or repeaters.
  • Send action Codes to PushButton

    Solved General and Desktop action push button draw lines
    10
    0 Votes
    10 Posts
    4k Views
    SGaistS
    You could use a QRubberBand to setup the line and once you release it add the QGraphicsLineItem to your scene.