Solved Why my window no border(no close,minimize and maximum)
-
Dear All,
I make a cross-compiler environment on Linux to build RPi3.
It works fine, however, all project I build by cross-compiler has no border, no close, minimize and maximum.
But, if I compiler the same project on RPi3(debian, not cross-compiler), then the window is correct, as below:
It seems window manager is not working.
Or I use the wrong parameters when doing configuration ?./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$(which arm-linux-gnueabihf-gcc | sed 's/.\{3\}$//') -sysroot $RPIIMG -opensource -confirm-license -optimized-qmake -reduce-exports -release -no-qml-debug -make libs -make examples -prefix /usr/local/qt5pi -hostprefix $RPIQT
Please suggestion.
Thanks,
-
Hi and welcome to devnet,
You cross-compiled Qt for the OpenGL ES2 backend, this is one of the backends that work without any window manager.
If you want one you need to either use the xcb backend or the wayland backend.
-
Nice to know you.
Understood, I will try to apt-get wayland or xcb for RPi3 first.
I will reply the result later.Thanks,
-
@SGaist ,
I can run xcb successfully. Thanks.
But I have to run this command on the device :
./testapp -platform xcb
or it will still run default opengl.
Can I make xcb as default ?
-
You can set the
QT_QPA_PLATFORM
environment variable. -
It is working~ Thanks a lot.