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. Qt5.15.14 does not display the title bar on the linuxfb platform
Forum Updated to NodeBB v4.3 + New Features

Qt5.15.14 does not display the title bar on the linuxfb platform

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 469 Views 1 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.
  • L Offline
    L Offline
    Leyu
    wrote on last edited by
    #1

    Hi,
    Can anyone please help me to fix this problem.
    When using Qt 5.15.14, the title bar properties were set, but the title bar does not display when running on the LinuxFB platform.

    The code for the settings is as follows.

    this->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);

    jsulmJ JoeCFDJ 2 Replies Last reply
    0
    • L Leyu

      Hi,
      Can anyone please help me to fix this problem.
      When using Qt 5.15.14, the title bar properties were set, but the title bar does not display when running on the LinuxFB platform.

      The code for the settings is as follows.

      this->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Leyu You are overwriting flags, you should instead add them to already set flags (windowFlags())

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Leyu You are overwriting flags, you should instead add them to already set flags (windowFlags())

        L Offline
        L Offline
        Leyu
        wrote on last edited by
        #3

        @jsulm It still doesn't show up after changing the code, I suspect it has something to do with the linuxfb platform. Is there any other better way.

        The code change is as follows.

        this->setWindowFlags(this->windowFlags() | Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);

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

          Hi,

          Unless you are running a window manager on top of LinuxFB, there will be no window decoration.

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

          L 1 Reply Last reply
          1
          • SGaistS SGaist

            Hi,

            Unless you are running a window manager on top of LinuxFB, there will be no window decoration.

            L Offline
            L Offline
            Leyu
            wrote on last edited by
            #5

            @SGaist Thank you. Is there any example that can be referred to, please?

            jsulmJ 1 Reply Last reply
            0
            • L Leyu

              @SGaist Thank you. Is there any example that can be referred to, please?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Leyu Example for what?
              Do you run a window manager or not?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Leyu Example for what?
                Do you run a window manager or not?

                L Offline
                L Offline
                Leyu
                wrote on last edited by
                #7

                @jsulm Sorry, I've just come into contact with Qt for a short time, so I don't know the window manager very well.

                jsulmJ 1 Reply Last reply
                0
                • L Leyu

                  @jsulm Sorry, I've just come into contact with Qt for a short time, so I don't know the window manager very well.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Leyu It has nothing to do with Qt. It is a Linux thing.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • L Leyu

                    Hi,
                    Can anyone please help me to fix this problem.
                    When using Qt 5.15.14, the title bar properties were set, but the title bar does not display when running on the LinuxFB platform.

                    The code for the settings is as follows.

                    this->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by
                    #9

                    @Leyu the Linux framebuffer platform doesn't natively support window decorations such as title bars. I guess it is not hard to create your own titlebar.

                    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