문제

I have a widget with 4 QGraphicsViews and I want them to be dockable. I've put a QGraphicsView in a QDockWidget. Then I was able to undock the view, but I don't know how to dock the view back, where it was. At the begin, there is a bar with an undock button, but when the widget is undocked, then this bar is gone.

What do I need to do, to dock the widget on it's original/starting position? Or is this QDockWidget not for things like that? I would be very grateful for some help.

도움이 되었습니까?

해결책

Just drag the widget back to its starting position, and the main window should grab it automatically. If this doesn't work for you, take a look at the Dock Widgets example program (Qt Creator -> Help -> Contents -> Tutorials and Examples -> Main Window Examples -> Dock Widgets). If even this example program doesn't work, then something is wrong with your Qt installation!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top