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 Updated to NodeBB v4.3 + New Features

Problem with "moc_*.cpp"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 1.2k Views 2 Watching
  • 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 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?

    raven-worxR 1 Reply Last reply
    0
    • A Akthem17

      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?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          • Login

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