Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtMobility not installed
Qt 6.11 is out! See what's new in the release blog

QtMobility not installed

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 2.9k 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.
  • M Offline
    M Offline
    muthu005
    wrote on last edited by
    #1

    hi all

    I am new to QML. I tried to execute the sample code shown below.

    @ import Qt 4.7
    import QtMobility.location 1.1

    Rectangle {
    id: page
    width: 350
    height: 350
    PositionSource {
    id: positionSource
    updateInterval: 1000
    active: true
    // nmeaSource: "nmealog.txt"
    }
    Column {
    Text {text: "<==== PositionSource ====>"}
    Text {text: "positioningMethod: " + printableMethod(positionSource.positioningMethod)}
    Text {text: "nmeaSource: " + positionSource.nmeaSource}
    Text {text: "updateInterval: " + positionSource.updateInterval}
    Text {text: "active: " + positionSource.active}
    Text {text: "<==== Position ====>"}
    Text {text: "latitude: " + positionSource.position.coordinate.latitude}
    Text {text: "longitude: " + positionSource.position.coordinate.longitude}
    Text {text: "altitude: " + positionSource.position.coordinate.altitude}
    Text {text: "speed: " + positionSource.position.speed}
    Text {text: "timestamp: " + positionSource.position.timestamp}
    Text {text: "altitudeValid: " + positionSource.position.altitudeValid}
    Text {text: "longitudeValid: " + positionSource.position.longitudeValid}
    Text {text: "latitudeValid: " + positionSource.position.latitudeValid}
    Text {text: "speedValid: " + positionSource.position.speedValid}
    }
    function printableMethod(method) {
    if (method == PositionSource.SatellitePositioningMethod)
    return "Satellite";
    else if (method == PositionSource.NoPositioningMethod)
    return "Not available"
    else if (method == PositionSource.NonSatellitePositioningMethod)
    return "Non-satellite"
    else if (method == PositionSource.AllPositioningMethods)
    return "All/multiple"
    return "source error";
    }
    }@

    i have added this to my .pro file
    @CONFIG += mobility
    MOBILITY += location@

    I was able to run this app in the QtSimulator but when i tried to deploy the application on a embedded Meego device, i got the following error

    @module "QtMobility.location" is not installed
    import QtMobility.location 1.1
    ^ @

    I have read many threads explaining the reasons but i am unable to resolve the issue. Please help me how to solve this issue

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jr_jags
      wrote on last edited by
      #2

      what is the version of your Qt? you need to download the latest version to enable the mobility

      1 Reply Last reply
      0
      • M Offline
        M Offline
        muthu005
        wrote on last edited by
        #3

        i m using Qt 4.7

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lavonardo
          wrote on last edited by
          #4

          Which device do you work with?
          (I'm assuming N9.)

          Which platform version do you have on the device (settings > about product)?

          The code works for me as-is (running Qt SDK 1.1.4, PR1.1 on the device).

          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