Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hey, Thx! :D I have the same issue with the map in my app, it’s popping the page from the stack when scrolling. I’m just about to try it on the actual phone (which I received yesterday, yay!) to see how it behaves there…I’ll get back to you with the results. About the pinch actions: I haven’t found a way to do that on the emulator, maybe someone else knows? //bob On 23 dec 2013, at 22:43, Sylvain B. sth...@hotmail.com wrote: Hi again Bob, Just to let you know that your Map example is working fine (I like the blinking icon!) if you put it on the first page of your app, but if you put it on the second page, when you try to flick to the west, it actually pop the page off the stack. I am not asking for a solution right now because I won't have much time to work on it in the following weeks, but I am just letting you know in case you work on your example :) Last question while I am here: It may have already been asked, but is it possible to do Pinch actions on the emulator? Thanks again for the help! Sylvain. From: sth...@hotmail.com To: devel@lists.sailfishos.org Date: Mon, 23 Dec 2013 00:23:09 + Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Chris: I replied to you in private by error, so I am resaying here in the mailing-list: Thank you a lot, that's what I was missing!! It works now! I was sure that it was simple, but there is just not enough (not at all?) doc for Qt newbies like me =( Bob: Wow, it may not be finished, but your doc is already great and describe exactly what I was missing! Thank you. And if you have time to complete your TODO section, that would be a super doc to put directly on SailfishOs.org! Thanks for sharing :) -- Sylvain. Date: Sun, 22 Dec 2013 23:43:18 +0100 From: christopher.l...@thurweb.ch To: devel@lists.sailfishos.org; sth...@hotmail.com Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Hi Sylvain I've just got it working! I added qt5-plugin-geoservices-nokia to the PkgBR and Requires sections of the Yaml file, et voila, Belle Paris sur L'emulatuer Have fun Chris Zitat von Sylvain B. sth...@hotmail.com: Hello, I come back here because I am definitely not able to display a simple Map :( What I have done is: - Take the HelloWorld example generated by QtCreator. - Replace the content of SecondPage.qml by the code below. And I just get an empty page with the following error message in the logs: QML Map: Error: Plugin does not support mapping. Error message: The geoservices provider is not supported. If I remove the Plugin, I get the same empty page but without the error message. I have regenerated new token from here.com (I there a specific option to set?) I don't know what I need to do to make it working, is it in the .pro file? :( So I would really use either some tips or a working example. Thank you in advance! import QtQuick 2.0 import Sailfish.Silica 1.0 import QtLocation 5.0 import QtPositioning 5.1 Page { Map { anchors.fill: parent plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: xxx }, PluginParameter { name: token; value: xxx } ] } center: QtPositioning.coordinate(48.856047, 2.353907) // Paris } } From: sailf...@jelica.se Date: Thu, 19 Dec 2013 15:50:14 +0100 To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type I have an example project showing a map and a location.Will try publishing it online later tonight/tomorrow so you guys don?t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
I have the same issue with the map in my app, it's popping the page from the stack when scrolling. in https://sailfishos.org/wiki/Porting/Harmattan it is said something about swipe lock and In Qt 5 via Qt::WindowOverridesSystemGestureshttp://qt-project.org/doc/qt-5.0/qtcore/qt.html#WindowType-enum I didn't look further (as currently I don't have use for this), but it might lead one to correct paths? -kimmo ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi again Bob, Just to let you know that your Map example is working fine (I like the blinking icon!) if you put it on the first page of your app, but if you put it on the second page, when you try to flick to the west, it actually pop the page off the stack. I am not asking for a solution right now because I won't have much time to work on it in the following weeks, but I am just letting you know in case you work on your example :) Last question while I am here: It may have already been asked, but is it possible to do Pinch actions on the emulator? Thanks again for the help! Sylvain. From: sth...@hotmail.com To: devel@lists.sailfishos.org Date: Mon, 23 Dec 2013 00:23:09 + Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Chris: I replied to you in private by error, so I am resaying here in the mailing-list: Thank you a lot, that's what I was missing!! It works now! I was sure that it was simple, but there is just not enough (not at all?) doc for Qt newbies like me =( Bob: Wow, it may not be finished, but your doc is already great and describe exactly what I was missing! Thank you. And if you have time to complete your TODO section, that would be a super doc to put directly on SailfishOs.org! Thanks for sharing :) -- Sylvain. Date: Sun, 22 Dec 2013 23:43:18 +0100 From: christopher.l...@thurweb.ch To: devel@lists.sailfishos.org; sth...@hotmail.com Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Hi Sylvain I've just got it working! I added qt5-plugin-geoservices-nokia to the PkgBR and Requires sections of the Yaml file, et voila, Belle Paris sur L'emulatuer Have fun Chris Zitat von Sylvain B. sth...@hotmail.com: Hello, I come back here because I am definitely not able to display a simple Map :( What I have done is: - Take the HelloWorld example generated by QtCreator. - Replace the content of SecondPage.qml by the code below. And I just get an empty page with the following error message in the logs: QML Map: Error: Plugin does not support mapping. Error message: The geoservices provider is not supported. If I remove the Plugin, I get the same empty page but without the error message. I have regenerated new token from here.com (I there a specific option to set?) I don't know what I need to do to make it working, is it in the .pro file? :( So I would really use either some tips or a working example. Thank you in advance! import QtQuick 2.0 import Sailfish.Silica 1.0 import QtLocation 5.0 import QtPositioning 5.1 Page { Map { anchors.fill: parent plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: xxx }, PluginParameter { name: token; value: xxx } ] } center: QtPositioning.coordinate(48.856047, 2.353907) // Paris } } From: sailf...@jelica.se Date: Thu, 19 Dec 2013 15:50:14 +0100 To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type I have an example project showing a map and a location.Will try publishing it online later tonight/tomorrow so you guys don?t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate. But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) I am sure it's something simple (some entry missing in the .pro?) but I could not find what yesterday, and I don't have so much time to search (It was really cool with Harmattan to have an example out of the box that we could just copy
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hello, I come back here because I am definitely not able to display a simple Map :( What I have done is: - Take the HelloWorld example generated by QtCreator. - Replace the content of SecondPage.qml by the code below. And I just get an empty page with the following error message in the logs: QML Map: Error: Plugin does not support mapping. Error message: The geoservices provider is not supported. If I remove the Plugin, I get the same empty page but without the error message. I have regenerated new token from here.com (I there a specific option to set?) I don't know what I need to do to make it working, is it in the .pro file? :( So I would really use either some tips or a working example. Thank you in advance! import QtQuick 2.0 import Sailfish.Silica 1.0 import QtLocation 5.0 import QtPositioning 5.1 Page { Map { anchors.fill: parent plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: xxx }, PluginParameter { name: token; value: xxx } ] } center: QtPositioning.coordinate(48.856047, 2.353907) // Paris } } From: sailf...@jelica.se Date: Thu, 19 Dec 2013 15:50:14 +0100 To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type I have an example project showing a map and a location.Will try publishing it online later tonight/tomorrow so you guys don’t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate. But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) I am sure it's something simple (some entry missing in the .pro?) but I could not find what yesterday, and I don't have so much time to search (It was really cool with Harmattan to have an example out of the box that we could just copy/paste and start customizing). Would it be possible to have a simple example in the doc explaining all the required steps? Or do you see what I am missing? For the plugin, I just put the same than for Harmattan: plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: APPID }, PluginParameter { name: token; value: TOKEN } ] } Thanks for your help! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi, I’m not quite finished with the tutorial, but since you seem to be in dire need of instructions, here goes: https://github.com/b0bben/SailfishOS_MapTutorial App works, docs are work-in-progress. Holla at me if you’re having trouble with anything. //bob On 22 Dec 2013, at 23:11, Sylvain B. sth...@hotmail.com wrote: Hello, I come back here because I am definitely not able to display a simple Map :( What I have done is: - Take the HelloWorld example generated by QtCreator. - Replace the content of SecondPage.qml by the code below. And I just get an empty page with the following error message in the logs: QML Map: Error: Plugin does not support mapping. Error message: The geoservices provider is not supported. If I remove the Plugin, I get the same empty page but without the error message. I have regenerated new token from here.com (I there a specific option to set?) I don't know what I need to do to make it working, is it in the .pro file? :( So I would really use either some tips or a working example. Thank you in advance! import QtQuick 2.0 import Sailfish.Silica 1.0 import QtLocation 5.0 import QtPositioning 5.1 Page { Map { anchors.fill: parent plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: xxx }, PluginParameter { name: token; value: xxx } ] } center: QtPositioning.coordinate(48.856047, 2.353907) // Paris } } From: sailf...@jelica.se Date: Thu, 19 Dec 2013 15:50:14 +0100 To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type I have an example project showing a map and a location. Will try publishing it online later tonight/tomorrow so you guys don’t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote: tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate. But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) I am sure it's something simple (some entry missing in the .pro?) but I could not find what yesterday, and I don't have so much time to search (It was really cool with Harmattan to have an example out of the box that we could just copy/paste and start customizing). Would it be possible to have a simple example in the doc explaining all the required steps? Or do you see what I am missing? For the plugin, I just put the same than for Harmattan: plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: APPID }, PluginParameter { name: token; value: TOKEN } ] } Thanks for your help! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Chris: you’re very welcome to re-publish the tutorial on your page, since it’s becoming a defacto standard page for awesome tutorials/info about Sailfish. I’ll clean the docs a bit more in the coming days, so it’s more noob-friendly. //bob On 20 Dec 2013, at 09:20, christopher.l...@thurweb.ch wrote: Hi Thomas Thanks for pointing me to that. So it a change by design, part of the migration to PackageKit that I hint at my post. Chris Zitat von Thomas Tanghus tho...@tanghus.net: Note that the zypper package manager is only available in the build engine virtual machine and in the Scratchbox 2 environment, not in the emulator or on a real device. The equivalent command in the emulator virtual machine or on a device is pkcon. These two commands have slightly different options and one may not support all the functionality the other has. https://sailfishos.org/develop-packaging-apps.html under Tips and Tricks -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
23.12.2013 00:30, Bob Jelica wrote: I’m not quite finished with the tutorial, but since you seem to be in dire need of instructions, here goes: https://github.com/b0bben/SailfishOS_MapTutorial App works, docs are work-in-progress. Holla at me if you’re having trouble with anything. Thanks, this works and helps a lot. I had some half-working code of my own, but it stopped working with the latest version of the SDK. A couple notes and questions. It seems setting a zoomLevel value normally doesn't work. The map always seems to start at the default zoom level. It does work however, if I set it under Component.onCompleted. Is there a way to zoom in and out with the emulator? I keep trying to use the mouse scroll wheel. Are the Nokia maps in Qt to stay or an unmaintained relic? I notice the tiles are not the same as at here.com, but some older version. Is there any way to define tile sources in QML? The Qt Location Map Plugin API seems a gigantic OO monster for the simple usual case of wanting to specify a custom tile URL. -- Osmo Salomaa otsal...@iki.fi ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Chris: I replied to you in private by error, so I am resaying here in the mailing-list: Thank you a lot, that's what I was missing!! It works now! I was sure that it was simple, but there is just not enough (not at all?) doc for Qt newbies like me =( Bob: Wow, it may not be finished, but your doc is already great and describe exactly what I was missing! Thank you. And if you have time to complete your TODO section, that would be a super doc to put directly on SailfishOs.org! Thanks for sharing :) -- Sylvain. Date: Sun, 22 Dec 2013 23:43:18 +0100 From: christopher.l...@thurweb.ch To: devel@lists.sailfishos.org; sth...@hotmail.com Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Hi Sylvain I've just got it working! I added qt5-plugin-geoservices-nokia to the PkgBR and Requires sections of the Yaml file, et voila, Belle Paris sur L'emulatuer Have fun Chris Zitat von Sylvain B. sth...@hotmail.com: Hello, I come back here because I am definitely not able to display a simple Map :( What I have done is: - Take the HelloWorld example generated by QtCreator. - Replace the content of SecondPage.qml by the code below. And I just get an empty page with the following error message in the logs: QML Map: Error: Plugin does not support mapping. Error message: The geoservices provider is not supported. If I remove the Plugin, I get the same empty page but without the error message. I have regenerated new token from here.com (I there a specific option to set?) I don't know what I need to do to make it working, is it in the .pro file? :( So I would really use either some tips or a working example. Thank you in advance! import QtQuick 2.0 import Sailfish.Silica 1.0 import QtLocation 5.0 import QtPositioning 5.1 Page { Map { anchors.fill: parent plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: xxx }, PluginParameter { name: token; value: xxx } ] } center: QtPositioning.coordinate(48.856047, 2.353907) // Paris } } From: sailf...@jelica.se Date: Thu, 19 Dec 2013 15:50:14 +0100 To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type I have an example project showing a map and a location.Will try publishing it online later tonight/tomorrow so you guys don?t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate. But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) I am sure it's something simple (some entry missing in the .pro?) but I could not find what yesterday, and I don't have so much time to search (It was really cool with Harmattan to have an example out of the box that we could just copy/paste and start customizing). Would it be possible to have a simple example in the doc explaining all the required steps? Or do you see what I am missing? For the plugin, I just put the same than for Harmattan: plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: APPID }, PluginParameter { name: token; value: TOKEN } ] } Thanks for your help! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi Thomas Thanks for pointing me to that. So it a change by design, part of the migration to PackageKit that I hint at my post. Chris Zitat von Thomas Tanghus tho...@tanghus.net: Note that the zypper package manager is only available in the build engine virtual machine and in the Scratchbox 2 environment, not in the emulator or on a real device. The equivalent command in the emulator virtual machine or on a device is pkcon. These two commands have slightly different options and one may not support all the functionality the other has. https://sailfishos.org/develop-packaging-apps.html under Tips and Tricks -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate. But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) I am sure it's something simple (some entry missing in the .pro?) but I could not find what yesterday, and I don't have so much time to search (It was really cool with Harmattan to have an example out of the box that we could just copy/paste and start customizing). Would it be possible to have a simple example in the doc explaining all the required steps? Or do you see what I am missing? For the plugin, I just put the same than for Harmattan: plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: APPID }, PluginParameter { name: token; value: TOKEN } ] } Thanks for your help! ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
I have an example project showing a map and a location. Will try publishing it online later tonight/tomorrow so you guys don’t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote: tw_bolek tw_bolek@... writes: at Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list Hello, I also wanted to use a Map in my application, and I am still struggling. I already figured out that: - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) - We need to use QtPositioning.coordinate instead of Coordinate. But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) I am sure it's something simple (some entry missing in the .pro?) but I could not find what yesterday, and I don't have so much time to search (It was really cool with Harmattan to have an example out of the box that we could just copy/paste and start customizing). Would it be possible to have a simple example in the doc explaining all the required steps? Or do you see what I am missing? For the plugin, I just put the same than for Harmattan: plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: APPID }, PluginParameter { name: token; value: TOKEN } ] } Thanks for your help! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi, I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... Sign in here: https://developer.here.com/myapps You need to have a Nokia developer account. If you don't have one, click on the register button on the sign in dialog. Once you have a Nokia account, click Create app and follow the instructions in the wizard. - We have to install QtLocation/QtPositioning in the SDK - We have to manually install them in the emulator (I just found out about pkcon and zypper) To my knowledge you don't need to do any manual installation, just configure yaml-file correctly, and use the option Deploy as rpm package when running your app in the emulator: PkgBR: [qt5-qtlocation-devel, qt5-qtdeclarative-import-location, qt5-qtpositioning-devel, qt5-qtdeclarative-import-positioning] Requires: - qt5-plugin-geoservices-nokia - qt5-qtdeclarative-import-location - qt5-qtdeclarative-import-positioning More instructions in this very useful blog post I found: http://flyingsheeponsailfish.blogspot.fi/2013/11/deploying-additional-packages-to.html But now, if I try to display the simplest Map, I just get a blank screen. I have a message telling me that there is an error with the Plugin I use (does not support something - sorry I don't have the precise error message here) Are you sure you have provided valid app_id and token parameters to the plugin? Map plugin might give misleading error messages if you supply invalid ones. See: https://bugreports.qt-project.org/browse/QTBUG-26634 This was the case with my app. I was getting this: QML MapComponent: Error: Plugin does not support mapping. With correct parameters the error message disappeared. Or do you see what I am missing? For the plugin, I just put the same than for Harmattan: plugin : Plugin { name : nokia; parameters: [ PluginParameter { name: app_id; value: APPID }, PluginParameter { name: token; value: TOKEN } ] } Looks correct to me, just make sure you provide valid values for the parameters. -- Janne ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Janne Zitat von Janne Kokko jmkok...@gmail.com: More instructions in this very useful blog post I found: http://flyingsheeponsailfish.blogspot.fi/2013/11/deploying-additional-packages-to.html Thanks for the kind words. I am glad that article helped. I wrote some of it up a mountain in South Africa sitting by an infinity pool with a bottle of Windhoek on the table next to me ... grüsse Chris ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Bob That would be super cool :) Janne Thanks for your reply, but I used the same token I was using in my Harmattan app and it was not working. But I will retry this week-end after having had some sleep! And yes I already used this article to be able to install the dependencies on my emulator ;) Chris Thanks for the article! As I said, I used the Installing by Hands method. The only thing which is missing to be perfect is the pkcon install zypper (zypper is not installed by default and I didn't know this packaging tool before). I will post a Thank you once I actually see a Map on my screen =) Well, I will retry that this WE, thanks for your replies! Date: Thu, 19 Dec 2013 19:12:49 +0100 From: christopher.l...@thurweb.ch To: devel@lists.sailfishos.org; jmkok...@gmail.com Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Janne Zitat von Janne Kokko jmkok...@gmail.com: More instructions in this very useful blog post I found: http://flyingsheeponsailfish.blogspot.fi/2013/11/deploying-additional-packages-to.html Thanks for the kind words. I am glad that article helped. I wrote some of it up a mountain in South Africa sitting by an infinity pool with a bottle of Windhoek on the table next to me ... grüsse Chris ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
On Friday 20 December 2013 07:07 christopher.l...@thurweb.ch wrote: Hi Sylvain Thanks of the tip on zypper not being installed (on the Emulator). That seems to be a feature of the latest SDK release, I am 99% sure that on earlier releases zypper was on the Emulator by default. I wonder if this omission from the Emulator is by design or by mistake. Note that the zypper package manager is only available in the build engine virtual machine and in the Scratchbox 2 environment, not in the emulator or on a real device. The equivalent command in the emulator virtual machine or on a device is pkcon. These two commands have slightly different options and one may not support all the functionality the other has. https://sailfishos.org/develop-packaging-apps.html under Tips and Tricks -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi, On Thu, 21 Nov 2013 08:43:11 tw_bolek wrote: BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... Try developer.here.com. Sign in or create an account. The click on the Get Started link at the top of the page. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list
[SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi Aaron, The Qt Location and Qt Positioning packages are reported as version 5.1.0 but they include something very close to what will be in 5.2 upstream. There was no Qt Positioning library prior to Qt 5.2. I have all the packages you listed installed (5.1.0 versions). I can successfully import QtPositioning 5.0, I can use any other element of it (e.g. PositionSource) and I can build and run code with those other elements without any problems, so this confirms that QtPositioning is installed and imported correctly. The *ONLY* thing that doesn't work is that damned Coordinate element - not recognized by QtCreator and throwing an error message Coordinate is not a type at run time. I've checked \mersdk\targets\SailfishOS-i486-x86\usr\lib\qt5\qml\QtPositioning\plugins.qmltypes (and in the ARM target as well) and every other QtPositioning element is listed there *EXCEPT FOR* Coordinate. So it looks that the Coordinate type simply isn't available in the package currently used in the Sailfish OS SDK Michal P.S. I am very sorry, it looks that my email client doesn't properly follow threads and sends each message as a new thread. I will try some other client today. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi Jonni Thanks, bug now opened ... https://bugreports.qt-project.org/browse/QTBUG-34963 Chris Zitat von Jonni Rainisto jonni.raini...@jolla.com: if its a bug in qtlocation then https://bugreports.qt-project.org And you might want to check if there are fixes in the pipeline already https://codereview.qt-project.org/#q,status:open+project:qt/qtlocation,n,z re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of christopher.l...@thurweb.ch [christopher.l...@thurweb.ch] Sent: Wednesday, November 20, 2013 11:52 AM To: Aaron McCarthy; Sailfish OS Developers Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type Aaron Having had a closer look at the Positioning sources, I think positioning.cpp is missing a line like: qmlRegisterTypeQDeclarativeCoordinate (uri, major, minor, Coordinate); Where would be the best place to report this as a bug? Chris Zitat von Aaron McCarthy aaron.mccar...@jolla.com: Hi, On Wed, 20 Nov 2013 07:52:14 tw_bolek wrote: What a mess... It looks that it must have been moved from QtLocation to QtPositioning only recently. The positioning class were split out into a separate library to allow using them in console applications without pulling in a lot of GUI dependencies. Only the positioning library is being released with Qt 5.2. Non of the maps, routing, places, and geocoding related classes have been officially released by the Qt Project. It seems to be only in QtPositioning 5.2. That's why it wasn't recognized despite importing both QtLocation 5.0 and QtPositioning 5.0 That is true, however, what is included in SailfishOS/Mer is very close to 5.2 even though it declares itself as 5.1. import QtPositioning 5.0 and import QtLocation 5.0 should work. Where and how can I install QtPositioning 5.2 from? The one I have installed is 5.0. Trying to import QtPositioning 5.2 returns: QtPositioning version 5.2 is not installed ... The RPM package you will need for development are qt5-qtpositioning-devel and qt5-qtlocation-devel. At runtime you will need qt5-qtdeclarative-import-positioning and qt5- qtdeclarative-import-location, qt5-qtpositioning, qt5-qtlocation, plus whatever positioning/geoservices plugins your application requires. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi Michael I have been pointed to this: http://doc-snapshot.qt-project.org/qt5-stable/coordinate.html Which means that something like the code below should work: This is a little different from the Qt4.8 Mobility Location, where a coordinate could be directly instantiated and manipulated in QML. mfg Chris import QtQuick 2.0 import Sailfish.Silica 1.0 import QtPositioning 5.0 Page { id: page Component.onCompleted: { myLoc.coordinate.latitude = 21.3; console.log (latitude is + myLoc.coordinate.latitude); } Location { id: myLoc coordinate { latitude: -27.5 longitude: 153.1 } } } ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
On Wed, 20 Nov 2013 10:52:29 christopher.l...@thurweb.ch wrote: Having had a closer look at the Positioning sources, I think positioning.cpp is missing a line like: qmlRegisterTypeQDeclarativeCoordinate (uri, major, minor, Coordinate); Where would be the best place to report this as a bug? That is not a bug. There is no such class QDeclarativeCoordinate. Coordinates in QML are no longer QObject derived types (as they were in Qt Mobility), instead they are value types. See http://doc-snapshot.qt-project.org/qt5-stable/coordinate.html for documentation on how to use this type in QML. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
@Bolek, have you got it working? Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! For my needs now it's even better than previously as on Harmattan I then had to use Qt.createQmlObject for what I needed to get. Thanks a lot! BTW. Do you perhaps now the URL of the site where one can register to get the API key to use Nokia Maps plugin? If I try to use it without any key it says to go to https://api.developer.nokia.com but that URL just redirects to the main Nokia Developer page. I can't find the right place to register... ___ SailfishOS.org Devel mailing list
[SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Chris, Thank you! What a mess... It looks that it must have been moved from QtLocation to QtPositioning only recently. It seems to be only in QtPositioning 5.2. That's why it wasn't recognized despite importing both QtLocation 5.0 and QtPositioning 5.0 Where and how can I install QtPositioning 5.2 from? The one I have installed is 5.0. Trying to import QtPositioning 5.2 returns: QtPositioning version 5.2 is not installed ... Thanks, Bolek ___ SailfishOS.org Devel mailing list
[SailfishDevel] (QtLocation 5.0) Coordinate is not a type
P.S. I've just tried to update with zypper, but it shows that QtPositioning 5.1.0 is installed and it is the highest available version, no update is available Does it mean that I cannot use the Coordinate element in a Sailfish OS application for now? Thanks, Bolek ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi, On Wed, 20 Nov 2013 07:52:14 tw_bolek wrote: What a mess... It looks that it must have been moved from QtLocation to QtPositioning only recently. The positioning class were split out into a separate library to allow using them in console applications without pulling in a lot of GUI dependencies. Only the positioning library is being released with Qt 5.2. Non of the maps, routing, places, and geocoding related classes have been officially released by the Qt Project. It seems to be only in QtPositioning 5.2. That's why it wasn't recognized despite importing both QtLocation 5.0 and QtPositioning 5.0 That is true, however, what is included in SailfishOS/Mer is very close to 5.2 even though it declares itself as 5.1. import QtPositioning 5.0 and import QtLocation 5.0 should work. Where and how can I install QtPositioning 5.2 from? The one I have installed is 5.0. Trying to import QtPositioning 5.2 returns: QtPositioning version 5.2 is not installed ... The RPM package you will need for development are qt5-qtpositioning-devel and qt5-qtlocation-devel. At runtime you will need qt5-qtdeclarative-import-positioning and qt5- qtdeclarative-import-location, qt5-qtpositioning, qt5-qtlocation, plus whatever positioning/geoservices plugins your application requires. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
Hi, On Wed, 20 Nov 2013 08:02:38 tw_bolek wrote: P.S. I've just tried to update with zypper, but it shows that QtPositioning 5.1.0 is installed and it is the highest available version, no update is available Does it mean that I cannot use the Coordinate element in a Sailfish OS application for now? Please see my reply in the other thread. The Qt Location and Qt Positioning packages are reported as version 5.1.0 but they include something very close to what will be in 5.2 upstream. There was no Qt Positioning library prior to Qt 5.2. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list