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

Add QImplicitlySharedData to complement QClass

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P5: Not important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Eventually we'll be able to type:
      QClass MyObject
      {

      slots:
          someSlot();
          //etc
      };

       

      To complement that, we should have QImplicitlySharedData (or something with a shorter name). ex:
      QImplicitlySharedData Employee
      {
          int id;
          QString name;
      };

       

      In case it isn't obvious, that then generates the stuff necessary for Implicit Sharing as seen here: http://doc.qt.io/qt-5/qshareddatapointer.html#details

        Attachments

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

          Activity

            People

            • Assignee:
              cnn Qt Core & Network
              Reporter:
              d3fault d3fault
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes