Color difference in same style sheet buttons after bash script editing
-
wrote on 14 Sept 2018, 07:04 last edited by aha_1980
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. -
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.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?
-
wrote on 14 Sept 2018, 08:22 last edited by
@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
-
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.
-
@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
wrote on 14 Sept 2018, 09:02 last edited by@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/5