Unsolved FlowLayout
-
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
-
-
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 -
You could use a
QGraphicsScene
/QGraphicsView
as a container for your widgets. Widgets can be added to the scene withQGraphicsProxyWidget *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.