Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Errors in moc files

Errors in moc files

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.3k 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.
  • I Offline
    I Offline
    imaseawolf
    wrote on last edited by
    #1

    I am trying to port an application from one laptop with Qt 4.8 SDK to another with Qt 5.3

    After a lot of fiddling, I am at this point:

    When I try to build the following error pops up:

     Invalid use of imcomplete type 'class QIcon'            moc_application.cpp
    

    The code line(177) is: case 0: reinterpret_cast<QIcon>(_v) = windowIcon(); break;

    If I comment this out then a ton of similar errors pop up in other moc files.
    These are autogenerated so I am not sure what to do.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What fiddling did you need other than adding

      @QT += widgets@

      to your pro file ?

      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
      0
      • I Offline
        I Offline
        imaseawolf
        wrote on last edited by
        #3

        A few deprecated methods and constants,

        but I solved the problem by simply creating a new project and copying and pasting the code there

        thanks

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since your project is running now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          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
          0

          • Login

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