Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why does QDockWidget::titleBar() return null?
Qt 6.11 is out! See what's new in the release blog

Why does QDockWidget::titleBar() return null?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 301 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J-Kappes
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved