Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem with "moc_*.cpp"
Forum Update on Monday, May 27th 2025

Problem with "moc_*.cpp"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 1.2k 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.
  • A Offline
    A Offline
    Akthem17
    wrote on 13 Nov 2017, 15:23 last edited by
    #1

    Hi guys, it's my first question hope you help me ! i made some changes to my code,now i have some problems with this file "moc_*.cpp" it took the new changes, i need the old version ....................
    i can't do any more step back (ctrl-Z), (i'm a beginner) how to fix that?

    R 1 Reply Last reply 13 Nov 2017, 15:32
    0
    • A Akthem17
      13 Nov 2017, 15:23

      Hi guys, it's my first question hope you help me ! i made some changes to my code,now i have some problems with this file "moc_*.cpp" it took the new changes, i need the old version ....................
      i can't do any more step back (ctrl-Z), (i'm a beginner) how to fix that?

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 13 Nov 2017, 15:32 last edited by
      #2

      @Akthem17

      1. rerun qmake
      2. rebuild (clean + build)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Akthem17
        wrote on 13 Nov 2017, 20:56 last edited by
        #3

        @raven-worx
        #elif Q_MOC_OUTPUT_REVISION != 67
        #error "This file was generated using the moc from 5.6.2. It"
        #error "cannot be used with the include files from this version of Qt."
        #error "(The moc has changed too much.)"

        still not working.... any other solution please?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Nov 2017, 21:00 last edited by SGaist
          #4

          Hi,

          Delete the moc files and redo the procedure.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          1/4

          13 Nov 2017, 15:23

          • Login

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