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. Using Qt stylesheet and performance issue

Using Qt stylesheet and performance issue

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.6k 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.
  • V Offline
    V Offline
    vhptt89
    wrote on last edited by
    #1

    I have an GUI form application, develop on open suse and using QSS.
    I put all stylesheet code into only one .qss file called: main.qss and load it into qApp.
    qApp->setStyleSheet(s);
    Problem is: perfomance really bad.
    If I don't use stylesheet, everything goes fine but after I setStyleSheet, application run very slow (Widget appearance slowly).
    How can I fix this ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      messi
      wrote on last edited by
      #2

      Hi vhptt89

      I realized a project under OpenSuse and Qt4 Embedded with different stylesheets.
      I used the stylesheets technik a lot and never encountered any problems.

      You have to give us more information to analyze your problem.
      I can only guess that you have problems in the implementation of your stylesheet itself.
      What you can do if don't like to provide the stylesheet:

      Start to disable sections of your stylesheet to find out where the problem lies.

      Good luck.

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        Or might it be the GUI itself? Updating the GUI is a time consuming operation, so only do this when data is changed. Use the signal/slot stuff for that.
        Without any code supplied we are unable to help you.
        happy coding!

        Greetz, Jeroen

        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