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. Default field highlight color changed in Qt 6
Forum Updated to NodeBB v4.3 + New Features

Default field highlight color changed in Qt 6

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 327 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.
  • A Offline
    A Offline
    Ali.Goodarz
    wrote on last edited by
    #1

    Hey all,

    I am trying to migrate our application to Qt 6 and noticed that the default color for highlighting fields has changed to this greyish color:

    b8c9c46e-e4e1-43a4-beff-a6587e9d5346-image.png

    As opposed to the blue color used in Qt 5:

    f3859fb9-a6e3-449a-84ea-c23ac0d42d28-image.png

    I have a very, very big application and don't want to apply this to all the fields (or widgets) one by one.

    Is there a way to change this for the entire application? This also affects text edits and generally anything that takes focus.

    Christian EhrlicherC 1 Reply Last reply
    0
    • A Ali.Goodarz

      Hey all,

      I am trying to migrate our application to Qt 6 and noticed that the default color for highlighting fields has changed to this greyish color:

      b8c9c46e-e4e1-43a4-beff-a6587e9d5346-image.png

      As opposed to the blue color used in Qt 5:

      f3859fb9-a6e3-449a-84ea-c23ac0d42d28-image.png

      I have a very, very big application and don't want to apply this to all the fields (or widgets) one by one.

      Is there a way to change this for the entire application? This also affects text edits and generally anything that takes focus.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Such stuff is controlled by the used style. So what style do you use and which exact Qt6 version? Also is this a QTableView or something else?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • S Offline
        S Offline
        SimonSchroeder
        wrote on last edited by
        #3

        Also could be a setting of your OS (or the window manager on Linux). Which OS are you using?

        1 Reply Last reply
        0
        • A Ali.Goodarz has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved