Congratulations to our 2022 Qt Champions!

How to programmatically capture QDockWidget state

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


  • isFloating()

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

Log in to reply