Open k12Sergey opened 3 weeks ago
i found out that AutoHide widget is a custom internal class, so simple way is to take DockWidget icon size setting (its wrong way because it a common sidebar setting). But still cant found out the way toolBarIconSize should work (which scenario this option is used)
void CAutoHideTab::setDockWidget(CDockWidget* DockWidget)
{
if (!DockWidget)
{
return;
}
d->DockWidget = DockWidget;
setText(DockWidget->windowTitle());
setIcon(d->DockWidget->icon());
setIconSize(d->DockWidget->toolBarIconSize(CDockWidget::StateHidden)); // icon setting
setToolTip(DockWidget->windowTitle());
}
Hi. Im trying to apply icon size for CDockWidget view in toolbar with the following code:
But nothing happened with icon in hide toolbar (default icon size is used) (im trying all the available states)
And it even reset to default when
addAutoHideDockWidget
call. Im also try to apply size afteraddAutoHideDockWidget
but still no effect.