Re: [SailfishDevel] QTLocation not part of QT5, what to do?

2013-08-04 Thread Martin Kolman
Also, coldn't be location data accessed through DBUS directly from the ophono framework, for the time being ? Just a guess, but i remember that the FSO (freesmartphone.org) framework exported GPS data to DBUS, so ophono might do the same. 4.8.2013 22:11, Lorn Potter: I believe the goal for QtL

Re: [SailfishDevel] QTLocation not part of QT5, what to do?

2013-08-04 Thread Lorn Potter
I believe the goal for QtLocation to be included with Qt is 5.2 On 04/08/2013, at 2:32 AM, Mario Bob Jelica wrote: > Hi all, > > Seeing how the QTLocation is being (heavily) refactored right now, and not > part of QT5 at this time, what are all of us who are doing location-aware > apps to do

Re: [SailfishDevel] daemon

2013-08-04 Thread mobiletabletsblog
Thank you. That appears to be what I was looking for.

Re: [SailfishDevel] Fwd: Alpha 2: passing simple properties from main.cpp to qml: A solution

2013-08-04 Thread Erlend Boe
Hoi Chris after using the patch, it is also working for me. However, I have some other problems: * opening my sqlite DB (1.7 GB) fails with QSqlError(-1, "Error opening database", "out of memory") * debugging fails with "connection to remote server failed: tcp:localhost:1: Bad file descrip

[SailfishDevel] Fwd: Alpha 2: passing simple properties from main.cpp to qml: A solution

2013-08-04 Thread christopher . lamb
Hi All Just a quick note to say that Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer app(Sailfish::createApplication(argc, argv)); QScopedPointer view(Sailfish::createView()); view->rootContext()->setContextProperty("cppproperty", "Hello world"); Sailfish::set

Re: [SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml: A bug?

2013-08-04 Thread christopher . lamb
Salut Lucien Maybe it is clearer with Code examples I was doing this, which gives me an error, but seems to work! Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer app(Sailfish::createApplication(argc, argv)); QScopedPointer view(Sailfish::createView("main.qml")); v

[SailfishDevel] import Sailfish.Silica.theme 1.0

2013-08-04 Thread christopher . lamb
Hi all I have noticed some things to do with the handling of Silica Theme. The default project now has an import to import Sailfish.Silica.theme 1.0 on FirstPage.qm However this import is underlined in red (in QtCreator), which implies that it is not installed. This import is not added b

Re: [SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml: A bug?

2013-08-04 Thread Lucien XU
Hello guys ! It might be useful to use qmlRegister**Type (uncreatable, singleton etc.) to expose C++ components to QML. But if you really want to use rootContext()- >setContextProperty, you have to be cautious. Actually, if you pass the qml file to the view before registering C++ components, th

Re: [SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml: A bug?

2013-08-04 Thread christopher . lamb
Hi Martin Curiouser and Curiouser! Just to be sure, I went back and tested your suggestion in a demo project based on the default "Hello Sailors" new project template. Here I pass the c++ property cppproperty with the value "Hello World". In the QML FirstPage this is concatenated to the "H

Re: [SailfishDevel] Alpha 2: passing simple properties from

2013-08-04 Thread christopher . lamb
@Mario yes BB10 seems to have a setContextProperty (I found this while googling for a Sailfish solution). http://developer.blackberry.com/cascades/documentation/dev/integrating_cpp_qml/ @Martin I tried your suggestion before posting my question: QScopedPointer view(Sailfish::createView("mai

Re: [SailfishDevel] Alpha 2: passing simple properties from

2013-08-04 Thread Mario Zorz
main.cpp to qml MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Wait, that setContextProperty is still there in Qt 4.8 shipped with blackberry 10 as well. Sure it was only in the Nokia branch? Mario De: Martin Grimme Enviado: 04/08/2013 09:31 a.m. Para

Re: [SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml

2013-08-04 Thread Ville M. Vainio
Also, there is qt-project.org/doc/qt-5.0/qtqml/qqmlengine.html#qmlRegisterSingletonType On Aug 4, 2013 3:31 PM, "Martin Grimme" wrote: > Hi, > > you don't want to set the context property on the > QmlApplicationViewer, which was dead Nokia code to target Symbian and > Harmattan, anyway. > QmlApp

Re: [SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml

2013-08-04 Thread Martin Grimme
Hi, you don't want to set the context property on the QmlApplicationViewer, which was dead Nokia code to target Symbian and Harmattan, anyway. QmlApplicationViewer was derived from QmlView, where it got the rootContext() method from. With Qt5, QmlView was renamed to QQuickView. And when using the

[SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml

2013-08-04 Thread christopher . lamb
Hi all What is the recommended way to pass simple c++ properties from the main.cpp to the QML part of a project using the Qt 5 Alpha? In the good old days of the first Alpha, I used to do this Harmattan style using QmlApplicationViewer viewer; viewer.rootContext()->setContextPrope

[SailfishDevel] Bug in the Silica Reference docs and possible bug in the Dialog component

2013-08-04 Thread Superpelican
Hello, Sfiet_Konstantin and I have had another debugging session on IRC recently with my app. (http://merproject.org/logs/%23sailfishos/%23sailfishos.2013-08-03.log) I had defined a handler that would be called when the user accepted a dialog. However we saw that the handler was never called.

Re: [SailfishDevel] daemon

2013-08-04 Thread Jan Sedlák
I think that Sailfish uses systemd. In short: systemctl start/stop qwerty.service, systemctl enable/disable qwerty.service. 4. 8. 2013 v 2:32, "Sanjeev (EIPI)" : > Hello, > > Is there a SailfishOS equivalent of Debian style Daemon: > > e.g. start-stop-daemon --start > > In Sailfish emulator,

Re: [SailfishDevel] daemon

2013-08-04 Thread christopher . lamb
Hi Sanjeev I have not yet used Daemons, but I happened to see mention of them on the Sailfish Harmattan porting page https://sailfishos.org/wiki/Porting/Harmattan There is a link to: http://freedesktop.org/wiki/Software/systemd/ Hope it helps Chris Zitat von "Sanjeev (EIPI)" : Hello,