I'm very new to Qt. I want to start developing GUI Qt application in C++ on raspberry pi. I want to start this application in Kiosk mode on boot. I manage to do it, but I encounter the following problem:
When I start the compiled application on the desktop environment it looks fine:
However, the things are getting wired when I execute it on the terminal "sudo ./untitled" :
The same happens when I start X and within that X I start the application.
I have tried to start it without X using this guide https://wiki.qt.io/RaspberryPi2EGLFS
Nothing so far.
Maybe I need to start X session, in a very different way, including some libs?
sudo
so it is being run as user 'root'. Looks like the GUI settings for root need to be changed to use the same UI settings as the pi account has.