Hi.
Ups.
I could make two operations: check visibility and check if it is tabified with other widgets. I will try this.
I restore the main window state from the registry and want to check some toolbuttons according to the dock widgets' visibility.
Bye
Edit: Thanks! It worked. =) Here the pattern I used now:
...
restoreState(settings.value("windowState").toByteArray());
toolBtn1->setChecked(dock1->isVisible() || !tabifiedDockWidgets(dock1).isEmpty());
toolBtn2->setChecked(dock2->isVisible() || !tabifiedDockWidgets(dock2).isEmpty());
toolBtn3->setChecked(dock3->isVisible() || !tabifiedDockWidgets(dock3).isEmpty());
...
...
restoreState(settings.value("windowState").toByteArray());
toolBtn1->setChecked(dock1->isVisible() || !tabifiedDockWidgets(dock1).isEmpty());
toolBtn2->setChecked(dock2->isVisible() || !tabifiedDockWidgets(dock2).isEmpty());
toolBtn3->setChecked(dock3->isVisible() || !tabifiedDockWidgets(dock3).isEmpty());
...
To copy to clipboard, switch view to plain text mode
Wow! The solution is quite simple. I have no idea why I didn't get that by myself.
Bookmarks