Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to undo the changes in the mock file?

How to undo the changes in the mock file?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 925 Views 1 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.
  • K Offline
    K Offline
    kishore_hemmady
    wrote on last edited by
    #1

    I was trying something,I got a message saying your moc file has changed I saved it.Now I'm getting errors.How to fix this?I want to undo the save in the moc file

    raven-worxR 1 Reply Last reply
    0
    • K kishore_hemmady

      I was trying something,I got a message saying your moc file has changed I saved it.Now I'm getting errors.How to fix this?I want to undo the save in the moc file

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @kishore_hemmady said in How to undo the changes in the mock file?:

      I want to undo the save in the moc file

      simply delete the file. It will be recreated automatically during the next build. Thus you never should edit a moc file, since it is created automatically/dynamically

      --- 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
      3
      • K Offline
        K Offline
        kishore_hemmady
        wrote on last edited by kishore_hemmady
        #3

        I deleted the moc files.Its again creating those files only.Im getting this error
        /home/kishor/build-MARS-GUI-Desktop_Qt_5_9_3_GCC_64bit-Debug/moc_mainwindow.cpp:105: error: undefined reference to `MainWindow::receiver(QString)'
        :-1: error: collect2: error: ld returned 1 exit status

        jsulmJ raven-worxR 2 Replies Last reply
        0
        • K kishore_hemmady

          I deleted the moc files.Its again creating those files only.Im getting this error
          /home/kishor/build-MARS-GUI-Desktop_Qt_5_9_3_GCC_64bit-Debug/moc_mainwindow.cpp:105: error: undefined reference to `MainWindow::receiver(QString)'
          :-1: error: collect2: error: ld returned 1 exit status

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @kishore_hemmady rebuild completely

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

          1 Reply Last reply
          2
          • K kishore_hemmady

            I deleted the moc files.Its again creating those files only.Im getting this error
            /home/kishor/build-MARS-GUI-Desktop_Qt_5_9_3_GCC_64bit-Debug/moc_mainwindow.cpp:105: error: undefined reference to `MainWindow::receiver(QString)'
            :-1: error: collect2: error: ld returned 1 exit status

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by raven-worx
            #5

            @kishore_hemmady said in How to undo the changes in the mock file?:

            MainWindow::receiver(QString)

            are you sure that there is an implementation of that method in the cpp file?!

            --- 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
            0

            • Login

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