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. [SOLVED] invalid use of incomplete type
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] invalid use of incomplete type

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 3.2k 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.
  • O Offline
    O Offline
    overtime
    wrote on last edited by
    #1

    This is the error I get:

    @error: invalid use of incomplete type 'class QDeclarativeEngine'
    engine()->addImportPath(QmlApplicationViewerPrivate::adjustPath(path));
    ^@

    Is this a porting problem because I'm trying to use Qt 5.2?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stevenceuppens
      wrote on last edited by
      #2

      Hi,

      The engine is re-named in Qt5

      Qt4: QDeclarativeEngine
      Qt5: QQmlEngine

      Steven CEUPPENS
      Developer / Architect
      Mobile: +32 479 65 93 10

      1 Reply Last reply
      0
      • O Offline
        O Offline
        overtime
        wrote on last edited by
        #3

        Thanks, I was afraid of that... I have 76 errors like this :-/
        Looks like I will try and fix them all... Anyone up for helping me fix these?

        1 Reply Last reply
        0
        • O Offline
          O Offline
          overtime
          wrote on last edited by
          #4

          Does that mean they hold the same functionality with just a different name? I ask because I'm wondering if I have to understand the details of whats going on or can I just blindly change the names to make it work.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stevenceuppens
            wrote on last edited by
            #5

            Api is the same, but internals are different.

            This guide would be usefull :)

            http://qt-project.org/doc/qt-5/qtquick-porting-qt5.html

            Steven CEUPPENS
            Developer / Architect
            Mobile: +32 479 65 93 10

            1 Reply Last reply
            0
            • O Offline
              O Offline
              overtime
              wrote on last edited by
              #6

              Thanks for the link. The sad thing is that I already have that guide docmarked. I'm just having a hard time understanding it and implementing it :(

              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