Remove Dock Widget in Qt Designer?

I added (via drag and drop) a QDockWidget to my GUI, which I edited in Designer ...
Now I want to delete it.

First, I selected the visible object and hit the Delete key.
The object has disappeared.

However, QDockWidget , as you can see, is still present in the Object Inspector.
and when I try to save my .ui , I get a message:

 The container extension of the widget MainWindow (QMainWindow) returned a widget not managed by Designer dockWidget (QDockWidget) when queried for page #2. Container pages should only be added by specifying them in XML returned by the domXml() method of the custom widget. 

Pressing the widget in the object inspector and pressing the Delete key does nothing,
and the right-click context menu does not have the usual โ€œDeleteโ€ option.
How can I get rid of this ?! : |

Specifications:

 Windows 7 32 bit PyQt4 
+6
source share
1 answer

I also had this problem - dockable windows in the object inspector, which I could not see in the main window. Since I could not see them, I could not find a way to remove them. However, when I saved the file, I ignored the warning messages (the same as what you had). When I reloaded the saved ui file, all the erroneous dock windows in the object inspector disappeared.

+6
source

Source: https://habr.com/ru/post/898887/


All Articles