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

Deprecate/Remove "emit" macro definition

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15
    • Core: Object Model
    • None

    Description

      Consider making the emit macro definition in qobjectdefs.h opt in, and removing it's use from the examples and code snippets in the documentation, replacing it with a [[qt::emit]] C++ attribute.

      C++ 20 will most likely contain new classes with emit() member functions: wg21.link/P0053 . This means that including such C++ standard headers after qobjectdefs.h might lead to hard to understand compiler errors.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes