Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109060

QAction() handling of text does not seem correctly documented

    XMLWordPrintable

Details

    • f546f3700 (dev), b00e93b1d (tqtc/lts-6.2), c5544de39 (6.4)

    Description

      Constructors have this text:
      The action uses a stripped version of text (e.g. "&Menu Option..." becomes "Menu Option") as descriptive text for tool buttons. You can override this by setting a specific description with setText().
      https://doc.qt.io/qt-6/qaction.html#QAction-2

      which seems to imply text is treated somehow differently compared to setText(), but actually it does not do anything special to it as seen from code. Both simply assign it as is:
      https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qaction.cpp#n249
      https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qaction.cpp#n607

      Attachments

        For Gerrit Dashboard: QTBUG-109060
        # Subject Branch Project Status CR V

        Activity

          People

            vhilshei Volker Hilsheimer
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes