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. Small gap in Qt documentation
Forum Updated to NodeBB v4.3 + New Features

Small gap in Qt documentation

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 373 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.
  • Z Offline
    Z Offline
    zonman
    wrote on last edited by
    #1

    We have QMenu class, which inherits QWidget. QWidget has method addAction, that accepts QAction like parameter. There is this method in "List of all members, including inherited members", but not in the same list in QMenu.
    method - addAction(QAction * )

    JonBJ 1 Reply Last reply
    1
    • Z zonman

      We have QMenu class, which inherits QWidget. QWidget has method addAction, that accepts QAction like parameter. There is this method in "List of all members, including inherited members", but not in the same list in QMenu.
      method - addAction(QAction * )

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

      @zonman
      It looks like you are correct. You would have to raise this as a Qt bug (a few years ago I raised one similar and they fixed it, I think they do something to auto-generate this list and there are some inheritance glitches). But first have you verified QMenu::addAction(QAction * ) definitely works, just in case they have done something to "hide it" in the QMenu class?

      kkoehneK 1 Reply Last reply
      1
      • JonBJ JonB

        @zonman
        It looks like you are correct. You would have to raise this as a Qt bug (a few years ago I raised one similar and they fixed it, I think they do something to auto-generate this list and there are some inheritance glitches). But first have you verified QMenu::addAction(QAction * ) definitely works, just in case they have done something to "hide it" in the QMenu class?

        kkoehneK Offline
        kkoehneK Offline
        kkoehne
        Moderators
        wrote on last edited by
        #3

        @JonB It's indeed a bug, fixed in Qt 6 documentation. Compare e.g.

        https://doc.qt.io/qt-6/qwidget-members.html

        I see the commit that fixed it didn't get merged into 5.15 though, probably because of conflicts :/ So given that 5.15 won't see many releases anymore, I don't think this will still be fixed.

        Director R&D, The Qt Company

        JonBJ Z 2 Replies Last reply
        3
        • kkoehneK kkoehne

          @JonB It's indeed a bug, fixed in Qt 6 documentation. Compare e.g.

          https://doc.qt.io/qt-6/qwidget-members.html

          I see the commit that fixed it didn't get merged into 5.15 though, probably because of conflicts :/ So given that 5.15 won't see many releases anymore, I don't think this will still be fixed.

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

          @kkoehne I didn't spot that OP's link was Qt5, I just used it...! :(

          1 Reply Last reply
          1
          • kkoehneK kkoehne

            @JonB It's indeed a bug, fixed in Qt 6 documentation. Compare e.g.

            https://doc.qt.io/qt-6/qwidget-members.html

            I see the commit that fixed it didn't get merged into 5.15 though, probably because of conflicts :/ So given that 5.15 won't see many releases anymore, I don't think this will still be fixed.

            Z Offline
            Z Offline
            zonman
            wrote on last edited by
            #5

            @kkoehne Yes, in QT 6.5 doc it is fixed. Thank you

            1 Reply Last reply
            0
            • Z zonman has marked this topic as solved on

            • Login

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