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. -
Hi,
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.
-
Do you mean you went to both wayland with Qt5 and the Wiki entry ?
-
Do you mean: build the QtWayland module ?
-
@SGaist
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: 109.107.38.78]: 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)
[root@scdc 11]#
I'm wondering whether there is other git address of qtwayland? -
What was on gitorious is now on code.qt.io
-
@SGaist
root@linuxdevelopos:/11# cd qtwayland/
root@linuxdevelopos:/11/qtwayland# /LinuxProject/ProjectSourceCode/Qt-EmbAndDesktop/x86_release/bin/qmake
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 ?
-
You'll have to build Wayland yourself