×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    30

    Unable to use Qt Mobility Connectivity Classes

    Whenever i add header file of Conectivity( specially buletooth classes), then there is no error on including it. But when i create any of objects of these classes then the following error came.

    error: 'QBluetoothAddress' does not name a type
    on fallowing line
    QBluetoothAddress obj;

    where as #include <QBluetoothAddress> is also there.

    in project file i had also wrote the following code.

    CONFIG += mobility
    MOBILITY += connectivity

    Please help me to sort out this issue.
    Thanks in advance

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Unable to use Qt Mobility Connectivity Classes

    Mobility classes are defined in the mobility namespace.
    To use the mobility namespace, you should use this macro: QTM_USE_NAMESPACE

    Example: http://apidocs.meego.com/git-tip/qtm...ector-cpp.html

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    30

    Re: Unable to use Qt Mobility Connectivity Classes

    Thanx its now working after including this macro

Similar Threads

  1. Qt Mobility 1.2 connectivity
    By rupalimk in forum [Archived] Qt Mobility Project
    Replies: 12
    Last Post: 2011-06-06, 14:58
  2. Unable to use QT Mobility 1.2
    By sumit.ece in forum [Archived] Qt Mobility Project
    Replies: 0
    Last Post: 2011-04-21, 07:27
  3. Unable to run Qt Mobility example
    By jainmonali21 in forum [Archived] Qt Mobility Project
    Replies: 15
    Last Post: 2011-01-20, 10:49
  4. Replies: 3
    Last Post: 2010-07-22, 17:11
  5. Unable to detect Java Mobility pack in NetBeans.
    By mike_smith in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-05-24, 08:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •