Unsolved QGraphicsScene(Item) QDockWidget change szie.
-
QGraphicsScene has QGraphicsItems.
When you select these items with the mouse, the QDockWidget displays the x, y coordinate values of the selected item and information such as the width and height.
However, since the information provided by each item is different, the size of the DockWidget changes with each click of the item.
So when you press an item, one half of the screen is covered and one is too small.
Is there any way I can adjust the DockWidget size to the same size, but not the Fix size? Thank you
-
@Pada_ Im sure you tried this but didnt it work?
QWidget::resize(int w, int h)
-
I take the time to start a new Qt forum and add a comment.
I've tried it. It does not change.
If the user moves the size of the DcokWidget with the mouse, the size will not change from item to item.
-
-
@Pada_ @jsulm yeah the same issue is also in here. it should work:
https://stackoverflow.com/questions/2722939/c-resize-a-docked-qt-qdockwidget-programmatically