githubuser0xFFFF/Qt-Advanced-Docking-System

Workspace restoring reset configuration flags with Qt 6.7.0

nitramr opened this issue · 3 comments

It seems like there is an issue with layout restoring. I reproduced the issue in demo application.

Add the following configuration flag in demo application:

CMainWindow::CMainWindow(QWidget *parent)

// CDockManager::setAutoHideConfigFlags({CDockManager::DefaultAutoHideConfig});
CDockManager::setConfigFlag(CDockManager::DockAreaHasCloseButton, false);
CDockManager::setConfigFlag(CDockManager::DockAreaHasUndockButton, false);
CDockManager::setConfigFlag(CDockManager::DockAreaHideDisabledButtons, true);

Result:
Bildschirmfoto vom 2024-04-06 18-17-46

Click on "Save State" and on "Restore State" and you get this:
Bildschirmfoto vom 2024-04-06 18-17-52

If CDockManager::setAutoHideConfigFlags({CDockManager::DefaultAutoHideConfig}); is enabled, the issue is not reproducible.

Qt 6.7.0 on Ubuntu 23.10

It looks like it is a QT version specific issue.

I cannot reproduce it with Qt 6.8.0

Ok, thank you for testing. I close the issue because it is a Qt issue.

Just an update, I tested with a newer version of Qt 6.8.0 (from May, previous version was from January) and I can still reproduce it. Now it is misbehaving as in Qt 6.7.0.

I tried to debug it, but unsuccessfully yet.