Issue #29 new
M. Gronle
created an issue

Some methods are changed in Qt5. One example ist the signature of the connectNotify and disconnectNotify method. These methods need to be checked. For more info see http://blog.qt.digia.com/blog/2012/06/22/changes-to-the-meta-object-system-in-qt-5/

Comments (2)

  1. M. Gronle reporter
    • connect / disconnect with new Qt5 style:
    Counter a, b;
    QObject::connect(&a, &Counter::valueChanged,
                     &b, &Counter::setValue);
    
    a.setValue(12);     // a.value() == 12, b.value() == 12
    b.setValue(48);     // a.value() == 12, b.value() == 48
    

    (see http://doc.qt.io/qt-5/signalsandslots.html)

    • .toLatin1().data() --> .toLatin1().constData(), if string should not be changed
  2. Log in to comment