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. QMainWindow & tabbed dock widgets, minimize area on click
QtWS25 Last Chance

QMainWindow & tabbed dock widgets, minimize area on click

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmainwindowqdockwidgetqtabbar
8 Posts 3 Posters 2.0k 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.
  • D Offline
    D Offline
    Dariusz
    wrote on 15 Aug 2019, 11:00 last edited by
    #1

    Hey

    I'd like to implement a functionality when user stack few widgets on top of each other & click on name of currently active tab of that widget for the entire area to "collapse"/ hide as a way to have only tab visible/widget hidden.

    I went over few "weird" approaches and I'm hitting strange walls which tells me that I must be approaching it totally backwards or there is a better way of doing it.

    How can I do this?

    TIA

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Aug 2019, 21:01 last edited by
      #2

      Hi,

      I am not sure to understand correctly what you want to achieve.

      Can you post a drawing of what you would like to get ?

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

      D 1 Reply Last reply 16 Aug 2019, 09:34
      0
      • S SGaist
        15 Aug 2019, 21:01

        Hi,

        I am not sure to understand correctly what you want to achieve.

        Can you post a drawing of what you would like to get ?

        D Offline
        D Offline
        Dariusz
        wrote on 16 Aug 2019, 09:34 last edited by
        #3

        @sgaist said in QMainWindow & tabbed dock widgets, minimize area on click:

        Hi,

        I am not sure to understand correctly what you want to achieve.

        Can you post a drawing of what you would like to get ?

        Attached gif :- )
        0_1565948061336_2019_08_16---10-33-48_capture_147.gif

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Aug 2019, 21:49 last edited by
          #4

          So you would like all QDockWidgets in that area to be hidden ? If so, what about calling hide on all of them ?

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

          D 1 Reply Last reply 17 Aug 2019, 10:02
          0
          • S SGaist
            16 Aug 2019, 21:49

            So you would like all QDockWidgets in that area to be hidden ? If so, what about calling hide on all of them ?

            D Offline
            D Offline
            Dariusz
            wrote on 17 Aug 2019, 10:02 last edited by
            #5

            @sgaist Yes, I just don't know how I can get a signal/info when I'm clicking repetetively on the ToolBar button from docket QWidgets on top of each other...

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 17 Aug 2019, 10:21 last edited by
              #6

              Hi
              If you mean get signal when the tabbar is clicked ?
              I used FindChild to get access to it . not sure there is better way.
              https://stackoverflow.com/questions/51215635/notification-when-qdockwidgets-tab-is-clicked

              D 1 Reply Last reply 17 Aug 2019, 12:33
              0
              • M mrjj
                17 Aug 2019, 10:21

                Hi
                If you mean get signal when the tabbar is clicked ?
                I used FindChild to get access to it . not sure there is better way.
                https://stackoverflow.com/questions/51215635/notification-when-qdockwidgets-tab-is-clicked

                D Offline
                D Offline
                Dariusz
                wrote on 17 Aug 2019, 12:33 last edited by
                #7

                @mrjj Yeah I was trying that too at some point, but it does not exist when there are no tabbed dock widgets. So getting a logic behind it to work was a bit "whh". It was my early attempt at solving that action. Just though there is a better way.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 17 Aug 2019, 12:53 last edited by
                  #8

                  Hi
                  I did not find any other way to gain access to the tab bar.

                  1 Reply Last reply
                  0

                  1/8

                  15 Aug 2019, 11:00

                  • Login

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