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. Changing x button color
Forum Updated to NodeBB v4.3 + New Features

Changing x button color

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 526 Views 2 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.
  • hokushinH Offline
    hokushinH Offline
    hokushin
    wrote on last edited by
    #1

    Hello folks,

    How can I change mainwindows x button color?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      Do you mean the close button up on the title bar?
      If yes, they are drawn by the Operating system and can not be changed from Qt.
      In linux, you can use different windows managers and often change the look.
      In windows, you can not change it in any easy way.

      There is the option to use
      setWindowFlags(Qt::Window | Qt::FramelessWindowHint)
      to remove it completely and use a button where u can change colors.
      But you must re.implement dragging in caption etc so this often turns
      into a huge task.

      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