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. error from moc: 'x' does not name a type
Forum Updated to NodeBB v4.3 + New Features

error from moc: 'x' does not name a type

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 350 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.
  • D Offline
    D Offline
    django.Reinhard
    wrote on last edited by
    #1

    Hi,

    I have over 10 plugins and all but one work fine and I run out of ideas how to narrow the bug.

    I checked virtual functions, destructor and signals ...
    even used interfaces are used by other plugins that work.

    Is there a way to make moc more verbose?
    That error message is not really helpful.

    I checked Qt-guides for plugins too, but did not find any obvious musthave that I might have missed ...

    Pl45m4P 1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I don't see how we should help without a single line of code / minimal reproducible example.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • D django.Reinhard

        Hi,

        I have over 10 plugins and all but one work fine and I run out of ideas how to narrow the bug.

        I checked virtual functions, destructor and signals ...
        even used interfaces are used by other plugins that work.

        Is there a way to make moc more verbose?
        That error message is not really helpful.

        I checked Qt-guides for plugins too, but did not find any obvious musthave that I might have missed ...

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #3

        @django-Reinhard

        Does it really say "X", or is this just a replacement for one of your classes?
        If you google it, you'll find some posts about missing forward declarations, that produce similar errors.


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        0
        • D Offline
          D Offline
          django.Reinhard
          wrote on last edited by
          #4

          Hi,

          thank you very much for your attention.
          Of cause 'X' is just a replacement.

          I finally found the error:
          I had a name clash between enum and class - so I started using namespaces and name clash is history.

          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