Re: [SailfishDevel] How can I setup calendar access via QML ?
Hi, I have successfully gained read access to the calender. After reverse engineering the jolla calendar. Hopefully write access will work too . Ciao Matze Am 27.01.2014 13:18, schrieb Pekka Vuorela: On Sat, 2014-01-25 at 17:48 +0100, Ove Kåven wrote: Den 25. jan. 2014 13:55, skrev Matthias Barmeier: Hi, do you mean that all these packages: qt5-qtdeclarative-pim-organizer [...] are obsolete or am I unable to use them from QML ? Like Andrey, I'm convinced they are not used on Jolla. If you check, you'll see that none of these QtOrganizer packages are installed by default on the actual Jolla device, nor depended on by jolla-calendar. Since I can find no QtOrganizer backend to interface with the actual calendar, I'm pretty sure that trying to use QtOrganizer will not work in any useful way, even if you can access it from QML. Correct. Calendar is using Mkcal and currently there is no QtOrganizer backend for it. Do you have a hint where I can found an example on how to access the calendar with nemo.mobile.org ? For an example, you could always install jolla-calendar into your Jolla, ssh into it, and look under /usr/share/jolla-calendar to study their QML. Or you could, if you like, study the source code of org.nemomobile.calendar at https://github.com/nemomobile/nemo-qml-plugin-calendar/tree/master/src Worth noting that the qml plugin is not stable API, and also on the device the calendar database is protected from third party apps. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] App own C++ plugin equivalent to Silica Theme
Hi All I would like to create a C++ plugin for my app to export common UX settings as constants to the QML side (Things like font sizes, margin sizes that reoccur throughout the app.) In essence I want something very similar to the functionality offered by by the Silica Theme. After some experimentation I have hit on a solution that both compiles and works. This is pasted at the bottom of this mail. I have 2 questions: 1) Is there a more elegant solution to achieve the same goal? 2) From the C++ side, can I access the Silica them UX constants? e.g to set some of my constants based on Silica constants? Grüsse Chris //start landedtheme.h #ifndef LANDEDTHEME_H #define LANDEDTHEME_H #include QObject class LandedTheme : public QObject { Q_OBJECT Q_PROPERTY(int MarginSmall READ MarginSmall CONSTANT) //many more similar Q_PROPERTY declarations here public: LandedTheme(QObject* parent = 0) : QObject(parent) {} int MarginSmall() const { return 10;} //many more similar variables here }; #endif // LANDEDTHEME_H //end landedtheme.h //in the main .cpp file #include landedtheme.h static QObject *theme_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine) { Q_UNUSED(engine) Q_UNUSED(scriptEngine) LandedTheme *landedTheme = new LandedTheme(); return landedTheme; } //in the main function qmlRegisterSingletonTypeLandedTheme(LandedTheme, 1, 0, LandedTheme, theme_singletontype_provider); ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] SailfishOS SDK January update 2 available today
Hello, another minor update to the SDK Build Engine was released today. The update concerns again only the SDK Control Center, which gets some performance improvements, layout changes and provides a Check for updates now button in the Updates page. You should see updates available for the Build Engine in the SDK Control Center Updates tab after your build engine has been running about 10 minutes. Please do not visit the Updates tab before the 10 minutes has passed, otherwise the updates will show up later. The 'Check for updates now' button was put there to avoid this wait period in the future. As always, if you have any questions, you can send email to this mailing list mailto:devel@lists.sailfishos.org or write it up on together.jolla.com and tag your issue with 'sdk'. Happy hacking, Jolla SDK Team. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Segmentation fault: No such file or directory.
From: aaron.mccar...@jolla.com To: devel@lists.sailfishos.org Date: Tue, 28 Jan 2014 11:19:12 +1000 Subject: Re: [SailfishDevel] Segmentation fault: No such file or directory. Hi, I replied to a duplicate email off list. Yes sorry my bad, I originally replied only to you by mistake and then forwarded my answer to the mailing list.Thanks for all the clarifications, I am copying your original email on the list in case other people want to follow the issue. From: aaron.mccar...@jolla.com To: sth...@hotmail.com Subject: Re: [SailfishDevel] Segmentation fault: No such file or directory. Date: Tue, 28 Jan 2014 10:57:07 +1000 On Fri, 24 Jan 2014 10:36:23 you wrote: I did more tests today in the subway with a limited connectivity and it was actually hard to reproduce (1 out of 15-20 attempts), so as the stacktrace suggest, it has something to do with the caching operation.Now that I have a better 3G connectivity, I can reproduce it more often but not as often than yesterday in Wifi. It never occurs at the first attempt, I'd say I have to try between 2 and 10 times, it depends, while in Wifi it was almost always crashing at the first attempt. When not panning the Map, it occurs less frequently, but I am not sure how frequently. I will make more tests this WE. But If I simply push/pop/push/pop/... the Map without panning it, it never crashes. Ok, thank you for this information. While we're talking about Maps, I have some questions:You have entered this bug in your tracking system because I am using the Nokia plugin? No it is a general issue which would affect all plugins that use the tile cache implementation provided by Qt Location. In fact I should have filed it upstream in the Qt bug tracker. I have done so now, see https://bugreports.qt-project.org/browse/QTBUG-36486 Or do you work on the general Map API? I work mostly in positioning (GPS etc), location (including Maps application) and connectivity, including the Qt libraries. The underlying question are: where to report Map bugs? It varies. General questions go to devel@lists.sailfishos.org. Bug reports for Jolla go either to devel@lists.sailfishos.org or together.jolla.com, I monitor both places. If you are sure it is a bug that affects upstream Qt, then you can file bug reports at bugreports.qt-project.org. And why the only available docs are on developer.ubuntu.com? Because Qt Location has not been officially released yet. You will find documentation for Qt Positioning at http://qt-project.org/doc with the reset of the Qt 5.2 documentation. Once Qt Location is official released its documentation will appear there as well. Neither Qt Positioning nor Qt Location is an officially supported API for SailfishOS yet. Qt Positioning will be once SailfishOS is updated to Qt 5.2. Qt Location once it is released upstream. This is why neither of these APIs are documented with the rest of the SailfishOS documentation in the SDK. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] SailfishOS SDK January update 2 available today
Hi Juha On the first attempt I got this error: Operation Failed finished: Updating SDK Engine - exited with status 4 History: - File './noarch/sdk-harbour-rpmvalidator-1.3-10.6.1.jolla.noarch.rpm' not found on medium 'http://releases.sailfishos.org/sdk/latest/hotfixes/i486/' - Can't provide ./noarch/sdk-harbour-rpmvalidator-1.3-10.6.1.jolla.noarch.rpm Problem occured during or after installation or removal of packages: Installation aborted by user Please see the above error message for a hint. On the second try a few seconds later, the update worked properly. Chris Zitat von Juha Kallioinen juha.kallioi...@jolla.com: Hello, another minor update to the SDK Build Engine was released today. The update concerns again only the SDK Control Center, which gets some performance improvements, layout changes and provides a Check for updates now button in the Updates page. You should see updates available for the Build Engine in the SDK Control Center Updates tab after your build engine has been running about 10 minutes. Please do not visit the Updates tab before the 10 minutes has passed, otherwise the updates will show up later. The 'Check for updates now' button was put there to avoid this wait period in the future. As always, if you have any questions, you can send email to this mailing list mailto:devel@lists.sailfishos.org or write it up on together.jolla.com and tag your issue with 'sdk'. Happy hacking, Jolla SDK Team. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] White screen and no errors
Hi, I'm giving one more go at my Sailfish app, but when I try to run it, I get a white screen only. The log is [D] QQmlDebuggingEnabler::QQmlDebuggingEnabler:1392 - QML debugging is enabled. Only use this in a safe environment. [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL and nothing more... Why can it happen? -- Marcin ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] SailfishOS SDK January update 2 available today
Hi, this could have been some temporary cache hiccup. The rpmvalidator package was also updated to version sdk-harbour-rpmvalidator-1.4-10.7.1.jolla.noarch. The previous package version was what your error message shows. I neglected to mention in my original message that also the rpmvalidator package was updated. It has been already updated a couple of times since its first release and we don't plan to announce each and every update of the script. This is the script you can run from the Harbour Tools tab in the SDK control center and unless you disable the updates from that tab, the script is always updated to the latest available when it's run. FYI: if you plan to send your packages to Harbour for acceptance, it's wise to enable updates and run the validator tool just before sending in case the script (and possibly some acceptance criteria) has been updated. Best regards, Juha On 28.01.2014 15:22, christopher.l...@thurweb.ch wrote: Hi Juha On the first attempt I got this error: Operation Failed finished: Updating SDK Engine - exited with status 4 History: - File './noarch/sdk-harbour-rpmvalidator-1.3-10.6.1.jolla.noarch.rpm' not found on medium 'http://releases.sailfishos.org/sdk/latest/hotfixes/i486/' - Can't provide ./noarch/sdk-harbour-rpmvalidator-1.3-10.6.1.jolla.noarch.rpm Problem occured during or after installation or removal of packages: Installation aborted by user Please see the above error message for a hint. On the second try a few seconds later, the update worked properly. Chris Zitat von Juha Kallioinen juha.kallioi...@jolla.com: Hello, another minor update to the SDK Build Engine was released today. The update concerns again only the SDK Control Center, which gets some performance improvements, layout changes and provides a Check for updates now button in the Updates page. You should see updates available for the Build Engine in the SDK Control Center Updates tab after your build engine has been running about 10 minutes. Please do not visit the Updates tab before the 10 minutes has passed, otherwise the updates will show up later. The 'Check for updates now' button was put there to avoid this wait period in the future. As always, if you have any questions, you can send email to this mailing list mailto:devel@lists.sailfishos.org or write it up on together.jolla.com and tag your issue with 'sdk'. Happy hacking, Jolla SDK Team. ___ SailfishOS.org Devel mailing list . ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] White screen and no errors
On Tue, Jan 28, 2014 at 2:51 PM, Marcin M. marmistrz...@gmail.com wrote: Why can it happen? Something similar has happened to me when a QML file cannot be parsed. Check those curly brackets! :) Luciano -- Luciano Montanaro Anyone who is capable of getting themselves made President should on no account be allowed to do the job. -- Douglas Adams ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] White screen and no errors
Hi, but an error in the QML file - *should* throw an error message on the console?! Gabriel. Am Dienstag, den 28.01.2014, 15:25 +0100 schrieb Luciano Montanaro: On Tue, Jan 28, 2014 at 2:51 PM, Marcin M. marmistrz...@gmail.com wrote: Why can it happen? Something similar has happened to me when a QML file cannot be parsed. Check those curly brackets! :) Luciano signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] White screen and no errors
You mean unclosed brackets? With the MeeGo components such thing always was being reported in the log... -- Marcin 2014-01-28 Gabriel Böhme m.gabrielboe...@googlemail.com Hi, but an error in the QML file - *should* throw an error message on the console?! Gabriel. Am Dienstag, den 28.01.2014, 15:25 +0100 schrieb Luciano Montanaro: On Tue, Jan 28, 2014 at 2:51 PM, Marcin M. marmistrz...@gmail.com wrote: Why can it happen? Something similar has happened to me when a QML file cannot be parsed. Check those curly brackets! :) Luciano ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] White screen and no errors
Hi Marcin How did you deploy? Have you checked the QtCreator compile output as well as the application output? Grüsse Chris Zitat von Marcin M. marmistrz...@gmail.com: You mean unclosed brackets? With the MeeGo components such thing always was being reported in the log... -- Marcin 2014-01-28 Gabriel Böhme m.gabrielboe...@googlemail.com Hi, but an error in the QML file - *should* throw an error message on the console?! Gabriel. Am Dienstag, den 28.01.2014, 15:25 +0100 schrieb Luciano Montanaro: On Tue, Jan 28, 2014 at 2:51 PM, Marcin M. marmistrz...@gmail.com wrote: Why can it happen? Something similar has happened to me when a QML file cannot be parsed. Check those curly brackets! :) Luciano ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Interacting with the Sailfish Software Input Panel from code
Hi all Is there any way to interact with the Jolla Software Input Panel (Visual Keyboard9 from Code? i.e. Are any signals emitted when it opens / closes? Are there any methods to open and close it? Harmattan had things like panelOpen and closeSoftwareInputPanel(); So far in Sailfish all I have found is that from a QML TextArea element onClicked and onFocusChanged are emitted, giving an indirect indication that the keyboard has opened. mfg Chris ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Interacting with the Sailfish Software Input Panel from code
On Tue, 2014-01-28 at 17:14 +0100, christopher.l...@thurweb.ch wrote: Hi all Is there any way to interact with the Jolla Software Input Panel (Visual Keyboard9 from Code? i.e. Are any signals emitted when it opens / closes? Are there any methods to open and close it? Harmattan had things like panelOpen and closeSoftwareInputPanel(); So far in Sailfish all I have found is that from a QML TextArea element onClicked and onFocusChanged are emitted, giving an indirect indication that the keyboard has opened. QInputMethod class, QGuiApplication::inputMethod(), and in QML Qt.inputMethod.show()/hide() etc. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Interacting with the Sailfish Software Input Panel from code
Hi Pekka thanks, that's it! Now using Qt.inputMethod.show() I have found this documented as a 4.8 to 5.0 change. http://qt.apidoc.info/5.2.0/qtdoc/qtquick-porting-qt5.html I think it would be helpful if the Silica documentation of the TextArea component also referred to the SoftwareInputPanel and Qt.inputMethod Thanks Chris Zitat von Pekka Vuorela pekka.vuor...@jolla.com: On Tue, 2014-01-28 at 17:14 +0100, christopher.l...@thurweb.ch wrote: Hi all Is there any way to interact with the Jolla Software Input Panel (Visual Keyboard9 from Code? i.e. Are any signals emitted when it opens / closes? Are there any methods to open and close it? Harmattan had things like panelOpen and closeSoftwareInputPanel(); So far in Sailfish all I have found is that from a QML TextArea element onClicked and onFocusChanged are emitted, giving an indirect indication that the keyboard has opened. QInputMethod class, QGuiApplication::inputMethod(), and in QML Qt.inputMethod.show()/hide() etc. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] App own C++ plugin equivalent to Silica Theme
On 2014-01-28 10:59, christopher.l...@thurweb.ch wrote: I would like to create a C++ plugin for my app to export common UX settings as constants to the QML side (Things like font sizes, margin sizes that reoccur throughout the app.) In essence I want something very similar to the functionality offered by by the Silica Theme. After some experimentation I have hit on a solution that both compiles and works. This is pasted at the bottom of this mail. I have 2 questions: 1) Is there a more elegant solution to achieve the same goal? Not sure if it's more elegant, but back in the Harmattan days with gPodder, I just collected all constants in a config.js file and imported that in QML: https://github.com/gpodder/gpodder/blob/master/share/gpodder/ui/qml/config.js From QML (assuming it's in the same folder), you can then do: import config.js as Config And if you have var blubb = 123 in your config.js file, and you have imported it like above, you can then use Config.blubb to access that value. 2) From the C++ side, can I access the Silica them UX constants? e.g to set some of my constants based on Silica constants? If you go with the JavaScript solution, you can import the Silica Theme class and use it in your JS, you can do this with something like: http://qt-project.org/doc/qt-5.0/qtqml/qtqml-javascript-imports.html#importing-a-qml-module-from-a-javascript-resource HTH :) Thomas ___ SailfishOS.org Devel mailing list