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. "Undefined Reference" error building a Qt app which uses a QDeclarativeView
Forum Updated to NodeBB v4.3 + New Features

"Undefined Reference" error building a Qt app which uses a QDeclarativeView

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 3.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.
  • D Offline
    D Offline
    douglashoskins
    wrote on last edited by
    #1

    Hi

    I have installed the Nokia Qt SDK and am using Qt Creator 2.0.1 to try and create a native app, which includes some QML in a QDeclarativeView. I have also installed Qt 4.7.1.

    When trying to build this, I get errors of the form:
    In function Z5qMainiPPc' undefined reference to _imp__ZN16QDeclarativeViewC1EP7QWidget'

    and another three like that...

    What am I doing wrong?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      A library is missing in the links phase of your project. Did you add

      @
      QT += declarative
      @

      to your project file (.pro)?

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        douglashoskins
        wrote on last edited by
        #3

        Aha thanks!

        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