Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 'void QTimer::timeout()' is protected
QtWS25 Last Chance

'void QTimer::timeout()' is protected

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 992 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mijaz
    wrote on 18 Oct 2019, 04:12 last edited by
    #1

    Selection_015.png
    Selection_016.png

    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

    J 1 Reply Last reply 18 Oct 2019, 04:30
    0
    • M Mijaz
      18 Oct 2019, 04:12

      Selection_015.png
      Selection_016.png

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 18 Oct 2019, 04:30 last edited by
      #2

      @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).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 18 Oct 2019, 11:26
      5
      • J jsulm
        18 Oct 2019, 04:30

        @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).

        M Offline
        M Offline
        Mijaz
        wrote on 18 Oct 2019, 11:26 last edited by
        #3

        @jsulm Thanks

        A 1 Reply Last reply 18 Oct 2019, 11:46
        1
        • M Mijaz
          18 Oct 2019, 11:26

          @jsulm Thanks

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 18 Oct 2019, 11:46 last edited by
          #4

          Hi @Mijaz,

          so is your problem solved? Then don't forget to mark this topic as SOLVED too. Thanks!

          Qt has to stay free or it will die.

          M 1 Reply Last reply 18 Oct 2019, 12:00
          0
          • A aha_1980
            18 Oct 2019, 11:46

            Hi @Mijaz,

            so is your problem solved? Then don't forget to mark this topic as SOLVED too. Thanks!

            M Offline
            M Offline
            Mijaz
            wrote on 18 Oct 2019, 12:00 last edited by
            #5

            @aha_1980 I am changing my source from qt4 to qt5.

            M 1 Reply Last reply 18 Oct 2019, 13:57
            0
            • M Mijaz
              18 Oct 2019, 12:00

              @aha_1980 I am changing my source from qt4 to qt5.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 18 Oct 2019, 13:57 last edited by
              #6

              @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/

              1 Reply Last reply
              2

              6/6

              18 Oct 2019, 13:57

              • Login

              • Login or register to search.
              6 out of 6
              • First post
                6/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved