Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Custom Widget with input from ui like menubar
Forum Updated to NodeBB v4.3 + New Features

Custom Widget with input from ui like menubar

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 2 Posters 2.6k 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.
  • T Offline
    T Offline
    tanmay2227
    wrote on last edited by
    #1

    hey i am writing a custom widget which is like the menubar and need it to be as accesiible as the native menubar is . how do i take input from ui. is there any example available to make a custom widget from qmenubar

    Tanmay Priyadarshi

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tanmay2227
      wrote on last edited by
      #2

      please someone help me on this

      Tanmay Priyadarshi

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

        Hi,

        What do you want to achieve ? Isn't deriving from QMenuBar a solution ?

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

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tanmay2227
          wrote on last edited by
          #4

          yes i am working with that only but i want it to work like the same way in qtdesigner yoo as it normally does

          like just typing the name and a menu being formed .

          i was thinking of just overriding the method addMenu(Qstring)
          but the problem is how do i relect all this to the ui especially yhe drop down menus will and i want to also add functions other than add separator to the ui interface. i am new to all this so can you please help

          thank you

          Tanmay Priyadarshi

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

            Do you want to do that from a running application ?

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

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tanmay2227
              wrote on last edited by
              #6

              no in the designer only like the windows menubar works . the type here function and the add separator function ,plus i want the user to be able to add some more of my custom items , at the ui design stage

              Tanmay Priyadarshi

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

                What custom items are you thinking of ? A menu bar should only contain menu entries else you start breaking user interface guidelines or maybe aiming at the wrong widget

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

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tanmay2227
                  wrote on last edited by
                  #8

                  no actually i was wanting to add menu items only but in not the standard pattern but like the megamenu that we see on webpages . i have been able to build a megamanu from code but i have to use it in many applicatioon so i want to transform it into a pludin in designer so that the usage becomes simpler

                  Tanmay Priyadarshi

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tanmay2227
                    wrote on last edited by
                    #9

                    i think the first step will be to replace the default menu by my menu automatically . can you suggest on how to do this . i think this will be neccessary as mainwindow only supports one menubar

                    Tanmay Priyadarshi

                    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