Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Dialog box doesn't have title bar, maximize button and close button
The program is compiled with Qt5 (FrameBuffer) whose dialog doesn’t have title bar, maximize button and close button. Also it doesn’t have an icon. All these worked fine on Qt 4 QWS. How to fix this on Qt5?
QMessageBox doesn’t have title bar, maximize button and close button either. That’s very inconvenient. I’m able to fix this via code on dialog created by myself, but I can’t control QMessageBox.
That's because QWS was a minimal windowing system. The plugin you are currently using is not. You would have to use something like e.g. wayland if you need window management without using X11.
I heard about wayland but couldn’t find detailed introduction about it. I googled it and found little information and some doesn’t work as expected. Are there some official data about QT5 with wayland?
@SGaist I want to learn how to integrate wayland to Qt5. Is there any guide about this?
Do you mean: build the QtWayland module ?
@SGaist Yes !
It's explained here
Halo_Hao last edited by Halo_Hao
I got error message after running git clone git://gitorious.org/qt/qtwayland.git:
[root@scdc 11]# git clone git://gitorious.org/qt/qtwayland.git
Initialized empty Git repository in /11/qtwayland/.git/
gitorious.org[0: 188.8.131.52]: errno=No route to host
gitorious.org[0: 2a02:c0:1014::1]: errno=Network is unreachable
fatal: unable to connect a socket (Network is unreachable)
I'm wondering whether there is other git address of qtwayland?
Should the module QtWayland can be built only when Qt5 supports OpenGl ES? How can I build QtWayland module based on Frame Buffer?
The target platform is x86:
root@linuxdevelopos:/11# cd qtwayland/
Info: creating cache file /11/qtwayland/.qmake.cache
Checking for wayland... no
Checking for xkbcommon... no
Checking for wayland_cursor... no
Checking for wayland_scanner... no
Checking for wayland_egl... no
Checking for egl... no
Checking for brcm_egl... no
Checking for glx... yes
Checking for xcomposite... no
Checking for drm_egl_server... no
Checking for libhybris_egl_server... no
Project WARNING: QtWayland requires Wayland 1.4.0 or higher, QtWayland will not be built
Project WARNING: No xkbcommon 0.2.0 or higher found, disabling support for it
Project WARNING: QtWayland requires wayland-scanner, QtWayland will not be built
Project WARNING: QtWayland requires wayland-cursor, QtWayland will not be built
Project MESSAGE: no wayland-egl support detected, cross-toolkit compatibility disabled
Did you install wayland first on your system ?
@SGaist The system I'm using is Ubuntu, and it doesn't install Wayland. I want to add Wayland to Linux Busybox built by myself, but I didn't add support of OpenGL to QT5 when I build it.
You'll have to build Wayland yourself