Run Qt widget app on linux with no GUI
-
Output:
872 tty7 Ssl+ 0:01 /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch 1692 ? S 0:00 /usr/bin/xprop -root -spy 1722 pts/0 S+ 0:00 grep -i /usr/bin/X
Yes when I switch to text mode with ctrl alt F1 and run the app I get "aborted" in return.
-
@Bremenpl Tt says X server is using tty7 (it is by default) so you can run applications only on tty7 and not tty1 (which you did by pressing CTRL+ALT+F1 and launching the app)
Now the question is what is running at tty7 ? What does it display when you press CTRL+ALT+F7 ? Since you have disabled GUI is it blank ?
-
You can try to run using minimal or offscreen platform-plugin. http://doc.qt.io/qt-5/qguiapplication.html#platformName-prop .
-
-
No, no thats not the case. I Need full GUI Widget functionality with user interaction. I Just want the whole operating system GUI background to be gone. So the user can only use the QT app when using a the PC. When PC starts there should be just command line without gui and after a while script would turn on my Qt application (thats graphical and needs user interaction).
I Recall in Qt embedded I had to add -qws parameter to do this, but there was no GUI at all from the system. The app itself had GUI.
-
Yes thats exacly what I need, and by disabling fancy stuff I wanted to disable whole OS gui. tty7 is default for now. So the scenario is like this:
- PC starts with only console mode
- Script turns on the QT GUI application in full screen mode.
Would this be possible: http://doc.qt.io/qt-5/embedded-linux.html#linuxfb ?
-
but the point is I dont know how to turn the app on in console mode in any OS
As said earlier boot to default tty where X is running, launch the app in fullscreen mode through startup scripts.
Or you can try the linuxfb mode so that you own the framebuffer but then you get no window manager functionalities for eg. alt-tab switch or window decorations -
So in short words, there is no way in linux to hide the whole OS GUI but still be able to run selected apps with GUI?
Yes there is. The most easiest is to use the minimal OS so customizations becomes easy. Donot install anything else but a bare minimal window manager so that the user gets a feel that only your application is running on top.