Why does QMessageBox not show a border?
-
Dear all,
I am developing a Qt application for my Raspberry Pi (Qt 5.15.0, no X window system used). The application is based on a QMainWindow that has a QStackedLayout with the other windows to display. The main window fills the whole screen.
When I want to display a message with QMessageBox, the message is shown, covers a part of the screen as expected, but shows neither border nor title bar. The same happens in other cases (no border). Is this normal? If yes, could somebody please explain me why?
Thank you very much.
Kind regards,
Ralf
-
Hi,
Since you mention that there's no X server involved, I am guessing that you are using a backend like eglfs it maybe linuxfb. In any case, it means that there's no window manager involved and thus no decoration. If you want a window manager you can also consider using wayland.
-
@SGaist Yes, you are right. I am using EGLFS/KMS.
If the decoration is done by the window manager, this means that I will have to draw my on border around the message box.
My intention was to keep it simple (no window manager) but I have got the impression that I make it more complicated instead...
Kind regards,
Ralf
-
If you do not want to have a full X11 system then you should take a look at wayland. There's a dedicated Qt module for it.