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. QActions without QMenubar
Qt 6.11 is out! See what's new in the release blog

QActions without QMenubar

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 528 Views
  • 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.
  • V Offline
    V Offline
    VJain85
    wrote on last edited by
    #1

    Hi everyone, can we add QActions without a QMenuBar and QTitleBar directly on a QWidget?

    JonBJ 1 Reply Last reply
    0
    • BondrusiekB Offline
      BondrusiekB Offline
      Bondrusiek
      wrote on last edited by
      #2

      Hi,
      It is possible to add Action. You can use QWidget's method void addAction(QAction* action)
      https://doc.qt.io/qt-5/qwidget.html#addAction

      1 Reply Last reply
      4
      • V VJain85

        Hi everyone, can we add QActions without a QMenuBar and QTitleBar directly on a QWidget?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @VJain85
        As @Bondrusiek has written. Which is why it's a good idea to go to the QWidget doc page and search for QAction, or go to the QAction doc page and search for QWidget! :)

        1 Reply Last reply
        1
        • V Offline
          V Offline
          VJain85
          wrote on last edited by
          #4

          okay thanks for your help.

          1 Reply Last reply
          0
          • AlbatorA Offline
            AlbatorA Offline
            Albator
            wrote on last edited by
            #5
            This post is deleted!
            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