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

Clarify documentation for qRegisterMetaType()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.3
    • Core: Threads
    • None

    Description

      When creating queued connections with custom types as arguments then it is necessary to pass along a const reference of the custom object or pass it along by value, otherwise it will not be possible to make a copy of the object and the object cannot be safely delivered to another thread. This should be documented under qRegisterMetaType() to ensure only const references or value types are registered in such cases.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes