Unsolved QT for Raspberry Pi: Display Issue
I'm developing an GUI application with QT on Raspberry Pi.
Below I have attached screenshot of Original GUI , through QT creator RUN command:
You can see Tags like Count, P.V. and S.V. and Time Stamp showing correctly.
But when I try to run this QT executable on Power ON, It shows like below:
In which Second is not showing Time Stamp and Tags also. Push Button pattern is also changed.
I have write this in /etc/profile, where QT_GPIO is QT executable.
Why I'm getting this difference in GUI???
QT creator: 3.2.1
QT 5.3.2 - GCC 4.9.2
Raspberry Pi have Raspbian Jessie version 8
@Deep-Kapadia How do you position all the graphical elements? Do you use layouts or do you place them manually?
@jsulm I have placed them manually.
Tags misplace issue solved by Layout.
But Push Button Pattern change issue still remains. You can see the difference in both screenshot Push Button background color an type is different.
@Deep-Kapadia Apparently you have two different themes depending on how you start your app. My guess is that you have two different Qt version on your device: one from the Raspbian and one which you installed by yourself?
@jsulm Okay... So is there any way to select a particular version to run QT executable?
To ensure it's that, you can use
LD_LIBRARY_PATHto ensure that the folder containing your custom version of Qt is searched first for dependencies resolution.
@SGaist Thanks for your reply.
Can you please suggest an example how to use LD_LIBRARY_PATH?