Qt 6.11 is out! See what's new in the release
blog
Why does QDockWidget::titleBar() return null?
-
I'm trying to add a checkbox to a dock's titlebar, but calling titleBar returns null,
and there seems to be no other way of producing the default float and close buttons,
so if I simply replace the default titlebar I can have my checkbox but lose the default controls. -
A dock widget is not a standard window. When undocked you may be able to get a standard title bar, but when docked I do not think such a thing exists.
You should look at QDockWidget::setTitleBarWidget