Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why does QMessageBox not show a border?
QtWS25 Last Chance

Why does QMessageBox not show a border?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 502 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DL5EU
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      2
      • SGaistS SGaist

        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.

        D Offline
        D Offline
        DL5EU
        wrote on last edited by
        #3

        @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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          1
          • SGaistS SGaist

            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.

            D Offline
            D Offline
            DL5EU
            wrote on last edited by
            #5

            @SGaist Thank you for the hint.

            Kind regards,

            Ralf

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved