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. Questions about QMdiSubWindow title bar

Questions about QMdiSubWindow title bar

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 6.1k 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.
  • I Offline
    I Offline
    itzram
    wrote on last edited by
    #1

    I have the following questions about QMdiSubWindow:

    • How do I add more buttons apart from maximize, minimize and close to a QMdiSubWindow?
    • Is there a way to change the icons for QMdiSubWindow?
    • Is there a way to automatically hide the title bar and border of QMdiSubWindow?
    • Is there a way to theme the border and title bar for QMdiSubWindow?
    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2
      • Draw your own title bar
      • Yes
      • I don't understand the question. Hide based on what?
      • Yes, see first point.
      1 Reply Last reply
      0
      • I Offline
        I Offline
        itzram
        wrote on last edited by
        #3

        Thanks Andre. How do I draw my own title bar? Just add a widget and add buttons to it?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          For instance, yes. And make sure you make sure that your title bar reimplements all the functionality that a normal title bar has.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

            Hi itzram,

            you can create your own style (QStyle or dervived subclass) where you draw that stuff. the MDI sub windows draw completly via QStyle painting.

            To change layout of the border the border etc, use the parameters of QMdiArea::addSubWindow.

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • I Offline
              I Offline
              itzram
              wrote on last edited by
              #6

              Thanks Gerolf.

              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