Skip to content

[Ubuntu] Floating widgets disappear after calling DockManager restoreState #755

@aartm

Description

@aartm

My steps are:

1: instantiate all the widgets that correspond with the xml stream and add them to the dock manager as docked widgets including proper objectNames. All the widgets are now visible.
2: Let the app startup and be shown.
3: 300ms delay
4: call restoreState() on the dockmanager with the xml stream and the floating widgets disappear. The mainwindow layout is correct and all the dockwidgets are still available in the DockManager->dockWidgetsMap() as well as the floating widgets that are available in the floatingWidgets() list

Ubuntu its Dock shows 2 dots next to the app icon which is correct (mainwindow + 1 floating)

One thing i found out is that calling restoreState() from the constructor of the mainwindow causes memory errors when there are floating widgets. A workaround for this was a singleShot timer that gives the window manager time to show/draw all the widgets before they get shuffled around. The CFloatingDockContainer its "visible" property is set to "true".

I have no idea how to continue. Any thoughts?

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions