Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish

2014-01-20 Thread dcaliste
Hello 

À Sun Jan 19 2014 22:32:47 GMT+0100 (CET), christopher.l...@thurweb.ch a écrit 
1) The Compass Azimuth shows the direction the top of the device is  
pointing to (so it will change as your rotate the device).

2) The PositionSource shows a direction based on the direction the  
device is travelling (irrespective of where the device is pointing).

http://qt-project.org/doc/qt-5/qgeopositioninfo.html
Sorry my explanation was not clear and lacking the question. So the two things 
you're speaking about (compas and direction) are indeed the two distinctions I 
was doing. My question is : ok, the compas is in QtSensor, but the direction is 
missing from QGeoPositionInfo, the method hasAttribute() on a valid GPS fix 
returns false, always. How to get the direction? Should one calculate it by 
hand ?

Regards, 

Damien.
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Status menu?

2014-01-20 Thread Marcin M.
And how to quickly turn it off then? The same problem appears. What I'm
missing on Harmattan and Sailfish is something like Autodisconnect for
Maemo :)

--
Marcin


2014/1/17 martin.gri...@lintegra.de

 Hi,

 just do something that requires an internet connection and Sailfish will
 popup a connection dialog. No need to go to the settings.

 Martin

 Am Fri Jan 17 2014 20:31:57 GMT+0100 (CET) schrieb Julius Loman:
 Yes, but we want to have shortcut to Connect to internet option in the
 pulley
 menu. :)
 Shortcut to WLAN doesn't really help. It just skips one menu level.
 
 Connect to internet should be definitely in the pulley menu on the
 lockscreen
 somewhere else quickly accessible.
 
 On Fri, Jan 17, 2014 at 08:28:10PM +0100, Oleksii Serdiuk 
 conta...@oleksii.name wrote:
  On 17.01.2014 20:14, Marcin M. wrote:
  The settings have some wifi thing on the top, but it seems to be
  enable/disable auto-scanning, and I'd like to always connect myself,
  never automatically, no scanning in background... And the actual option
  is dug deep in the settings.
 
  There's a nice feature I accidentally found in Settings.
 
  Go to Settings - System settings and long tap WLAN. Context menu
  will slide out. Tap Add to favourites there. This will place an
  icon to the top of the main page of Settings app that will take you
  directly to WLAN page.
 
  --
  With best regards,
  Oleksii Serdiuk
 
 
 
 
  ___
  SailfishOS.org Devel mailing list
 
 
 --
 
 [ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][
 icq:35732873 ]
 ___
 SailfishOS.org Devel mailing list

 --
 Gesendet von meinem Jolla
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QStandardPaths not working when app is run from Launcher

2014-01-20 Thread Vesa-Matti Hartikainen

Hi,

 I think QStandardPaths use applicationName and organizationName when 
constructing paths.


 So solution would be something like
app-setApplicationName(harbour-yourapp);
app-setOrganizationName(harbour-yourapp);

 And then QStandardPaths will start giving paths that follow harbour 
guidance.


BR,
 Vesku


On 01/19/2014 05:32 PM, Robin Burchell wrote:

Hi,

Can you please provide a small sample demonstrating this? As I'm quite 
sure it works for our own uses.


BR,
Robin

On 19 Jan 2014, at 14:34, Sylvain B. sth...@hotmail.com 
mailto:sth...@hotmail.com wrote:



Hey,
My app did not want to read the some cached content it was supposed 
to have written inQStandardPaths::CacheLocation.
To understand why, I tried to run it from the terminal, and... 
everything is working fine.
Since we don't have logs when we run the app directly from Launcher, 
I updated it to display some logs directly in the UI and I figured 
out that, when the app is run from the Launcher on the actual device 
(it's ok on the emulator), QStandardPaths does not work correctly:


QStandardPaths::CacheLocationreturns 
/home/nemo/.cache/mdeclarativecache_pre_initialized_qapplication-X


X is a random number, so each time I run my app, it creates a new 
one.
When run from terminal,QStandardPaths::CacheLocationcorrectly returns 
/home/nemo/.cache/


I tried withQStandardPaths::DataLocationbut it's the same, I get 
/home/nemo/.local/share/AppName/mdeclarativecache_pre_initialized_qapplication-X


So for the moment, I temporarily hardcoded /home/nemo/.cache/

Thanks!
Sylvain.
___
SailfishOS.org http://sailfishos.org/Devel mailing list




___
SailfishOS.org Devel mailing list



--
Vesa-Matti Hartikainen
Jolla Oy
http://jolla.com
p. +358 50 487 6067

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] GPS initially shows old location

2014-01-20 Thread christopher . lamb

Hi Aaron

Thanks, I will give that a whorl and report back.

I guess something like if the timestamp is older than say 10 minutes  
they should not be trusted (either not shown, or marked in some way).


Chris

Zitat von Aaron McCarthy aaron.mccar...@jolla.com:


Hi,

On Fri, 17 Jan 2014 17:09:37 christopher.l...@thurweb.ch wrote:

Is it possible that the Jolla GPS / GPS Software stack initially shows
the last location acquired?

This is the behaviour I am observing.

At the moment I am sitting in an office building, which has poor GPS
reception, yet my app immediately shows GPS Coordinates. By peaking I
can see that the GPS icon is flashing, and thus no fix has been
acquired.

Having checked the GPS coordinates with Google Earth, the coords are
actually for a location several kilometers away - in the middle of a
set of railway tracks that I travel along to and from work. As I do
lots of mobile development on the train, this is a plausible location
for where the Jolla last got a fix.

By comparison the same app running on my old Nokia N9 gets NaN from
the GPS for longitude and lattitude until it gets a fix. I can then
translate this into a user friendly text on the GUI No valid position
yet, and stop the user from proceeding further into the app until a
true fix is acquired.

If my understanding of the behaviour of the Jolla GPS is correct, is
there anyway I can stop it giving me the old fix? It is important to
my app that the coords shown are as accurate as possible, otherwise a
recovery party / rescue helicopter may be mis-directed.


This is a feature in Qt Positioning. Only the coordinates and timestamp are
saved. Use the timestamp to check if the location data is old. The accuracy
values of the position will be NaN.

Cheers,

--
Aaron McCarthy
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to attach a page to initial page?

2014-01-20 Thread Tobi D .
Thank you Andrey! That's exactly what I was looking for.

Best regards,
Tobi

 Date: Mon, 20 Jan 2014 13:38:45 +0600
 From: coderusin...@gmail.com
 To: devel@lists.sailfishos.org
 Subject: Re: [SailfishDevel] How to attach a page to initial page?
 
 onStatusChanged: {
 if (status === PageStatus.Active  pageStack.depth === 1) {
 pageStack.pushAttached(SourcesPage.qml, {});
 }
 }
 
 On 20.01.2014 13:37, Kalle Vahlman wrote:
  2014/1/17 Tobi D. schlaraffenl...@hotmail.com:
  Hi there,
 
  How can I push an attached page to my initial page on the pageStack?
 
  I'd like to have a behavior similar to the Jolla Store app. There you can
  push to the next page to get categories when you are on initial page.
 
  I tried several thing to achieve this, but didn't get it work. Doing an
  pushAttached to pageStack in onComplete of my initial page ends in 
  error
  message that you can not push a page on stack while another push is 
  running.
  onComplete is from Component (as opposed from Item), so it doesn't
  indicate the page is ready.
 
  A better place for pushing would probably be onStatusChanged(), when
  the status changes to Active.
 
 
 ___
 SailfishOS.org Devel mailing list
  ___
SailfishOS.org Devel mailing list

[SailfishDevel] QtWebKit QWebView

2014-01-20 Thread Hannes Rantzsch
Hi,

I'm trying to get the content of a website. Since SilicaWebView doesn't
seem to provide this, I want to write a C++ class that does. QWebView
from QtWebKit should be able to do this (this example is actually
perfect:
http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-example.html).

However, I cannot include QWebView (no such file [...]) and including
QtWebKit/QtWebKit does not give me the QWebView either.

I did add QT += webkit to my .pro-file.

What am I missing?


Thanks a lot,

Hannes
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QtWebKit QWebView

2014-01-20 Thread Aaron McCarthy
Hi,

On Mon, 20 Jan 2014 23:27:02 Hannes Rantzsch wrote:
 I'm trying to get the content of a website. Since SilicaWebView doesn't
 seem to provide this, I want to write a C++ class that does. QWebView
 from QtWebKit should be able to do this (this example is actually
 perfect:
 http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e
 xample.html).
 
 However, I cannot include QWebView (no such file [...]) and including
 QtWebKit/QtWebKit does not give me the QWebView either.
 
 I did add QT += webkit to my .pro-file.
 
 What am I missing?

QWebPage is in WebKit widgets.

QT += webkitwidgets

But widgets aren't supported.

If you don't need to display the web page, you can use QWebFrame and follow 
the example you linked to from there.

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list


[SailfishDevel] Project Kits lost on Target Refresh

2014-01-20 Thread christopher . lamb

Hi All

If I do a QtCreator / SailfishOS/ Targets / Manage Targets / Target  
/ Manage / Sync, with project(s) open in QtCreator, then I lose the  
kits of the open project(s), and have to re-add these.


Chris


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtWebKit QWebView

2014-01-20 Thread Hannes Rantzsch
Hi Aaron, thank you for your answer.

I tried QWebFrame, but it says incomplete type. Apparently QWebFrame is
only forward declared in QWebElement (which is available, but on it's
own of no use I guess). Or am I simply missing some #include?

Any ideas?


Thanks,

Hannes


On 01/21/2014 02:37 AM, Aaron McCarthy wrote:
 Hi,

 On Mon, 20 Jan 2014 23:27:02 Hannes Rantzsch wrote:
 I'm trying to get the content of a website. Since SilicaWebView doesn't
 seem to provide this, I want to write a C++ class that does. QWebView
 from QtWebKit should be able to do this (this example is actually
 perfect:
 http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e
 xample.html).

 However, I cannot include QWebView (no such file [...]) and including
 QtWebKit/QtWebKit does not give me the QWebView either.

 I did add QT += webkit to my .pro-file.

 What am I missing?
 QWebPage is in WebKit widgets.

 QT += webkitwidgets

 But widgets aren't supported.

 If you don't need to display the web page, you can use QWebFrame and follow 
 the example you linked to from there.

 Cheers,


___
SailfishOS.org Devel mailing list