You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
First of all, thank you SO much for this awesome piece of code.
I think I found a little bug, where when a AutoHideDockWidget is removed from its dock area, isAutoHide stays true. I can reproduce like this (in python)
deftest_ads_bug(self):
QtAds.CDockManager.setAutoHideConfigFlags(QtAds.CDockManager.DefaultAutoHideConfig)
dock_conainer=QWidget()
dock_manager=QtAds.CDockManager(dock_conainer)
dock_widget=QtAds.CDockWidget("hello")
dock_manager.addAutoHideDockWidget(QtAds.SideBarRight, dock_widget)
self.assertFalse(dock_widget.isFloating())
self.assertTrue(dock_widget.isAutoHide())
dock_manager.addDockWidgetFloating(dock_widget)
self.assertTrue(dock_widget.isFloating()) # This is fineself.assertFalse(dock_widget.dockAreaWidget().isAutoHide()) # This is fineself.assertFalse(dock_widget.isAutoHide()) # This fails!
They are not aligned. In CDockWidget.cpp, autohide is tested with DockArea->isAutoHide() while isAutoHide() check for the SideTabWidget to have value.
Not sure if the removal code should also set SideTabWidget to null or if isAutoHide should be updated to check for d->DockArea->isAutoHide() instead. Or maybe both?
Cheers!
The text was updated successfully, but these errors were encountered:
pylessard
changed the title
Moving a dockwidget from autyohide to floating leave isAutoHide() true
Moving a dockwidget from autohide to floating leaves isAutoHide() true
May 1, 2025
Hi.
First of all, thank you SO much for this awesome piece of code.
I think I found a little bug, where when a AutoHideDockWidget is removed from its dock area, isAutoHide stays true. I can reproduce like this (in python)
If I understood correctly:
They are not aligned. In CDockWidget.cpp, autohide is tested with
DockArea->isAutoHide()
while isAutoHide() check for theSideTabWidget
to have value.Not sure if the removal code should also set
SideTabWidget
to null or ifisAutoHide
should be updated to check ford->DockArea->isAutoHide()
instead. Or maybe both?Cheers!
The text was updated successfully, but these errors were encountered: