'void QTimer::timeout()' is protected
-
I don't know why this error occurs when I try to deploy my project to my board(Qt version: Qt 4.8.7 (Qt-4.8.7-arm)).
although this same project works fine on Desktop (Qt version : Qt 5.9.5 in PATH (qt5)).Is this error because of Qt version? I think QTimer also supported to Qt 4.8.7
-
I don't know why this error occurs when I try to deploy my project to my board(Qt version: Qt 4.8.7 (Qt-4.8.7-arm)).
although this same project works fine on Desktop (Qt version : Qt 5.9.5 in PATH (qt5)).Is this error because of Qt version? I think QTimer also supported to Qt 4.8.7
-
@Mijaz You're using new connect() syntax which was introduced in Qt5. If you want to use Qt4 also then you have to use old syntaxt (the one with SIGNAL/SLOT macros).
-
Hi @Mijaz,
so is your problem solved? Then don't forget to mark this topic as SOLVED too. Thanks!
-
@Mijaz
Good luck with the porting.
Just as a note.
You did see the guides ?
https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5
https://doc.qt.io/qt-5/portingguide.html
https://www.kdab.com/porting-from-qt-4-to-qt-5/