Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to programmatically capture QDockWidget state
Qt 6.12 LTS is out! See what's new in the release blog

How to programmatically capture QDockWidget state

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 923 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    chooser
    wrote on last edited by
    #1

    Hi, sorry if this seems like a simple question but i'm in a bit of a rush.

    Can anybody give me a clue how to capture programmatically whether a QDockWidget object is docked or not. In other words, answer the question, is it presently docked or not. I was expecting to find a method called something like isDocked. But I don't see anything like that.

    Any feedback is much appreciated.

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      isFloating()

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chooser
        wrote on last edited by
        #3

        Really? Ok let me try that out.
        Thanks much.

        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
        • Unsolved