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. QDockWidget tabbification documentation
Forum Updated to NodeBB v4.3 + New Features

QDockWidget tabbification documentation

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 315 Views 2 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.
  • Oak77O Offline
    Oak77O Offline
    Oak77
    wrote on last edited by Oak77
    #1

    I went through QDockWidget documentation and also checked a lot other stuff, but I did not found anything regarding what happens, when QDockWidget gets tabbified into QTabBar. Neither I was empirically able to find out, how it works. The QDockWidget is added to the Main Window, where it can be addressed, but I don't get what is the mechanism, that actually adds it into a tab of a QTabBar widget.

    As a practical example, how do we find out which is the parent QTabBar tab for particular tabbed QDockWidget or vice versa? Did I miss anything in the documentation?

    I use PyQt, but I am obviously looking into standard Qt documentation.

    EDIT - to demonstrate it in a bit of detail:

    Those are children of QTabBar of the tabbified QDockWidgets:

    <PyQt5.QtWidgets.QAbstractButton object at 0x03BB6D18>
    <PyQt5.QtWidgets.QAbstractButton object at 0x03BB6D60>
    <PyQt5.QtWidgets.QToolButton object at 0x03BB6DA8>
    <PyQt5.QtWidgets.QToolButton object at 0x03BB6DF0>
    <PyQt5.QtCore.QPropertyAnimation object at 0x03BB6E38>
    

    This is parent of a QDockWidget:

     <__main__.Window object at 0x03BB6658>
    

    It all makes sense, but I wonder where's the link between the two objects, that are in the end displayed as Parent and Child.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you want the details then you should take a look at QMainWindowLayout sources.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Oak77O 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        If you want the details then you should take a look at QMainWindowLayout sources.

        Oak77O Offline
        Oak77O Offline
        Oak77
        wrote on last edited by
        #3

        @SGaist Oh, I have nearly no C++ knowledge and the bits are some 20 years old... It's gonna be a challenge, but otherwise a good point and I'll try my best :-). Thank you.

        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