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

FlowLayout

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 942 Views 3 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.
  • C Offline
    C Offline
    ckvsoft
    wrote on last edited by A Former User
    #1

    Hi

    Have you a hint how i can to this?
    I have a FlowLayout with QPushButtons. Now i will reorder the Buttons by using the Mouse.

    Any Ideas or Examples?

    lg Chris

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

      Hi,

      The Fridge Magnet example is likely what you are looking for.

      Hope it helps

      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
      2
      • C Offline
        C Offline
        ckvsoft
        wrote on last edited by
        #3

        Thanks

        This comes close to my wish ;-) But i need a FREE Position like in a Layout or in a FlowLayout.

        I will lock what i can do.
        Thx Chris

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          You could use a QGraphicsScene / QGraphicsView as a container for your widgets. Widgets can be added to the scene with QGraphicsProxyWidget *QGraphicsScene::addWidget(QWidget *widget, Qt::WindowFlags wFlags = Qt::WindowFlags()). The good old Diagram Scene Example shows how to make items mouse-movable.

          1 Reply Last reply
          1
          • C Offline
            C Offline
            ckvsoft
            wrote on last edited by
            #5

            @Wieland I take a look at the Example. But i need one where the Button or Widget do not can overlap.

            Like the Flowlayout one Object after the other but with resort when i move the object with mouse.

            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