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 QMdiSubWindow Title Bar Style in Fusion Theme?
Forum Updated to NodeBB v4.3 + New Features

How to Customize QMdiSubWindow Title Bar Style in Fusion Theme?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 149 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.
  • IPlayGenji6I Offline
    IPlayGenji6I Offline
    IPlayGenji6
    wrote on last edited by
    #1

    The bottom half of my title bar has a shadow effect, but I want to change it to a gradient effect. The first image shows the my style now, and I’d like to achieve the style in the second image.
    c583090b-b586-46f5-84fc-1687d9259865-image.png
    to
    d10d6907-2041-431a-b50f-f7e889dcfc96-image.png

    Here is my code:
    main.cpp:

    QApplication a(argc, argv);    
    a.setStyle("Fusion");
    

    Style sheet:

    QMdiSubWindow {
    selection-background-color: #81c3d6;
    }
    
    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