Re: [SailfishDevel] pageStack.pop() - send paramater to prev page

2014-06-06 Thread Mikko Leppänen
You could also create a shared (stateless) JS library which you can use to share variables between different qml documents. ​/Mikko​ 2014-06-06 9:47 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com: i have an another idea for you: ... var newPage =

Re: [SailfishDevel] Technical question: populating ListModel from C++

2014-05-23 Thread Mikko Leppänen
Hi, Or if you don't want to subclass e.g. qabstractitemmodel, you can always return a QVariantList(or QList) from c++ and expose that sequence to QML. Then use that JS array to populate ListModel. /Mikko 2014-05-23 10:53 GMT+03:00 Markus Svensson markus.svens...@me.com: Hi, I have done the

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-26 Thread Mikko Leppänen
Hi, Try creating Bloomfilters class instance before declaring view, and store app and view either to qscopedpointer or qsharedpointer. /Mikko 2014-02-26 13:15 GMT+02:00 antonio.cano.go...@ovi.com: Hi Thomas, I did both modification but the code does not work yet. Here is the new code:

Re: [SailfishDevel] ComboBox with many MenuItems

2014-01-22 Thread Mikko Leppänen
Hi, Look at the thread: ​​ ​​ ​​ http ​s​ ://www.mail-archive.com/devel@lists.sailfishos.org/msg02026.htmlhttp://www.mail-archive.com/devel@lists.sailfishos.org/msg02026.html ​/Mikko​ 2014/1/22 Franck Routier (perso) a...@mecadu.org Hi, I have a ComboBox with MenuItem. OnClicked, each

Re: [SailfishDevel] Does BackgroundItem not accept all elements?

2014-01-22 Thread Mikko Leppänen
Hi, Define some height for the separator item. /Mikko 2014/1/22 Gabriel Böhme m.gabrielboe...@googlemail.com Hi sailors, I have a ListView and want to create a delegate for it. So I use the BackgroundItem as Silica Documentation recommend, but it seems, that the BackgroundItem is not

Re: [SailfishDevel] Does BackgroundItem not accept all elements?

2014-01-22 Thread Mikko Leppänen
?! Gabriel. *Von: *Mikko Leppänen *Gesendet: *Mittwoch, 22. Januar 2014 13:15 *An: *Sailfish OS Developers *Antwort an: *Sailfish OS Developers *Betreff: *Re: [SailfishDevel] Does BackgroundItem not accept all elements? Hi, Define some height for the separator item. /Mikko 2014/1/22

Re: [SailfishDevel] QML Timer stops running

2014-01-15 Thread Mikko Leppänen
Hi, I don't know but perhaps you can use qtsensors(e.g. tapsensor) in order to track/register some special event indicating that the phone is live again. ​-Mikko​ 2014/1/15 Luca Donaggio donag...@gmail.com I'm in a similar situation: I've written a small app for my personal use that

Re: [SailfishDevel] Request for modern C++ compiler in the SailfishOS SDK

2013-12-31 Thread Mikko Leppänen
Hi, I agree. It would be good to have an up to date version of gcc, and also support for clang is welcome (better diagnostics, faster compile times and full c++11 conformance). Actually Apple has fully replaced gcc to clang in Xcode 5. I have asked about this from the developer-care but never

Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Mikko Leppänen
Hi, Use smart pointers on app, view and udp, and remove those delete statements. -Mikko Mikael Hermansson m...@7b4.se kirjoitti 22.12.2013 kello 20.24: Seems there is no point use the connect signal in normal case? Because the app shall close correct without those. However in my

[SailfishDevel] ContextMenu doesn't invoke a signal handler

2013-12-21 Thread Mikko Leppänen
Hi, I have a case where a column contains multiple Comboboxes and each of these boxes have a different number of menuitems inside the Contextmenu. Now everything works fine if the contextmenu only contains a few items and the focus stays on the current page. However when there's more items to be

Re: [SailfishDevel] State is persistent when I come back to a page, how to avoid this ?

2013-12-18 Thread Mikko Leppänen
Hi, You can try something like: onStatusChanged: { if (status === PageStatus.Activating) { card.state = hide; // card = id for card component } } Add above statement inside the CardPage. HTH, Mikko 2013/12/18 Franck Routier (perso) a...@mecadu.org -BEGIN

[SailfishDevel] Fail to send an email in Qt

2013-07-01 Thread Mikko Leppänen
Hi, I'm trying to send an email from my app but the following error messages appear in the application output whenever I attempt to send an email: *void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError QLocalSocket::connectToServer: Invalid name* ** *Could not connect to QCop

[SailfishDevel] A problem with ComboBox Element

2013-05-23 Thread Mikko Leppänen
Hi, I need to use the ComboBox element in my project but I can't seem to get it work like it should. The problem is that I'm not able to get the ContextMenu appear and list all the options. According to reference it should open when clicking either a label or value. What I'm doing wrong here?