|
2010-01-29
, 19:04
|
Posts: 353 |
Thanked: 263 times |
Joined on Dec 2009
@ Finland
|
#2
|
|
2010-01-29
, 22:01
|
Posts: 24 |
Thanked: 38 times |
Joined on Nov 2009
|
#3
|
|
2010-02-01
, 06:22
|
Posts: 23 |
Thanked: 18 times |
Joined on May 2007
@ Fremont, CA
|
#4
|
The Following User Says Thank You to kimitake For This Useful Post: | ||
|
2010-02-01
, 06:24
|
Posts: 23 |
Thanked: 18 times |
Joined on May 2007
@ Fremont, CA
|
#5
|
|
2010-02-01
, 08:27
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#6
|
Unfortunately, there isn't. The example consists of a single C file containing GTK+ code. I would also really like to know how to get the location info in a Qt application.
|
2010-02-01
, 09:07
|
Posts: 24 |
Thanked: 38 times |
Joined on Nov 2009
|
#7
|
To understand how the liblocation works, please have a look at the developer guide and the liblocation API docs. Further the example is explained in the guide, which is linked on the wiki-page of the example as well. But please be aware, that the general information, you find there is a bit outdated. But the discription of the location example is quite ok.
|
2010-02-01
, 11:36
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#8
|
- Use Qt for the UI (obviously).
- Show how to integrate the glib event loop into the Qt event loop. My use case: try to get a GPS fix, but show a dialog that allows the user to abort the operation.
- How do I need to modify .pro files to make my project compile with liblocation?
As I said, I was able to solve all of these problems. But it also meant that I spent a weekend implementing a feature that could have taken just a few hours at most.
|
2010-02-23
, 22:45
|
Posts: 2 |
Thanked: 1 time |
Joined on Feb 2010
|
#9
|
I did all of that already and I'm happy to report that I successfully added liblocation support to my Qt application. Still, I find the example lacking, especially considering that it describes itself as a Qt example when clearly it has nothing to do with it.
I have no experience with glib/GTK+ coding. Here are some pointers as to what could be improved:
- Use Qt for the UI (obviously).
- Show how to integrate the glib event loop into the Qt event loop. My use case: try to get a GPS fix, but show a dialog that allows the user to abort the operation.
- How do I need to modify .pro files to make my project compile with liblocation?
As I said, I was able to solve all of these problems. But it also meant that I spent a weekend implementing a feature that could have taken just a few hours at most.
|
2010-02-23
, 23:29
|
Posts: 2 |
Thanked: 1 time |
Joined on Feb 2010
|
#10
|
The Following User Says Thank You to brink For This Useful Post: | ||
running these commands does not do it:
qmake -project
qmake
make
http://wiki.forum.nokia.com/index.ph...cation_Example