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. About colour theme and layout design of QT Creator
Qt 6.11 is out! See what's new in the release blog

About colour theme and layout design of QT Creator

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

    Hi all. I have the Qt creator 4.1.0 and from Tools -> Options... -> Environment -> Interface -> Theme: I have chosen Flat Dark. This is the best for me.

    But when I create a widget, for example in mainwindow.ui, when I go to design (not to code), the colour of the widget is black - dark, but when I run the app it is light - white.

    Can't it be the same?

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

      Hi
      As far as i know that style is only for Creator
      "C:\Qt\Tools\QtCreator\share\qtcreator\themes\dark.creatortheme"
      If you open file u see it sets tons of colors
      [Palette]
      shadowBackground=ff232323
      text=ffe7e7e7
      textDisabled=7fffffff
      hoverBackground=18ffffff
      selectedBackground=46ffffff
      normalBackground=ff333333
      alternateBackground=ff515151
      error=ffff0000
      textColorLink=ff007af4
      textColorLinkVisited=ffa57aff
      backgroundColorDisabled=ff444444

      Its based on Fusion. so you might be able to recreate it if you
      care to dig into it.

      qApp->setStyle(QStyleFactory::create("Fusion"));
          QPalette p = qApp->palette();
          p.setColor(QPalette::Window, QColor(53,53,53));
          p.setColor(QPalette::Button, QColor(53,53,53));
          p.setColor(QPalette::Highlight, QColor(142,45,197));
          p.setColor(QPalette::ButtonText, QColor(255,255,255));
          p.setColor(QPalette::WindowText, QColor(255,255,255));
          qApp->setPalette(p);
      
      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