Frage

I added (via drag and drop) a QDockWidget to my GUI that I was editing in Designer...
Now I want to remove it.

Firstly, I selected the visible object and pressed the Delete key.
The Object disappeared.

However, the QDockWidget can be seen to still be present in the Object Inspector,
and when I try to save my .ui, I get the 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.

Clicking on the Widget in the Object Inspector and hitting the Delete key does nothing,
and the right-click context menu does not have the usual 'Remove' option.
How do I get rid of it?! :|

Specs:

Windows 7 32 bit  
PyQt4
War es hilfreich?

Lösung

I also had this problem - dockable windows in the object inspector which I couldn't see in the main window. Because I couldn't see them, I couldn't find a way to delete them. However, when I saved the file, I ignored the warning messages (the same you had). When I reloaded the saved ui file, all the erroneous dock windows in the object inspector had disappeared.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top