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 my window no border(no close,minimize and maximum)
Qt 6.11 is out! See what's new in the release blog

Why my window no border(no close,minimize and maximum)

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 2.2k Views 2 Watching
  • 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.
  • S Offline
    S Offline
    saito
    wrote on last edited by saito
    #1

    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:
    Picture

    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,

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

      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.

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

      S 1 Reply Last reply
      3
      • SGaistS SGaist

        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.

        S Offline
        S Offline
        saito
        wrote on last edited by
        #3

        @SGaist

        Nice to know you.

        Understood, I will try to apt-get wayland or xcb for RPi3 first.
        I will reply the result later.

        Thanks,

        1 Reply Last reply
        0
        • S Offline
          S Offline
          saito
          wrote on last edited by
          #4

          @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 ?

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

            You can set the QT_QPA_PLATFORM environment variable.

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

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              You can set the QT_QPA_PLATFORM environment variable.

              S Offline
              S Offline
              saito
              wrote on last edited by
              #6

              @SGaist

              It is working~ Thanks a lot.

              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