Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121169

Moc parse error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1
    • None
    • Windows

    Description

      class ExampleClass {
         PROP(bool remove=false);
         SLOT(removeSlot(bool remove));
      
         PROP(bool roValue = false);
         SLOT(roValueSlot(bool roValue));
      }
      
      

      Invoking manually via commandline

      repc.exe -c -i rep -o source ExampleClass.rep rep_ExampleClass_source.h
      or
      repc.exe -c -i rep -o replica ExampleClass.rep rep_ExampleClass_replica.h
      

      and then

      moc.exe rep_ExampleClass_source.h -o moc_rep_ExampleClass_source.cpp
      or
      moc.exe rep_ExampleClass_replica.h -o moc_rep_ExampleClass_replica.cpp
      

      Results in

      rep_ExampleClass_source.h(21:1): error: Parse error at "("
      or
      rep_ExampleClass_replica.h(21:1): error: Parse error at "("
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bstottle Brett Stottlemyer
            redman Calvin Flatt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes