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?
The Fridge Magnet example is likely what you are looking for.
Hope it helps
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.
You could use a
QGraphicsViewas 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.
@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.