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

Qt's Property System->A Simple Example->example code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.1
    • 4.5.2
    • Documentation
    • None
    • Any
    • 52ecb299691defc3be6d202c7fab71bf865c710a, cd0772335cc9bcedd582cacc834bf4609ca650b0

    Description

      Qt's Property System
      A Simple Example
      MyClass *myinstance = new MyClass;
      QObject *object = myinstance;

      myinstance->setPriority(MyClass::VeryHigh);
      // "VeryHigh" is not const char*, this is enum Priority,
      object->setProperty("priority", "VeryHigh");
      // and must be
      object->setProperty("priority", (int)MyClass::VeryHigh);

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            dimon Titkov Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes