Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved qmdiarea tabbed subwindows

    General and Desktop
    qmdiarea qmdisubwindow
    3
    8
    1914
    Loading More Posts
    • 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.
    • U
      user4592357 last edited by user4592357

      i'm creating QMdiSubWindows inside QMdiArea and i set the view mode of mdi to QMdiArea::TabbedView. and in this case i lose the minimize, maximize, close buttons of my subwindow. how can i keep them?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        AFAIK, you can't have both behaviour at the same time.

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

        U 1 Reply Last reply Reply Quote 1
        • U
          user4592357 @SGaist last edited by

          @SGaist
          hmm, that's an uncomfortable thing they did...

          mrjj 1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Do you have an example of a program that provides an MDI interface with tabbed sub window that allows to minimise, maximise and close each of these tab separately ?

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

            1 Reply Last reply Reply Quote 1
            • mrjj
              mrjj Lifetime Qt Champion @user4592357 last edited by

              @user4592357
              Well the TabbedView mode was meant to not show decorations (win frames)
              and since its tabs, it would be odd to have the windows frame symbols.

              However, the biggest issue for me was its draw in win 7 style on win 10.
              Looks very out of place :)
              alt text

              QDockWidgets cannot be used for your app ?

              1 Reply Last reply Reply Quote 1
              • U
                user4592357 last edited by

                i only need the close button. i know QScintilla does that.

                no, no need for docks. i think i'll leave it like this.

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  So you likely need to set the tabsClosable property to true.

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

                  U 1 Reply Last reply Reply Quote 2
                  • U
                    user4592357 @SGaist last edited by

                    @SGaist
                    exactly, thanks!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post