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. Change default qss für QT Designer

Change default qss für QT Designer

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

    Hi there..

    I created a new qss for my ui, that represents a dark styled Windows fusion. It´s working when testing the project and loading the stylesheet with

    QFile file(":/Styles/styles/darkStyle.qss");
    if(file.open(QFile::ReadOnly)) {
       QString DarkStyle = QLatin1String(file.readAll());
       qApp->setStyleSheet(DarkStyle);
    }
    

    But.. Within the QT Designer, the default fusion light is used.. Which won´t help me, cause i redesigned all lists, tree Views and Panels, to fit a specific style.

    How can i change the QT Designer Default Stylesheet, to use my dark one?

    JonBJ 1 Reply Last reply
    0
    • BDC_PatrickB BDC_Patrick

      Hi there..

      I created a new qss for my ui, that represents a dark styled Windows fusion. It´s working when testing the project and loading the stylesheet with

      QFile file(":/Styles/styles/darkStyle.qss");
      if(file.open(QFile::ReadOnly)) {
         QString DarkStyle = QLatin1String(file.readAll());
         qApp->setStyleSheet(DarkStyle);
      }
      

      But.. Within the QT Designer, the default fusion light is used.. Which won´t help me, cause i redesigned all lists, tree Views and Panels, to fit a specific style.

      How can i change the QT Designer Default Stylesheet, to use my dark one?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @BDC_Patrick
      https://stackoverflow.com/questions/30120161/qt-creator-how-to-set-a-application-wide-style-sheet-that-can-be-seen-in-qtdesi

      1 Reply Last reply
      2

      • Login

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