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. How to create menus with design studio?
Forum Updated to NodeBB v4.3 + New Features

How to create menus with design studio?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 885 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by Tom asso
    #1

    Using qtdesignstudio 4.4.0. I'm unable to figure out how to create a simple menubar at window's top edge and to add menus to it. And how to add a context menu? I can't find anything about these in the Qt Design Studio Manual - such a basic UI component! Can someone help?
    Thanks!

    Pl45m4P 1 Reply Last reply
    0
    • Tom assoT Tom asso

      Using qtdesignstudio 4.4.0. I'm unable to figure out how to create a simple menubar at window's top edge and to add menus to it. And how to add a context menu? I can't find anything about these in the Qt Design Studio Manual - such a basic UI component! Can someone help?
      Thanks!

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Tom-asso said in How to create menus with design studio?:

      And how to add a context menu? I can't find anything about these in the Qt Design Studio Manual - such a basic UI component! Can someone help?

      To create simply Desktop applications, QtDesign Studio is the wrong tool.
      Better use QtCreator instead....and if you like, its integrated UI Designer.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      Tom assoT 2 Replies Last reply
      1
      • Pl45m4P Pl45m4

        @Tom-asso said in How to create menus with design studio?:

        And how to add a context menu? I can't find anything about these in the Qt Design Studio Manual - such a basic UI component! Can someone help?

        To create simply Desktop applications, QtDesign Studio is the wrong tool.
        Better use QtCreator instead....and if you like, its integrated UI Designer.

        Tom assoT Offline
        Tom assoT Offline
        Tom asso
        wrote on last edited by Tom asso
        #3

        @Pl45m4 - I want my app GUI to be QML-based, to allow eventual port to mobile devices. I've found qtcreator's ui-designer for QML to be unfortunately quite buggy with frequent crashes.
        If QML is intended for wide portability between desktop and mobile apps, I wonder why Design Studio does not support menus???
        Thanks!

        1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @Tom-asso said in How to create menus with design studio?:

          And how to add a context menu? I can't find anything about these in the Qt Design Studio Manual - such a basic UI component! Can someone help?

          To create simply Desktop applications, QtDesign Studio is the wrong tool.
          Better use QtCreator instead....and if you like, its integrated UI Designer.

          Tom assoT Offline
          Tom assoT Offline
          Tom asso
          wrote on last edited by Tom asso
          #4

          @Pl45m4 - I haven't figured out how to add menus in qtcreator either. Specifically for MenuBar; in my previous QtQuick apps I've manually edited the QML to instantiate ApplicationWindow, and then a MenuBar property. But the qtcreator included with Qt 6.7.0 does not support ApplicationWindow in Design view:

          import QtQuick.Controls 2.3
          import QtQuick.Window 2.1
          
          ApplicationWindow {
              width: 640
              height: 480
              visible: true
              title: qsTr("Hello World")
          }
          

          The above generates this error message when I switch to qtcreator Design view:

          Line 5: This type (ApplicationWindow) is not supported as a root element in Qt Design Studio (M208).
          

          If QML just instantiates Window instead of ApplicationWindow, I see no way to add a MenuBar in Design view.

          What am I missing here?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sofiakim
            wrote on last edited by
            #5

            To create menus with Design Studio, you can typically use the software's built-in tools or widgets for creating navigation bars or menus. These tools often allow you to customize the appearance and behavior of the menus according to your design preferences and functionality requirements.

            Tom assoT 1 Reply Last reply
            0
            • S Sofiakim

              To create menus with Design Studio, you can typically use the software's built-in tools or widgets for creating navigation bars or menus. These tools often allow you to customize the appearance and behavior of the menus according to your design preferences and functionality requirements.

              Tom assoT Offline
              Tom assoT Offline
              Tom asso
              wrote on last edited by
              #6

              @Sofiakim - Note that I am using QtQuick/QML (not Qt Widgets) I assume that Design Studio as well as qtcreator would provide tools to create menu bars and menus, but I cannot for the life of me find those tools in qtdesignstudio (4.4.0) or qtcreator (12.0.2, 13.0.0). Can you please tell me specifically where to find these menu-creation tools? Thanks!

              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