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. Color difference in same style sheet buttons after bash script editing
Forum Updated to NodeBB v4.3 + New Features

Color difference in same style sheet buttons after bash script editing

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 580 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.
  • qt_ankit_developerQ Offline
    qt_ankit_developerQ Offline
    qt_ankit_developer
    wrote on last edited by aha_1980
    #1

    hello,
    I am using qt creator on Debian(Linux) platform with raspberry pi 3b. I have created a GUI which have many push button. i have release my project then i have run the execution file then my code run perfectly with same color as i have edited in style sheet. but when i write auto script(bash script) to run my execution file on startup of system every time i have successfully write auto script and its working well but their is color difference in GUI colors after automatic start of execution files.
    so please help me regarding this problem.

    aha_1980A 1 Reply Last reply
    0
    • qt_ankit_developerQ qt_ankit_developer

      hello,
      I am using qt creator on Debian(Linux) platform with raspberry pi 3b. I have created a GUI which have many push button. i have release my project then i have run the execution file then my code run perfectly with same color as i have edited in style sheet. but when i write auto script(bash script) to run my execution file on startup of system every time i have successfully write auto script and its working well but their is color difference in GUI colors after automatic start of execution files.
      so please help me regarding this problem.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @qt_ankit_developer,

      I have read your post multiple times, but cannot really understand what your problem is.

      Do you modify the style sheet from your script? Or do you say your style sheet is not used when you run the program from your script?

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • qt_ankit_developerQ Offline
        qt_ankit_developerQ Offline
        qt_ankit_developer
        wrote on last edited by
        #3

        @aha_1980 said in Color difference in same style sheet buttons after bash script editing:

        ogram from your

        I have write the bash script to run execution file automatic when the system restart color diffrence is observed in gui than manual start of application

        JonBJ 1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @qt_ankit_developer

          That sounds as if your style sheet could not be loaded then. Sorry, I have no experience in this area.

          I can just hint you to make sure the style sheet can be found when starting from your script.

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • qt_ankit_developerQ qt_ankit_developer

            @aha_1980 said in Color difference in same style sheet buttons after bash script editing:

            ogram from your

            I have write the bash script to run execution file automatic when the system restart color diffrence is observed in gui than manual start of application

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

            @qt_ankit_developer
            I'm sure @aha_1980 is correct when he guesses:

            I can just hint you to make sure the style sheet can be found when starting from your script.

            So, how exactly does your app locate whatever stylesheet you want it to use at runtime? If, say, it's via a relative path then the app's current directory will be different when run "from system restart" compared to when you "manual start" it....

            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