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 573 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.
  • Q Offline
    Q Offline
    qt_ankit_developer
    wrote on 14 Sept 2018, 07:04 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.

    A 1 Reply Last reply 14 Sept 2018, 07:38
    0
    • Q qt_ankit_developer
      14 Sept 2018, 07:04

      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.

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 14 Sept 2018, 07:38 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
      • Q Offline
        Q Offline
        qt_ankit_developer
        wrote on 14 Sept 2018, 08:22 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

        J 1 Reply Last reply 14 Sept 2018, 09:02
        0
        • A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 14 Sept 2018, 08:25 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
          • Q qt_ankit_developer
            14 Sept 2018, 08:22

            @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

            J Offline
            J Offline
            JonB
            wrote on 14 Sept 2018, 09:02 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

            1/5

            14 Sept 2018, 07:04

            • Login

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