Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Ignore/disable all stylesheet on run time
QtWS25 Last Chance

Ignore/disable all stylesheet on run time

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 645 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.
  • nima.latifiN Offline
    nima.latifiN Offline
    nima.latifi
    wrote on last edited by
    #1

    Hi guys,
    I work in an embedded platform which only supports "linuxfb" platform, so I don't have access to QML.
    In order to decorate my GUI appearance I have used many style sheets, also I tried to call setStyleSheet functions in start-up.
    By the way I think heavy use of style-sheets makes my program run slowly, and the GUI don't response as well.
    Is there any way to run my program without style-sheets ( ignore styles on run time) without removing any style-sheets from the code?

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

      Hi
      As far as i know, no, there is not. .
      Never saw any ignore stylesheets option.

      Often one uses 1 stylesheet to control it all, and set it on
      QApplication. That makes it much easier to control
      than having stylesheets all over the app.

      However, it sounds that its a little late for doing it that way ?

      nima.latifiN 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        As far as i know, no, there is not. .
        Never saw any ignore stylesheets option.

        Often one uses 1 stylesheet to control it all, and set it on
        QApplication. That makes it much easier to control
        than having stylesheets all over the app.

        However, it sounds that its a little late for doing it that way ?

        nima.latifiN Offline
        nima.latifiN Offline
        nima.latifi
        wrote on last edited by
        #3

        @mrjj thanks. i put all styles in a function and call it on constructor , so i can comment it whenever i don't need it.

        mrjjM 1 Reply Last reply
        0
        • nima.latifiN nima.latifi

          @mrjj thanks. i put all styles in a function and call it on constructor , so i can comment it whenever i don't need it.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @nima-latifi
          Ok that should also work just fine.

          I hope its not your stylesheet that is heavy :)

          nima.latifiN 1 Reply Last reply
          0
          • mrjjM mrjj

            @nima-latifi
            Ok that should also work just fine.

            I hope its not your stylesheet that is heavy :)

            nima.latifiN Offline
            nima.latifiN Offline
            nima.latifi
            wrote on last edited by
            #5

            @mrjj It is unbelievable, heavy use of style-sheets makes my program run very slowly. i think "linuxfb" repaint all styles in each frame and make it slowly. now i am removing all stylesheets and re design program. :-(

            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