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. stylesheet ... better in QtCreator or in mainwindows code?

stylesheet ... better in QtCreator or in mainwindows code?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 363 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.
  • gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by
    #1

    Ultimately, I used to insert the element's stylesheet in QtCreator .... but is it a good habit for the performance of the application or is it better to insert the stylescheet into the mainwindows code?

    any suggest is appreciate.

    regards
    giorgio

    bkt

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

      Hi
      Inserting in Creator is also just code. (inside setupUI)
      There is no performance difference.

      However, it sometimes beneficial to set via code directly on
      the QApplication object so all windows are affected
      even if not child of main window.

      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