Qt5 changes

Issue #29 closed
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 (4)

  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. Bernd Bertschinger

    We are now at Release 4.2. and QT5 is well integrated. I do assume that this ticket can now be seen as resolved.

  3. Log in to comment