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. qmdiarea menubar
Forum Updated to NodeBB v4.3 + New Features

qmdiarea menubar

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.0k 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.
  • U Offline
    U Offline
    user4592357
    wrote on last edited by
    #1

    how can i add a menu bar for qmdiarea?

    jsulmJ 1 Reply Last reply
    0
    • U user4592357

      how can i add a menu bar for qmdiarea?

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

      @user4592357 Why do you need it there? Simply add it to your main window as usual.

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

      U 1 Reply Last reply
      -2
      • jsulmJ jsulm

        @user4592357 Why do you need it there? Simply add it to your main window as usual.

        U Offline
        U Offline
        user4592357
        wrote on last edited by
        #3

        @jsulm
        i have a main window, and i want the mdi area to be another window-like widget

        1 Reply Last reply
        0
        • U Offline
          U Offline
          user4592357
          wrote on last edited by
          #4

          is it okay to open another main window from my main window?

          mrjjM 1 Reply Last reply
          0
          • U user4592357

            is it okay to open another main window from my main window?

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

            @user4592357
            Yes, you can use as many mainwindows as you like.
            (you can even insert QMainWindow as a widget )

            So even its most normal to have one MainWindow, you can easy have as many you like.

            But do note that any widget can be a window.
            (if you dont give it a parent when you new it, its a window)
            like
            QLabel *lab=new QLabel(); // no parent
            lab->show();// will actually become a window.

            U 1 Reply Last reply
            0
            • mrjjM mrjj

              @user4592357
              Yes, you can use as many mainwindows as you like.
              (you can even insert QMainWindow as a widget )

              So even its most normal to have one MainWindow, you can easy have as many you like.

              But do note that any widget can be a window.
              (if you dont give it a parent when you new it, its a window)
              like
              QLabel *lab=new QLabel(); // no parent
              lab->show();// will actually become a window.

              U Offline
              U Offline
              user4592357
              wrote on last edited by
              #6

              @mrjj
              yes, but i guess it is only logically a window, because i can't take its menuBar() for example

              mrjjM 1 Reply Last reply
              0
              • U user4592357

                @mrjj
                yes, but i guess it is only logically a window, because i can't take its menuBar() for example

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

                @user4592357
                hi
                no its a window. But only MainWindow have QMenubar and
                QStatusbar and docks . Except docking, QWidget as window can also use menu etc. But if you need this, just use QMainWindow.

                1 Reply Last reply
                2

                • Login

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