×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    63

    Problem to show the result in N900 simulator

    hi every body
    I am just trying to make a primary tests to see what return methods belonging to QtMobility but I can't see the result in the N900 simulator !
    this is my main

    #include <QApplication>
    #include <QLabel>
    #include <QSystemInfo>
    #include <qgeoaddress.h>

    using namespace QtMobility;

    int main(int argc, char *argv[])
    {

    QApplication app(argc, argv);
    QGeoAddress ad;
    QString pp = tt->timestamp().toString();
    QLabel *label = new QLabel(QObject::tr("hello ").append(ad.city()));
    label->show();
    label->resize(100,30);
    return app.exec();
    }
    in the simulator I got only hello !
    thx for any help.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Problem to show the result in N900 simulator

    You should initialize QGeoAddress before you use it, refer to documentation.

  3. #3
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    63

    Re: Problem to show the result in N900 simulator

    I just initialize it by using the default constructor but it still the same problem !
    QGeoAddress *ad = newQGeoAddress() ;
    And I can't find any example that show this !

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Problem to show the result in N900 simulator

    Someone has to call setCity for you.

Similar Threads

  1. Replies: 2
    Last Post: 2011-03-23, 10:26
  2. takes two string form user and show the concatenated string result in new dialog box
    By swaraj.prasad@gmail.com in forum Symbian User Interface
    Replies: 3
    Last Post: 2011-03-17, 10:27
  3. application icon can't show in n900
    By pigling in forum Nokia N9
    Replies: 2
    Last Post: 2010-10-04, 03:27
  4. QMessageManager->queryMessages works in simulator, but not in N900
    By mka_ in forum [Archived] Qt Mobility Project
    Replies: 10
    Last Post: 2010-08-16, 11:39
  5. Got problem in the differences in Simulator and real phone
    By Innonetz in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-03-12, 11:58

Posting Permissions

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