Re: [SailfishDevel] QML arrays and memory leak
Dnia 2015-05-04, pon o godzinie 22:20 +0200, Kim Foder pisze: This works great, but it leaks memory fast, and after some time (between 1 2 hours) the OS kills all running apps! Any ideas how I can solve this? Possibly you are creating/destroying values so fast, that GC does not have time to kick in. Maybe try calling QJSEngine::collectGarbage() [1] manually every few iterations. (QQmlEngine subclasses QJSEngine) [1] http://doc.qt.io/qt-5/qjsengine.html#collectGarbage -- /o__ (_^' No problem is insoluble. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Pull data in background
Dnia 2015-05-02, sob o godzinie 22:27 -0300, Nicolas Cisco pisze: My problem is how should i poll notifications and messages. I have to periodically send an ajax call/http request to an url (eg: http://server addr/notifications) and the server will answer me with a json with all the new messages. Well... In SailfishOS the messaging framework is Telepathy. So if you really want to do it Sailfish-way, you would want to implement a Telepathy plugin for your protocol and plug it in as a standard messaging app backend. Having a hidden app or an own background daemon is kludgy and the reason Telepathy was invented as a solution. -- /o__ Beauty is transitory. (_^' Beauty survives. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Keeping background process running in Sailfish OS
Dnia 2015-05-03, nie o godzinie 05:08 +, Taixzo pisze: Is there a way to make an app launch a daemon process that does not get killed by this? It is very easy to launch a user-systemd lever service. Just create .service descriptor file and systemctl --user start ... it. If it becomes RAM hungry and OOM Killers slaps it, systemd will just restart it. If you code your daemon to behave on sudden death, no harm should be done. It is also very easy to control your service programatically with systemd D-Bus API. See my pebble[1] app for reference. [1] https://github.com/smokku/pebble/blob/master/app/pebbledinterface.cpp#L123 -- /o__ Q: What do agnostic, insomniac dyslexics do at night? (_^' A: Stay awake and wonder if there's a dog. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] open source app development and community participation
Dnia 2015-04-07, wto o godzinie 23:05 +0200, Andrin Bertschi pisze: Until now, I found it quite difficult to get to know people for a new app project or general speaking, get in touch with the community and thought that could help me if I write here on the mailing list. I host my Open Source projects on github.com and I've enabled gitter.im for most of them. It's a nice platform to talk in the context of the project and project rooms are getting busier every day, with most of involved people there. -- smoku @ http://abadcafe.pl/ @ http://xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Use of other aspects of Qt
Dnia 2014-11-22, sob o godzinie 12:45 -0700, Chris Sparks pisze: Well without qt_creator it makes developing apps more complicated and time consuming Qt Creator installed by SailfishOS SDK has a few plugins disabled by default. But they are still there and you can simply enable them in options if you need it. -- smoku @ http://abadcafe.pl/ @ http://xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Undo in SailfishOS apps
Dnia 2014-10-16, czw o godzinie 23:02 +0200, ulf.sw...@e.mail.de pisze: Perhaps just application specific logic? I didn't suffer from NIH syndrome yesterday ;) But I guess not many mobile phone apps have a need for undo. Remorse Item is kind of workaround for lack of real Undo. You have 5 seconds to change your mind, or else... -- Tomasz Sterna :(){ :|:};: http://abadcafe.pl/ http://xiaoka.com/portfolio signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] About emoji on Sailfish
Dnia 2014-10-11, sob o godzinie 22:27 +0800, service pisze: Hi, does qml text view support emoji on Sailfish OS? It seems not work on my code. QML Label supports any Unicode character. But you need fonts installed to be able to render characters. Default Sailfish OS installation does not provide Emoji font. You will find Emoji font and keyboard layout at: https://openrepos.net/content/penguin/emoji-keyboard -- Tomasz Sterna :(){ :|:};: http://abadcafe.pl/ http://xiaoka.com/portfolio signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Call events
Dnia 2014-10-08, śro o godzinie 11:00 +0300, Kaj-Michael Lang pisze: Is there some, official harbour approved, way to get notified about incoming/outgoing calls start/stop so my app can react to these events ? There is an official and very easy to use VoiceCallManager from org.nemomobile.voicecall module. But if you want harbour approved you need to copy-paste its code to your own app. See i.e. [1] for reference. [1] https://github.com/smokku/pebble/blob/master/daemon/voicecallmanager.cpp -- smk @ http://xiaoka.com/ ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Announcing Mono for Sailfish
Dnia 2014-08-22, pią o godzinie 12:12 +0300, Ville M. Vainio pisze: Better path than QtSharp would be just creating a QML bridge to Mono, i.e. instantiate a QML runtime and make Mono talk with it. This is how Go-QML [1] does it. You don't need the whole Qt wrapped, just the QML engine - the rest should be native app interfacing to QML in place of Qt/C++ app. [1] https://github.com/go-qml/qml -- smoku @ http://abadcafe.pl/ @ http://xiaoka.com/ ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Import paths
Dnia 2014-08-19, wto o godzinie 18:35 +0100, Chris Walker pisze: Is there any such documentation or can anybody here point me to some docs describing the import? I'm struggling to make an import path work. The only mention I'm aware of: https://harbour.jolla.com/faq#5.3.0 -- smoku @ http://abadcafe.pl/ @ http://xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Setting application screen orientation from C++
Dnia 2014-07-31, czw o godzinie 08:49 +0300, Iosif Hamlatzis pisze: the same answer that I should do the rotation translation my self and not only for rendering but for touch screen. I agree that's a huge inconvenience, also a waste of effort that every single application in the need of landscape layout needs to bring own solution. I can understand that you do not want to make this effort. Also a regression from Maemo... where the only thing application cared is getting notified, that its window dimensions is not 480x800 anymore, but 800x480 and it needs to relayout. Also, the relayouting process was cleverly hidden by rotating the screenshot of the last state of the application, so the user does not see the relayouting itself. I perfectly understand that's... discouraging, to require so much developer effort for such a niche platform. -- Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/ ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] [API] Ambience DBus API
Dnia 2014-07-23, śro o godzinie 09:18 +0600, Dmitriy Purgin pisze: could you please describe a use case where such an API could be useful outside the already existing ambience creator/changer? Web Based Ambience sharing service + companion app to browse, download and set ambience. I can't actually imagine one except the colorset change notification but if I understand correctly Silica's Theme object already contains current ambience colors. SDL apps may find useful to get ambience colours to paint UI accordingly, without round trip to QML. -- Tomasz Sterna :(){ :|:};: Instant Messaging Consultant Open Source Developer http://abadcafe.pl/ http://xiaoka.com/portfolio signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Ho to analyse app crash when re-starting app fails
Dnia 2014-07-23, śro o godzinie 09:23 +0600, Dmitriy Purgin pisze: QML did somehow destroy my object Are you aware of QQmlEngine::ObjectOwnership [1]? QML uses a heuristic to set the default object ownership. By default, an object that is created by QML has JavaScriptOwnership. Objects not-created by QML have CppOwnership by default. The exception to this is objects returned from C++ method calls; As with any heuristic, your object might get suddenly destroyed if it does not have parent() after passing to QML, unless you set CppOwnership explicitly. [1] http://qt-project.org/doc/qt-5/qqmlengine.html#ObjectOwnership-enum -- Tomasz Sterna :(){ :|:};: Instant Messaging Consultant Open Source Developer http://abadcafe.pl/ http://xiaoka.com/portfolio signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Updates to resource policy implementation in QtMultimedia (update8)
Dnia 2014-07-18, pią o godzinie 11:46 +0300, Juho Hämäläinen pisze: You don't need to get the system volume level, when using QSoundEffect or QMediaPlayer without changing the volume of those objects, the volume they use is system volume. Yeah. But this is only after latest update. Before, SoundEffect was banging full-on, and users of my app complained. If you really need system volume for something, see https://wiki.merproject.org/wiki/Nemo/Audio/MainVolume (or alternatively if want to know what's the real volume in stream restore, see http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/StreamRestore/ ) Thanks. This may prove useful in future. :-) -- Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/ ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to properly hide and show UI elements?
Dnia 2014-07-18, pią o godzinie 16:31 +0200, Marcin M. pisze: The Rectangle hides and so Button's label does. It doesn't work with the Button. And after enabling and disabling the effect is similar as previously. The button doesn't react if clicked. Seems I'll have go for opacity, still the question is: why are these elements still shown? QML Item does not clip by default. It allows for its children to draw outside Item boundaries. It's faster and usually useful. If you want an Item to clip its children, you need to set the property clip [1] to 'true'. [1] http://qt-project.org/doc/qt-5/qml-qtquick-item.html#clip-prop -- Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/ ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Measuring distance with GPS
Dnia 2014-07-08, wto o godzinie 21:32 +0200, Caliste Damien pisze: - if you sum up the distance between GPS fix at regular intervals (some seconds), you may end up with a total distance that is greater than the actual distance, especially because of some portions of your path that are not very accurate and put you away from your actual path (think about passing under a bridge, or your GPS is in your pocket, or you are close to the start of the GPS fix so the accuracy is still low…) GPS coordinate oscillates around correct value. I would advise to consider only distances that are over a predefined threshold. i.e. ignore moves that are smaller than i.e. 15 meters. -- smoku @ http://abadcafe.pl/ @ http://www.xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Updates to resource policy implementation in QtMultimedia (update8)
Dnia 2014-07-03, czw o godzinie 13:16 +0200, Martin Windolph pisze: For the SoundEffects (wav) I don't change the volume. So they should be 30% (following system volume). Yeah. I second that. It's extremely annoying that application-level volume is not scaled by the system volume level and one has to code that in every single application. Also counter-intuitive to the user. I do not expect any app to play sound when I have silenced my phone to 0%. -- Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/ ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Notifications API
Dnia 2014-06-29, nie o godzinie 15:54 +, Jonni Rainisto pisze: https://github.com/nemomobile/mlite/blob/master/src/mnotification.h Thanks a lot, that works great. :-) Any pointers where do I look for available icon names? I created notification(MNotification::DeviceEvent) and it shows with bluetooth icon. This is accidentally the icon I want, but I would like to have that under control, not as a side effect. ;-) -- smoku @ http://abadcafe.pl/ @ http://www.xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Known Bluetooth devices
Hello. Is there a way of obtaining a list of known BT devices from pure Qt C++? I know there is KnownDevicesModel in Sailfish.Bluetooth QML module, but I would like to get that information on C++ level - in an command-line application running without UI. Any hints? -- Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org