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. Menu bar not show
Forum Updated to NodeBB v4.3 + New Features

Menu bar not show

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 2.9k 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.
  • A Offline
    A Offline
    ARASHz4
    wrote on last edited by
    #1

    hi
    i have QMainWindow with a menu bar
    when i hide MainWindow, menu bar not reappear after show MainWindow again.
    i have this problem in ubuntu & i'm use Qt 5.8
    how can i fix this?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Is it shown for the first time ? In ubuntu it is not shown along with MainWindow. It will be at the top of your screen. Just try selecting your MainWindow using the Mouse and see if menu bar appears in the top of your screen. If not just try calling this->menuBar().setVisible(true)

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      A 1 Reply Last reply
      7
      • dheerendraD dheerendra

        Is it shown for the first time ? In ubuntu it is not shown along with MainWindow. It will be at the top of your screen. Just try selecting your MainWindow using the Mouse and see if menu bar appears in the top of your screen. If not just try calling this->menuBar().setVisible(true)

        A Offline
        A Offline
        ARASHz4
        wrote on last edited by ARASHz4
        #3

        @dheerendra yes shown in first time
        i test :
        this->menuBar().setVisible(true)
        menuBar()->show();
        but don't work

        jsulmJ 1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          Can you paste your sample code here ? We can check about this.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          7
          • A ARASHz4

            @dheerendra yes shown in first time
            i test :
            this->menuBar().setVisible(true)
            menuBar()->show();
            but don't work

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

            @ARASHz4 Isn't it the standard behaviour on Ubuntu? Did you try to move the mouse to the top of the screen while your app is in foreground?

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

            mrjjM A 2 Replies Last reply
            2
            • jsulmJ jsulm

              @ARASHz4 Isn't it the standard behaviour on Ubuntu? Did you try to move the mouse to the top of the screen while your app is in foreground?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              to add to @jsulm
              Try disable that feature by setting it back to normal
              http://askubuntu.com/questions/10481/how-do-i-enable-or-disable-the-global-application-menu
              alt text

              1 Reply Last reply
              3
              • jsulmJ jsulm

                @ARASHz4 Isn't it the standard behaviour on Ubuntu? Did you try to move the mouse to the top of the screen while your app is in foreground?

                A Offline
                A Offline
                ARASHz4
                wrote on last edited by
                #7

                @jsulm yes i move the mouse to the top of the screen

                jsulmJ 1 Reply Last reply
                0
                • A ARASHz4

                  @jsulm yes i move the mouse to the top of the screen

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

                  @ARASHz4 Could be a bug, you should check https://bugreports.qt.io/secure/Dashboard.jspa

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

                  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