Re: [SailfishDevel] LED Flash functionality on a real Jolla

2014-01-23 Thread christopher . lamb

Hi Mohammed

thanks. I will try that later (am at work at the moment). I will also  
need to look into the resource policy engine, as that is new to me.


Harbour entry is becoming less and less of a concern for me. My app  
does too many things that are not considered kosher under the current  
Harbour rules (sending SMS direct, use of QtContacts, LED access,  
other Qt Libraries etc.)


As an aside, on Harmattan while I got the the Gstreamer route working  
in developer mode, I never got it working when launching the app  
direct from the device (and thus chose the QCamera approach). This was  
probably down to AEGIS, but that should not be a concern on the Jolla.


Chris


Zitat von Mohammed Hassan mohammed.has...@jollamobile.com:


On Wed, Jan 22, 2014 at 08:29:19PM +0100, christopher.l...@thurweb.ch wrote:
[...]

Solution 3)

Via a Gstreamer QML Plugin.

I dug out some old code that worked on Harmattan, basically the code
from this link to create a qml plugin

http://developer.nokia.com/Community/Wiki/How_to_turn_your_camera_flash_into_a_torch_on_Harmattan_using_GStreamer

On Sailfish this compiles, but gives the following error when I
start the torch.

(GSTTorch:708): GStreamer-CRITICAL **: gst_element_set_state:
assertion `GST_IS_ELEMENT (element)' failed


This is not the recommended way but it's the only way to get flash  
light to work but I have to
warn you that it wil prevent your app from entering harbour. You  
will also have to make use
of resource policy engine to arbitrate access to camera. Failing to  
do so will lead to breaking

jolla camera app.

Simply replace subdevsrc with droidcamsrc and use droideglsink as  
the sink and

it should work fine.

Cheers,
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] OpenGL Under Selica QML

2014-01-23 Thread Wim de Vries

On 01/22/2014 05:34 PM, David Greaves wrote:

Fantastic - I just verified that it works here too.

How are you getting the GL into the QML scene?

From one of the GL examples (Squircle in c++):
glViewport() determining the position (not yet QML) in Page.

main c++:
qmlRegisterTypeSquircle(OpenGLUnderQML, 1, 0, Squircle);

QML:
import OpenGLUnderQML 1.0
Squircle {
SequentialAnimation on t {
NumberAnimation { to: 1; duration: 2500; easing.type: 
Easing.InQuad }
NumberAnimation { to: 0; duration: 2500; easing.type: 
Easing.OutQuad }

loops: Animation.Infinite
running: true
}




I created a GLItem which allows property connections and sizing so I know where
to draw in the window. I then inherit from this item and render into the
viewport it sets up.

I will have a look at to.

Thanks.
r
wim


David

On 22/01/14 14:30, wsvries wrote:

I got it working!

ApplicationWindow
{
_backgroundVisible : false

...
}

This way the ApplicationWindow (background) doesn't  overpaint the OpenGL.

Silica items now nicely and transparantly overlap the OpenGL.

r
wim


wsvries schreef op 2014-01-22 14:50:

Thanks,
I'll stick to standard QML then.
r
wim

David Greaves schreef op 2014-01-22 12:04:

On 22/01/14 10:59, David Greaves wrote:

The other option is to render to an FBO and then assign that to a QML item

http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html#mixing-scene-graph-and-opengl


AFAIUI it's slightly lower performance but it does give you total control over
layering your GLES window into your QML.

and

http://qt-project.org/doc/qt-5/qtquick-scenegraph-textureinthread-example.html
___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] OpenGL Under Selica QML

2014-01-23 Thread David Greaves
On 23/01/14 09:28, Wim de Vries wrote:
 On 01/22/2014 05:34 PM, David Greaves wrote:
 Fantastic - I just verified that it works here too.

 How are you getting the GL into the QML scene?
 From one of the GL examples (Squircle in c++):
 glViewport() determining the position (not yet QML) in Page.
 
 main c++:
 qmlRegisterTypeSquircle(OpenGLUnderQML, 1, 0, Squircle);
 
 QML:
 import OpenGLUnderQML 1.0
 Squircle {
 SequentialAnimation on t {
 NumberAnimation { to: 1; duration: 2500; easing.type: Easing.InQuad }
 NumberAnimation { to: 0; duration: 2500; easing.type: Easing.OutQuad }
 loops: Animation.Infinite
 running: true
 }

Yep - I started there too :)

 I created a GLItem which allows property connections and sizing so I know 
 where
 to draw in the window. I then inherit from this item and render into the
 viewport it sets up.
 I will have a look at to.

This is how I map the viewport to the Item location:

class GLItem : public QQuickItem, protected QOpenGLFunctions
...
void GLItem::paint()
{
if (!m_program) {
m_program = new QOpenGLShaderProgram();
connect(window()-openglContext(), SIGNAL(aboutToBeDestroyed()),
this, SLOT(cleanup()), Qt::DirectConnection);
initializeOpenGLFunctions();
this-prep(); // Do any one-off setup that needs the glcontext to be
setup (eg the shader loading)
}
QRectF vpr = mapRectToScene(QRectF(0.0,0.0,width(),height()));
glViewport( vpr.x(), (window()-height() -( vpr.y() + vpr.height())),
vpr.width(), vpr.height());

...

David

___
SailfishOS.org Devel mailing list


[SailfishDevel] How to hide pushup menu?

2014-01-23 Thread Tero Siironen
I have PushUpMenu in my app which currently has only one item, and in
some situations also that item should not be visible. How can I hide
the menu?

I tried to set MenuItem's visibility to false, but that lead to weird
behaviour; PushUpMenu is still there and empty, but the empty menu can
be pushed up about screen height. I also tried to use visible property
in PushUpMenu, but that doesn't seem to hide the menu.

Disabling the MenuItem could be one option, but as it still shows the
item's label it would be a bit misleading for the user in my
situation. I would prefer to hide the whole PushUpMenu when there's no
items that could be used.


-- 
Tero
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] LED Flash functionality on a real Jolla

2014-01-23 Thread Artem Marchenko
Cool to see that ported, Chris! Are you into porting a tracker such as
Gaggle?

I am flying a paraglider myself, so would be interested to help.

As for LED. I did a flashlight that is currently in the app store. Here is
the state of art:

1. Qt Multimedia's torch mode is promised to come, but does not work yet

2. GStreamer way should work and that's what flashlight uses

3. GStreamer library, however, is not allowed to link to in harbour rules,
so you will have to provide your own copy of GStreamer

4. Resource policy is needed, but for now I go around it by just stopping
LED whenever app is not maximized. That's not exactly correct, but will do
for now

5. Note also that you can start LED in a shell by running gst-launch and..
that is actually a workaround flashlight is using while I am figuring out
the resource policy and how to provide gstreamer lib with the app.

I hope it helps.

Best regards,
Artem.


On Thu, Jan 23, 2014 at 10:16 AM, christopher.l...@thurweb.ch wrote:

 Hi Mohammed

 thanks. I will try that later (am at work at the moment). I will also need
 to look into the resource policy engine, as that is new to me.

 Harbour entry is becoming less and less of a concern for me. My app does
 too many things that are not considered kosher under the current Harbour
 rules (sending SMS direct, use of QtContacts, LED access, other Qt
 Libraries etc.)

 As an aside, on Harmattan while I got the the Gstreamer route working in
 developer mode, I never got it working when launching the app direct from
 the device (and thus chose the QCamera approach). This was probably down to
 AEGIS, but that should not be a concern on the Jolla.

 Chris


 Zitat von Mohammed Hassan mohammed.has...@jollamobile.com:


  On Wed, Jan 22, 2014 at 08:29:19PM +0100, christopher.lamb@thurweb.chwrote:
 [...]

 Solution 3)

 Via a Gstreamer QML Plugin.

 I dug out some old code that worked on Harmattan, basically the code
 from this link to create a qml plugin

 http://developer.nokia.com/Community/Wiki/How_to_turn_
 your_camera_flash_into_a_torch_on_Harmattan_using_GStreamer

 On Sailfish this compiles, but gives the following error when I
 start the torch.

 (GSTTorch:708): GStreamer-CRITICAL **: gst_element_set_state:
 assertion `GST_IS_ELEMENT (element)' failed


 This is not the recommended way but it's the only way to get flash light
 to work but I have to
 warn you that it wil prevent your app from entering harbour. You will
 also have to make use
 of resource policy engine to arbitrate access to camera. Failing to do so
 will lead to breaking
 jolla camera app.

 Simply replace subdevsrc with droidcamsrc and use droideglsink as the
 sink and
 it should work fine.

 Cheers,
 ___
 SailfishOS.org Devel mailing list




 ___
 SailfishOS.org Devel mailing list




-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to hide pushup menu?

2014-01-23 Thread sailfishmail

Hi, just guessing, but try if the menu has enabled property, most switches 
etc. Have it.

Br,
Asser

On Thu Jan 23 2014 12:35:40 GMT+0200 (EET), Tero Siironen wrote:

I have PushUpMenu in my app which currently has only one item, and in
some situations also that item should not be visible. How can I hide
the menu?

I tried to set MenuItem's visibility to false, but that lead to weird
behaviour; PushUpMenu is still there and empty, but the empty menu can
be pushed up about screen height. I also tried to use visible property
in PushUpMenu, but that doesn't seem to hide the menu.

Disabling the MenuItem could be one option, but as it still shows the
item's label it would be a bit misleading for the user in my
situation. I would prefer to hide the whole PushUpMenu when there's no
items that could be used.


-- 
Tero
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


[SailfishDevel] App interoperability the Sailfish Way. Particularly sharing between apps. Any ideas on how it can happen UI and API-wise?

2014-01-23 Thread Artem Marchenko
Hi there

Simplest you case. You are using Tweetian or Friends and want to save a
link to some read-it-later service, or share to a not built-in social
network (Russian vkontakte or Chinese Weibo) or even to a built-in app such
as Messaging or Email. Or you implement a whatsapp client and want to send
photos from both local hardrive and
dropbox/box/picasa/whatever-the-user-has.

To my understanding right now all of these use cases are simply not
possible (except for starting email/sms with a given text via
openUrlExternally).

*What are the Sailfish longer term plans regarding it?*
- Android-like intents to provide whichever service to whichever clients +
few standard intents?
- iOS-like hard coded intents to the known applications that support it?
- Something Linux standard?

Best regards,
Artem.

-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

[SailfishDevel] Built-in alarm

2014-01-23 Thread Nemehlo .
Hello Sailors,
just a quick one: is there a way how to check if the alarm clock is set and at 
what time? from within either C++ or QML code?
thanks a lot  ___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to hide pushup menu?

2014-01-23 Thread Tero Siironen
2014/1/23 Oleksii Serdiuk conta...@oleksii.name:
 Did you try setting `pushUpMenu` property to null?

 Docs say that it should be null if no push-up menu has been assigned:
 https://sailfishos.org/sailfish-silica/qml-sailfishsilica-silicaflickable.html#pushUpMenu-prop


Thanks for pointing that out, I have to try it, sounds like correct
way to do it.


-- 
Tero
___
SailfishOS.org Devel mailing list


[SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread dcaliste
Hello list members,

   Sorry for asking this stupid question, but I can't connect to the device with
ssh when this one is connected via USB in developer mode. I can ssh to it when
connecting through WLAN though.

   What I'm doing:
- enable developer mode and set-up a password (this one is working since I can
connect through WLAN) ;
- plug-in USB cable from the computer and choose developer mode connection ;
- the settings page tell me that the 192.168.2.15 address is affected to the USB
interface.
- I setup the computer to attribute 192.168.2.15/192.168.2.255 to the interface
on usb0, statically (it's working since ping 192.168.2.15 is responding).
- I ssh at this address with nemo as login, it's responding since it proposes to
add the hw key to the known host list, and then it's asking for the password,
but when I type it, I get permission denied. The password is alright since I can
ssh to the device when using WLAN connection.

   I've tried with a generated password from the interface also but no luck
neither. I've tried to find the logs of ssh, but was not able to find them,
before they were located in /var/log/auth, but not here. I've tried to look at
journalctl output but didn't found anything about rejected connection or ssh.
I've tried to google a bit, found the page http://elinux.org/Jolla but still get
permission denied.

   Can anyone help me on this, by pointing me where I can give a look to
understand what's happening, or by pointing out what I'm doing wrong.

Thanks in advance, and have a nice day,

Damien.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread Julius Loman
192.168.2.15 is Jolla's IP address. you have to set another IP address in the 
same
C class network to your usb0 interface. For example 192.168.2.14.

Julius

On Thu, Jan 23, 2014 at 03:01:08PM +0100, dcali...@free.fr wrote:
 Hello list members,
 
Sorry for asking this stupid question, but I can't connect to the device 
 with
 ssh when this one is connected via USB in developer mode. I can ssh to it when
 connecting through WLAN though.
 
What I'm doing:
 - enable developer mode and set-up a password (this one is working since I can
 connect through WLAN) ;
 - plug-in USB cable from the computer and choose developer mode connection ;
 - the settings page tell me that the 192.168.2.15 address is affected to the 
 USB
 interface.
 - I setup the computer to attribute 192.168.2.15/192.168.2.255 to the 
 interface
 on usb0, statically (it's working since ping 192.168.2.15 is responding).
 - I ssh at this address with nemo as login, it's responding since it proposes 
 to
 add the hw key to the known host list, and then it's asking for the password,
 but when I type it, I get permission denied. The password is alright since I 
 can
 ssh to the device when using WLAN connection.
 
I've tried with a generated password from the interface also but no luck
 neither. I've tried to find the logs of ssh, but was not able to find them,
 before they were located in /var/log/auth, but not here. I've tried to look at
 journalctl output but didn't found anything about rejected connection or ssh.
 I've tried to google a bit, found the page http://elinux.org/Jolla but still 
 get
 permission denied.
 
Can anyone help me on this, by pointing me where I can give a look to
 understand what's happening, or by pointing out what I'm doing wrong.
 
 Thanks in advance, and have a nice day,
 
 Damien.
 ___
 SailfishOS.org Devel mailing list

-- 

[ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 ]
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread dcaliste
Hello,

Selon Julius Loman l...@kyberia.net:
 192.168.2.15 is Jolla's IP address. you have to set another IP address in the
 same
 C class network to your usb0 interface. For example 192.168.2.14.
Thanks for replying promptly, but it's not working neither. Same results, I can
ping 192.168.2.14, but when I ssh to it with ssh nemo@192.168.2.14, I get the
password prompt (so ssh is indeed negociating with the device) but my password
doesn't work#8230;

Besides, I made a mistae in my first email, the netmask is indeed
255.255.255.0#8230;

Damien.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread Julius Loman
Assign 192.168.2.14 to your computer and do ssh nemo@192.168.2.15
It seems to me you are just connecting to your computer, not to Jolla device.

On Thu, Jan 23, 2014 at 03:11:21PM +0100, dcali...@free.fr wrote:
 Hello,
 
 Selon Julius Loman l...@kyberia.net:
  192.168.2.15 is Jolla's IP address. you have to set another IP address in 
  the
  same
  C class network to your usb0 interface. For example 192.168.2.14.
 Thanks for replying promptly, but it's not working neither. Same results, I 
 can
 ping 192.168.2.14, but when I ssh to it with ssh nemo@192.168.2.14, I get 
 the
 password prompt (so ssh is indeed negociating with the device) but my password
 doesn't work#8230;
 
 Besides, I made a mistae in my first email, the netmask is indeed
 255.255.255.0#8230;
 
 Damien.
 ___
 SailfishOS.org Devel mailing list

-- 

[ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 ]
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread dcaliste
Hello,

Selon Graham Cobb g+jo...@cobb.uk.net:
 On 23/01/14 14:01, dcali...@free.fr wrote:
 It sounds like you are connecting to the ssh on your own machine.  To
 test that you could try logging in to an account which exists on your
 own machine (or check the hw key, or set up a banner message).
Thanks, I've understand my mistake. It's working now. Thanks a lot and sorry for
the stupid question#8230;

Damien.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread Graham Cobb
On 23/01/14 14:01, dcali...@free.fr wrote:
 - I ssh at this address with nemo as login, it's responding since it proposes 
 to
 add the hw key to the known host list, and then it's asking for the password,
 but when I type it, I get permission denied. The password is alright since I 
 can
 ssh to the device when using WLAN connection.

It sounds like you are connecting to the ssh on your own machine.  To
test that you could try logging in to an account which exists on your
own machine (or check the hw key, or set up a banner message).

Setting up the interfaces correctly is error-prone.  Double and triple
check the instructions.

___
SailfishOS.org Devel mailing list


[SailfishDevel] Porting Symbian QML to Sailfish

2014-01-23 Thread Samuli Silvius
Hi,

Porting from Symbian app to Sailfish. What are the correct replacements in
Sailfish QML?

CommonDialog   -- ?

ToolBar, ToolBarLayout, ToolButton-- PulldownMenu?

SelectionDialog-- ?

QueryDialog-- ?

RadioButton-- ?

CheckableGroup -- ?


Br
-Samuli
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Porting Symbian QML to Sailfish

2014-01-23 Thread Andrey Kozhevnikov

CommonDialog   -- ComboBox

ToolBar,ToolBarLayout,ToolButton-- PulldownMenu/PushUpMenu/ComboBox

SelectionDialog-- ComboBox

QueryDialog-- Dialog

RadioButton-- Switch

CheckableGroup -- Switch



On 23.01.2014 22:02, Samuli Silvius wrote:

Hi,

Porting from Symbian app to Sailfish. What are the correct 
replacements in Sailfish QML?


CommonDialog   -- ?
ToolBar,ToolBarLayout,ToolButton-- PulldownMenu?
SelectionDialog-- ?
QueryDialog-- ?
RadioButton-- ?
CheckableGroup -- ?
Br
-Samuli


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Cannot ssh to device in USB developer mode

2014-01-23 Thread christopher . lamb

Hi Damien

congratulations on getting in!

There is not such thing as a stupid question, only stupid answers 8-)

Now that you can connect things by SSH, if you want to do so using an  
RSA key in the same way that you can connect to the emulator, here is  
how:


http://flyingsheeponsailfish.blogspot.ch/2014/01/connecting-to-jolla-with-rsa-key-file.html

Chris


Zitat von dcali...@free.fr:


Hello,

Selon Graham Cobb g+jo...@cobb.uk.net:

On 23/01/14 14:01, dcali...@free.fr wrote:
It sounds like you are connecting to the ssh on your own machine.  To
test that you could try logging in to an account which exists on your
own machine (or check the hw key, or set up a banner message).
Thanks, I've understand my mistake. It's working now. Thanks a lot  
and sorry for

the stupid question#8230;

Damien.
___
SailfishOS.org Devel mailing list






___
SailfishOS.org Devel mailing list


[SailfishDevel] Segmentation fault: No such file or directory.

2014-01-23 Thread Sylvain B .
Hello,

I am facing some segfaults so I've decided to install GDB and the debug 
packages of some Qt5 libs on my phone (Hope that won't cause issues with future 
Sailfish updates?).
But this does not help me, since they apparently aren't coming from my code.

For the first, I have a back button on a Map. If I start a flick and I press 
the back button while the Map is still flicking, it crashes. But it also 
crashes sometimes when the flick has finished so I can't simply test that flick 
is finished before doing the pagestack.pop():

Program received signal SIGSEGV, Segmentation fault.
QString::lastIndexOf (this=0x4, ch=..., from=-1, cs=Qt::CaseSensitive) at 
tools/qstring.cpp:2727
2727tools/qstring.cpp: No such file or directory.
(gdb) backtrace
#0  QString::lastIndexOf (this=0x4, ch=..., from=-1, cs=Qt::CaseSensitive) at 
tools/qstring.cpp:2727
#1  0x40089bf0 in QGeoTileCache::~QGeoTileCache (this=0x400a750c, 
__in_chrg=optimized out) at maps/qgeotilecache.cpp:202
#2  0x4008a06c in QGeoTileCache::~QGeoTileCache (this=0x2ad71fd0, 
__in_chrg=optimized out) at maps/qgeotilecache.cpp:208
#3  0x4007ad98 in 
QGeoTiledMappingManagerEnginePrivate::~QGeoTiledMappingManagerEnginePrivate 
(this=0x2a2b6b10, __in_chrg=optimized out)
at maps/qgeotiledmappingmanagerengine.cpp:328
#4  0x4007aefc in QGeoTiledMappingManagerEngine::~QGeoTiledMappingManagerEngine 
(this=0x2a4d5a68, __in_chrg=optimized out) at 
maps/qgeotiledmappingmanagerengine.cpp:68
#5  0x47ca43b0 in 
QGeoTiledMappingManagerEngineNokia::~QGeoTiledMappingManagerEngineNokia 
(this=0x2a4d5a68, __in_chrg=optimized out)
at qgeotiledmappingmanagerengine_nokia.cpp:139
#6  0x47ca43fc in 
QGeoTiledMappingManagerEngineNokia::~QGeoTiledMappingManagerEngineNokia 
(this=0x2a4d5a68, __in_chrg=optimized out)
at qgeotiledmappingmanagerengine_nokia.cpp:139
#7  0x4007a210 in ~QGeoMappingManagerPrivate (this=0x2a84d6c0, 
__in_chrg=optimized out) at maps/qgeomappingmanager.cpp:190
#8  QGeoMappingManager::~QGeoMappingManager (this=0x2a51a010, 
__in_chrg=optimized out) at maps/qgeomappingmanager.cpp:96
#9  0x4007a244 in QGeoMappingManager::~QGeoMappingManager (this=0x2a51a010, 
__in_chrg=optimized out) at maps/qgeomappingmanager.cpp:97


For the second, I have a SilicaListView with images in the sections. If I click 
on an Item and come back quickly on this page, once in a while I get:

Program received signal SIGSEGV, Segmentation fault.
QQuickWindowPrivate::polishItems (this=0x2a0352c0) at items/qquickwindow.cpp:258
258 items/qquickwindow.cpp: No such file or directory.
(gdb) backtrace
#0  QQuickWindowPrivate::polishItems (this=0x2a0352c0) at 
items/qquickwindow.cpp:258
#1  0x4019856c in polishAndSync (this=0x2a032f50) at 
scenegraph/qsgthreadedrenderloop.cpp:1002
#2  QSGThreadedRenderLoop::polishAndSync (this=0x2a032f50) at 
scenegraph/qsgthreadedrenderloop.cpp:978
#3  0x40199038 in QSGThreadedRenderLoop::event (this=optimized out, 
e=optimized out) at scenegraph/qsgthreadedrenderloop.cpp:1070
#4  0x40b71f8c in QCoreApplicationPrivate::notify_helper (this=0x2a016d88, 
receiver=0x2a032f50, event=0xbefff544) at kernel/qcoreapplication.cpp:992
#5  0x40b71fe4 in QCoreApplication::notify (this=optimized out, 
receiver=optimized out, event=optimized out) at 
kernel/qcoreapplication.cpp:937
#6  0x40b71c78 in QCoreApplication::notifyInternal (this=0x2a015af8, 
receiver=optimized out, event=0xbefff544) at kernel/qcoreapplication.cpp:875
#7  0x40bbc520 in sendEvent (event=0xbefff53c, receiver=optimized out) at 
../../src/corelib/kernel/qcoreapplication.h:232


Thank you for any advice you can give me. (I can provide the complete backtrace)

-- 
Sylvain.
  ___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to hide pushup menu?

2014-01-23 Thread Tero Siironen
I found out that I had to set the contentHeight property for the flickable to 
get rid of the floating pushupmenu”. And then it was enough to set enabled: 
false and visible: false to get the menu not showing.

I tried also setting the pushup property null, but then I had to define the 
menu outside of the flickable and that caused another interesting side effect. 
There was black diagonal line through the page. I have no idea where that came 
from.

But anyway, now it works like I wanted it to work


— 
Tero


Tero Siironen izer...@gmail.com kirjoitti 23.1.2014 kello 13.55:

 2014/1/23 Oleksii Serdiuk conta...@oleksii.name:
 Did you try setting `pushUpMenu` property to null?
 
 Docs say that it should be null if no push-up menu has been assigned:
 https://sailfishos.org/sailfish-silica/qml-sailfishsilica-silicaflickable.html#pushUpMenu-prop
 
 
 Thanks for pointing that out, I have to try it, sounds like correct
 way to do it.
 
 
 -- 
 Tero

___
SailfishOS.org Devel mailing list


[SailfishDevel] Help/guidance request - camera viewfinder with qml overlay

2014-01-23 Thread Kimmo Lindholm
...For TOH Thermal viewer application.


Going to use a panasonic Grid-eye 8x8 infrared sensor (1), attach it to 'TOH' 
and get the thermal data to the application.

Now i need just example how to get camera viewfinder on the screen and on top 
of which i can draw overlay with QML.

Result could be something like fluke VT02 
(http://www.fluke.com/fluke/caen/thermometers/infrared-thermometers/vt02-visual-ir-thermometer.htm?PID=75051)

(1). See this page 
http://eewiki.net/display/projects/Panasonic%20GridEYE%20Breakout%20Board%20and%20GUI


-kimmo



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Segmentation fault: No such file or directory.

2014-01-23 Thread Aaron McCarthy
Hi,

On Thu, 23 Jan 2014 21:17:41 Sylvain B. wrote:
 I am facing some segfaults so I've decided to install GDB and the debug
 packages of some Qt5 libs on my phone (Hope that won't cause issues with
 future Sailfish updates?). But this does not help me, since they apparently
 aren't coming from my code.
 
 For the first, I have a back button on a Map. If I start a flick and I press
 the back button while the Map is still flicking, it crashes. But it also
 crashes sometimes when the flick has finished so I can't simply test that
 flick is finished before doing the pagestack.pop():
 
 Program received signal SIGSEGV, Segmentation fault.
 QString::lastIndexOf (this=0x4, ch=..., from=-1, cs=Qt::CaseSensitive) at
 tools/qstring.cpp:2727 2727tools/qstring.cpp: No such file or
 directory.
 (gdb) backtrace
 #0  QString::lastIndexOf (this=0x4, ch=..., from=-1, cs=Qt::CaseSensitive)
 at tools/qstring.cpp:2727 #1  0x40089bf0 in QGeoTileCache::~QGeoTileCache
 (this=0x400a750c, __in_chrg=optimized out) at maps/qgeotilecache.cpp:202
 #2  0x4008a06c in QGeoTileCache::~QGeoTileCache (this=0x2ad71fd0,
 __in_chrg=optimized out) at maps/qgeotilecache.cpp:208 #3  0x4007ad98 in
 QGeoTiledMappingManagerEnginePrivate::~QGeoTiledMappingManagerEnginePrivate
 (this=0x2a2b6b10, __in_chrg=optimized out) at
 maps/qgeotiledmappingmanagerengine.cpp:328
 #4  0x4007aefc in
 QGeoTiledMappingManagerEngine::~QGeoTiledMappingManagerEngine
 (this=0x2a4d5a68, __in_chrg=optimized out) at
 maps/qgeotiledmappingmanagerengine.cpp:68 #5  0x47ca43b0 in
 QGeoTiledMappingManagerEngineNokia::~QGeoTiledMappingManagerEngineNokia
 (this=0x2a4d5a68, __in_chrg=optimized out) at
 qgeotiledmappingmanagerengine_nokia.cpp:139
 #6  0x47ca43fc in
 QGeoTiledMappingManagerEngineNokia::~QGeoTiledMappingManagerEngineNokia
 (this=0x2a4d5a68, __in_chrg=optimized out) at
 qgeotiledmappingmanagerengine_nokia.cpp:139
 #7  0x4007a210 in ~QGeoMappingManagerPrivate (this=0x2a84d6c0,
 __in_chrg=optimized out) at maps/qgeomappingmanager.cpp:190
 #8  QGeoMappingManager::~QGeoMappingManager (this=0x2a51a010,
 __in_chrg=optimized out) at maps/qgeomappingmanager.cpp:96 #9  0x4007a244
 in QGeoMappingManager::~QGeoMappingManager (this=0x2a51a010,
 __in_chrg=optimized out) at maps/qgeomappingmanager.cpp:97

Thank you for reporting this. I have created a bug for it in our bug tracking 
system. Does the crash happen every time when popping the pagestack while the 
Map is still panning? How frequently does it happen when not panning the Map?

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Listening to Connman DBUS signals

2014-01-23 Thread Lorn Potter

On 23/01/2014, at 2:18 AM, Julius Loman l...@kyberia.net wrote:

 Hi
 
 this is for sure a beginners question, but I hope somebody can help me to sort
 it out. I want to listen to connman dbus events to determine connection 
 changes
 (I'm interested in receiving signal as soon as device connects to particular
 WLAN network).
 
 Using some examples I was able to capture dbus events on my KDE desktop 
 (albeit
 not connman related), but same code for SailfishOS does nothing. I guess my
 understanding of Dbus or QtBus is bad :)
 
 Here is my piece of code:
 
 #include wifimonitor.h
 #include QtDBus
 
 int main(int argc, char *argv[])
 {
QCoreApplication a(argc, argv);
WifiMonitor* receiver = new WifiMonitor;
 
qDebug()  Starting dbus monitor;
QDBusConnection system = QDBusConnection::systemBus();
if (!system.isConnected())
{
qFatal(Cannot connect to the D-Bus session bus.);
return 1;
}
system.connect(,
   /net/connman/technology/wifi,
   net.connman.Technology,
   PropertyChanged,
   receiver,
   SLOT(propertyChanged(const QDBusObjectPath))
   );

try something like this:

system.connect(net.connman,
  /net/connman/technology/wifi,
  net.connman.Technology,
  PropertyChanged,
  receiver,
  SLOT(propertyChanged(QString,QDBusVariant))
  );


 
return a.exec();
 }
 
  wifimonitor.h 
 
 #ifndef WIFIMONITOR_H
 #define WIFIMONITOR_H
 
 #include QObject
 #include QtDBus
 
 class WifiMonitor : public QObject
 {
Q_OBJECT
 public:
explicit WifiMonitor(QObject *parent = 0);
 
 signals:
 
 public slots:
void propertyChanged(const QDBusObjectPath in);
 };
 
 #endif // WIFIMONITOR_H
 
  wifimonitor.cpp 
 
 #include wifimonitor.h
 #include QtDBus
 
 WifiMonitor::WifiMonitor(QObject *parent) :
QObject(parent)
 {
 }
 
 void WifiMonitor::propertyChanged(const QDBusObjectPath in)
 {
qDebug()  DBus signal received;
qDebug()  PropertyChanged, ObjectPath:   in.path();
 }
 
 
 Thanks
 Julius
 
 -- 
 
 [ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 
 ]
 ___
 SailfishOS.org Devel mailing list

Lorn Potter
QtSensors/ Connectivity
llornkcor technologies / Jolla Mobile

___
SailfishOS.org Devel mailing list