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. [solved] Deleted menu items from Form Editor, now I get moc_...cpp errors
Forum Updated to NodeBB v4.3 + New Features

[solved] Deleted menu items from Form Editor, now I get moc_...cpp errors

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 402 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.
  • T Offline
    T Offline
    thistleknot
    wrote on last edited by
    #1

    I misnamed some menu items, so I right clicked them, deleted them.

    Then deleted their matching actions in the action editor, then deleted the triggers in the .cpp file.

    Rebuilt, and moc_mainwindow.cpp was throwing some errors about cases. This is not a project file of mine, this is an autogenerated file when qmake is ran.

    Now... if I try to rebuild based on just my .qt file, I get

    @
    moc_diffmatchpatch.cpp:-1: error: undefined reference to `DiffMatchPatch::on_actionPatch_Apply_triggered()'
    @

    how can I fix it? I guess I deleted the menu items incorrectly, and now it's asking me to fix something in a file that isn't even part of my project?

    I think I needed to delete the references in my header files to private slots:
    @
    //void on_actionCompute_Patch_triggered();

    //void on_actionPatch_Apply_triggered();
    

    @

    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