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. Module 'QtContacts' does not contain a module identifier directive - it cannot be protected from external registrations.
Forum Updated to NodeBB v4.3 + New Features

Module 'QtContacts' does not contain a module identifier directive - it cannot be protected from external registrations.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.0k 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.
  • Y Offline
    Y Offline
    yazwas
    wrote on 11 Feb 2013, 12:25 last edited by
    #1

    Good day
    I've cloned the latest qtpim module http://qt.gitorious.org/qt/qtpim, and I've compiled and installed it under Ubuntu 12.10 and Windows 7 with Qt5.0.1

    Now when I try to run the examples from within QtCreator I'm getting the following errors.

    @
    Starting /opt/Qt5.0.1/5.0.1/gcc/bin/qmlscene /home/yazan/qtpim/examples/contacts/qmlcontactslistview/qmlcontactslistview.qml

    Module 'QtContacts' does not contain a module identifier directive - it cannot be protected from external registrations.
    QMetaProperty::read: Unable to handle unregistered datatype 'QDeclarativeContactPhoneNumber*' for property 'QtContacts::QDeclarativeContact::phoneNumber'
    QMetaProperty::read: Unable to handle unregistered datatype 'QDeclarativeContactName*' for property 'QtContacts::QDeclarativeContact::name'
    file:///home/yazan/qtpim/examples/contacts/qmlcontactslistview/qmlcontactslistview.qml:80: TypeError: Cannot read property 'firstName' of undefined
    file:///home/yazan/qtpim/examples/contacts/qmlcontactslistview/qmlcontactslistview.qml:83: TypeError: Cannot read property 'number' of undefined@

    I've tried this on Linux and Windows and both gave the same results.

    How to solve this issue.
    Any comments are more than welcome
    Thanks!

    1 Reply Last reply
    0

    1/1

    11 Feb 2013, 12:25

    • Login

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