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. How to customize tittle bar of QMdiSubWindow with QStyleOptionTitleBar?
Forum Updated to NodeBB v4.3 + New Features

How to customize tittle bar of QMdiSubWindow with QStyleOptionTitleBar?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 884 Views 1 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.
  • M Offline
    M Offline
    marceloarguello700
    wrote on last edited by
    #1

    Hi i in my program have a QMdiarea, when the user
    clik on new file, a QMdiSubWindow is added.

    Inside the QMdiSubWindow is a Qmainwindow because need another menu an Qtoolbar

    So the question is
    how can change the QMdiSubWindow tittle bar, Or the child Qmainwindow

    I want one with a slim tittle and a little close button.
    Also want to customize the color of border and tittle background.

    I know that exist QStyleOptionTitleBar but dont find any sample.
    and the sample
    http://qt-project.org/doc/qt-5/qtwidgets-widgets-styles-example.html
    only change interior apearence.
    Greetings

    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