[SailfishDevel] Apps crashing on Sailfish 2.1.4.14
Hi, I just get notified by email by community member that my app (Jolla Together) has been crashing and Jolla store has many reports on that for many months already. Would be good that developer would get those store comments to email. But my question is if there is already a known fix/workaround app developers can do to fix their apps? https://together.jolla.com/question/181164/frequent-app-crashes-after-update-to-21414/ https://together.jolla.com/question/180672/together-jolla-app-crashes-after-upgrade-to-21414/ https://together.jolla.com/question/181267/apps-are-crashing-on-214/ https://together.jolla.com/question/179700/jolla-together-app-crashes-on-214/ Thanks! Br -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Big images in qml rich text
Hi, I have a problem with jolla2gether app when question includes big image. App is showing text as rich text with qml html markup i..e images are shown as img. If image size in very big it will jam not only the app but whole phone until it reboots itself. Any way to prevent? img tag supports only width and height attributes and those does not help the situation. Example of such together link: https://together.jolla.com/question/97469/how-to-replace-earreceiver-speaker/ Br -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] socket.io client
Hi, How to implement socket.io 1.x client with Qt and Qml? Found some alternatives from github: https://github.com/misterion/qml-websocket https://github.com/KurtPattyn/QtSocketIo Br -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] socket.io client
Server side is running socket.io by node.js so I assumed I need socket.io implementation also in client side? Or how easily it can be done with plain Websockets? Don't know much about it... So trying to find similar client implementations as there is for Android https://github.com/nkzawa/socket.io-client.java -Samuli 2015-04-03 20:54 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com: Hello https://qt.gitorious.org/qt/qtwebsockets can be compiled with Qt5.2 with no any problems Regards 03.04.2015 22:53, Samuli Silvius пишет: Hi, How to implement socket.io 1.x client with Qt and Qml? Found some alternatives from github: https://github.com/misterion/qml-websocket https://github.com/KurtPattyn/QtSocketIo Br -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] app crashed when using Canvas in Dialog page
Hi, Complete app here https://github.com/tace/jolla2gether.git I created a branch *canvas_crash* for you. The canvas code is in https://github.com/tace/jolla2gether/blob/canvas_crash/qml/components/ExternalLinkDialog.qml . To reproduce the problem. 1. Start app and select Questions from pull menu 2. Open any question page having picture. E.g. put to search criteria (from pull menu) summer and you will see this question https://together.jolla.com/question/44887/high-contrast-ambiences-summer-ready/ which has some pics. 3. Click a picture and you are on the Dialog page where the Canvas is. 4. Now swipe right i.e. cancel the dialog and then click the picture again to enter Dialog page again. Repeat this until app crashes. Br -Samuli 2014-08-14 9:53 GMT+03:00 Gunnar Sletta gunnar.sle...@jolla.com: Hi, I'm hoping this will already be fixed in update 9 by the cleanup improvements I did to the canvas implementation a few weeks ago, but just to be on the safe side, I'd like to test it. Is there an example or app I could try to verify that? (I'd prefer to get a complete example rather than recreating it based on the posted code segment to ensure that it is covering the right cases) cheers, Gunnar On 13 Aug 2014, at 21:39, Samuli Silvius samuli.silv...@gmail.com wrote: I tried FramebufferObject and now app crashes immediately when opening that dialog page, right after Canvas's onPaint is executed (I have console.log on last line of onPaint()). [W] QWaylandGLContext::makeCurrent:100 - QEGLPlatformContext::makeCurrent: eglError: 3002, this: 0x71661d28 [W] GLAcquireContext::GLAcquireContext:80 - Can't make current GL context Remote application crashed: Process killed by signal 2014-08-13 22:27 GMT+03:00 Kimmo Lindholm kimmo.lindh...@eke.fi: ok. I have not used renderStrategy at all in paint, but renderTarget: Canvas.FramebufferObject I have also dialogs there, and only way I got it broken, is that vkb case. -kimmo From: devel-boun...@lists.sailfishos.org [mailto: devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Silvius Sent: Wednesday, August 13, 2014 10:20 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page No vkb used on that page. Only couple of TextSwitch:es -Samuli 2014-08-13 22:15 GMT+03:00 Kimmo Lindholm kimmo.lindh...@eke.fi: Do you have virtual keyboard visible when closing dialog? https://together.jolla.com/question/44780/closing-dialog-with-vkb-active-breaks-canvas-on-returning-page/ -kimmo From: devel-boun...@lists.sailfishos.org [mailto: devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Silvius Sent: Wednesday, August 13, 2014 10:07 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page Hi, Sdk produces this dump, cannot really figure out the reason? Or what backtrace you mean? -Samuli 2014-08-13 21:50 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com: try to get backtrace and check what exactly is the reason of crash. 14.08.2014 00:49, Samuli Silvius пишет: Hi, I have Canvas in Silica Dialog page but app crashes when leaving dialog page both with accept or cancel swipe. It does not crash always just quite often. the code: Canvas { id: imageCanvas visible: isImageUrl width: imgLoader.sourceSize.width height: imgLoader.sourceSize.height renderStrategy: Canvas.Immediate onPaint: { var ctx = getContext(2d) ctx.drawImage(imgLoader, 0, 0) } } Image { id: imgLoader visible: false source: isImageUrl ? url : } The idea is to save image to the gallery in onAccepted if user has selected that option as Canvas has save method which can be used to save image to a file. And it works fine, but causing app to crash sometimes when leaving Dialog page with cancel swipe. SDK outputs a long crash dump. -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org
Re: [SailfishDevel] app crashed when using Canvas in Dialog page
Thanks, great to hear! Update coming this month? -Samuli 2014-08-14 11:34 GMT+03:00 Gunnar Sletta gunnar.sle...@jolla.com: On 14 Aug 2014, at 09:21, Samuli Silvius samuli.silv...@gmail.com wrote: Hi, Complete app here https://github.com/tace/jolla2gether.git I created a branch canvas_crash for you. The canvas code is in https://github.com/tace/jolla2gether/blob/canvas_crash/qml/components/ExternalLinkDialog.qml . To reproduce the problem. 1. Start app and select Questions from pull menu 2. Open any question page having picture. E.g. put to search criteria (from pull menu) summer and you will see this question https://together.jolla.com/question/44887/high-contrast-ambiences-summer-ready/ which has some pics. 3. Click a picture and you are on the Dialog page where the Canvas is. 4. Now swipe right i.e. cancel the dialog and then click the picture again to enter Dialog page again. Repeat this until app crashes. I couldn't reproduce a crash with 50 consecutive open/cancel, so I'm thinking this will be fixed in the next update then. cheers, Gunnar Br -Samuli 2014-08-14 9:53 GMT+03:00 Gunnar Sletta gunnar.sle...@jolla.com: Hi, I'm hoping this will already be fixed in update 9 by the cleanup improvements I did to the canvas implementation a few weeks ago, but just to be on the safe side, I'd like to test it. Is there an example or app I could try to verify that? (I'd prefer to get a complete example rather than recreating it based on the posted code segment to ensure that it is covering the right cases) cheers, Gunnar On 13 Aug 2014, at 21:39, Samuli Silvius samuli.silv...@gmail.com wrote: I tried FramebufferObject and now app crashes immediately when opening that dialog page, right after Canvas's onPaint is executed (I have console.log on last line of onPaint()). [W] QWaylandGLContext::makeCurrent:100 - QEGLPlatformContext::makeCurrent: eglError: 3002, this: 0x71661d28 [W] GLAcquireContext::GLAcquireContext:80 - Can't make current GL context Remote application crashed: Process killed by signal 2014-08-13 22:27 GMT+03:00 Kimmo Lindholm kimmo.lindh...@eke.fi: ok. I have not used renderStrategy at all in paint, but renderTarget: Canvas.FramebufferObject I have also dialogs there, and only way I got it broken, is that vkb case. -kimmo From: devel-boun...@lists.sailfishos.org [mailto: devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Silvius Sent: Wednesday, August 13, 2014 10:20 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page No vkb used on that page. Only couple of TextSwitch:es -Samuli 2014-08-13 22:15 GMT+03:00 Kimmo Lindholm kimmo.lindh...@eke.fi: Do you have virtual keyboard visible when closing dialog? https://together.jolla.com/question/44780/closing-dialog-with-vkb-active-breaks-canvas-on-returning-page/ -kimmo From: devel-boun...@lists.sailfishos.org [mailto: devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Silvius Sent: Wednesday, August 13, 2014 10:07 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page Hi, Sdk produces this dump, cannot really figure out the reason? Or what backtrace you mean? -Samuli 2014-08-13 21:50 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com : try to get backtrace and check what exactly is the reason of crash. 14.08.2014 00:49, Samuli Silvius пишет: Hi, I have Canvas in Silica Dialog page but app crashes when leaving dialog page both with accept or cancel swipe. It does not crash always just quite often. the code: Canvas { id: imageCanvas visible: isImageUrl width: imgLoader.sourceSize.width height: imgLoader.sourceSize.height renderStrategy: Canvas.Immediate onPaint: { var ctx = getContext(2d) ctx.drawImage(imgLoader, 0, 0) } } Image { id: imgLoader visible: false source: isImageUrl ? url : } The idea is to save image to the gallery in onAccepted if user has selected that option as Canvas has save method which can be used to save image to a file. And it works fine, but causing app to crash sometimes when leaving Dialog page with cancel swipe. SDK outputs a long crash dump. -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] app crashed when using Canvas in Dialog page
Hi, I have Canvas in Silica Dialog page but app crashes when leaving dialog page both with accept or cancel swipe. It does not crash always just quite often. the code: Canvas { id: imageCanvas visible: isImageUrl width: imgLoader.sourceSize.width height: imgLoader.sourceSize.height renderStrategy: Canvas.Immediate onPaint: { var ctx = getContext(2d) ctx.drawImage(imgLoader, 0, 0) } } Image { id: imgLoader visible: false source: isImageUrl ? url : } The idea is to save image to the gallery in onAccepted if user has selected that option as Canvas has save method which can be used to save image to a file. And it works fine, but causing app to crash sometimes when leaving Dialog page with cancel swipe. SDK outputs a long crash dump. -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] app crashed when using Canvas in Dialog page
Hi, Sdk produces this dump, cannot really figure out the reason? Or what backtrace you mean? -Samuli 2014-08-13 21:50 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com: try to get backtrace and check what exactly is the reason of crash. 14.08.2014 00:49, Samuli Silvius пишет: Hi, I have Canvas in Silica Dialog page but app crashes when leaving dialog page both with accept or cancel swipe. It does not crash always just quite often. the code: Canvas { id: imageCanvas visible: isImageUrl width: imgLoader.sourceSize.width height: imgLoader.sourceSize.height renderStrategy: Canvas.Immediate onPaint: { var ctx = getContext(2d) ctx.drawImage(imgLoader, 0, 0) } } Image { id: imgLoader visible: false source: isImageUrl ? url : } The idea is to save image to the gallery in onAccepted if user has selected that option as Canvas has save method which can be used to save image to a file. And it works fine, but causing app to crash sometimes when leaving Dialog page with cancel swipe. SDK outputs a long crash dump. -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org *** glibc detected *** /usr/bin/harbour-jolla2gether: free(): invalid pointer: 0x71e540a0 *** === Backtrace: = /lib/libc.so.6(+0x79aa9)[0x6e4e0aa9] /usr/lib/libstdc++.so.6(_ZdlPv+0x1f)[0x6e6efdef] /usr/lib/libQt5Qml.so.5(_ZN15QQmlContextData7destroyEv+0x224)[0x6f1c2f44] /usr/lib/libQt5Qml.so.5(_ZN11QQmlPrivate30qdeclarativeelement_destructorEP7QObject+0x34)[0x6f19eda4] /usr/lib/libQt5Quick.so.5(+0x13cead)[0x6f51bead] /usr/lib/libQt5Core.so.5(_Z21qDeleteInEventHandlerP7QObject+0x13)[0x6e982d43] /usr/lib/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x258)[0x6e983808] /usr/lib/libQt5Quick.so.5(_ZN10QQuickItem5eventEP6QEvent+0x4a)[0x6f4edd2a] /usr/lib/libQt5Core.so.5(_ZN23QCoreApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x60)[0x6e957a70] /usr/lib/libQt5Core.so.5(_ZN16QCoreApplication6notifyEP7QObjectP6QEvent+0x64)[0x6e957ae4] /usr/lib/libQt5Gui.so.5(_ZN15QGuiApplication6notifyEP7QObjectP6QEvent+0x3e)[0x6ec3fbde] /usr/lib/libQt5Core.so.5(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7d)[0x6e9577cd] /usr/lib/libQt5Core.so.5(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ef)[0x6e95a4bf] /usr/lib/libQt5Core.so.5(_ZN16QCoreApplication16sendPostedEventsEP7QObjecti+0x2d)[0x6e95aacd] /usr/lib/libQt5Core.so.5(+0x25c2ef)[0x6e9aa2ef] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x23c)[0x6d9eb65c] /usr/lib/libglib-2.0.so.0(+0x4e8f8)[0x6d9eb8f8] /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x85)[0x6d9eba45] /usr/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x6e)[0x6e9aa7ce] /usr/lib/qt5/plugins/platforms/libqwayland-egl.so(+0x35007)[0x6c659007] /usr/lib/libQt5Core.so.5(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x24)[0x6e955d84] /usr/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xcc)[0x6e95618c] /usr/lib/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x87)[0x6e95d417] /usr/lib/libQt5Gui.so.5(_ZN15QGuiApplication4execEv+0x25)[0x6ec355b5] /usr/bin/harbour-jolla2gether(main+0x222)[0x6f779662] /lib/libc.so.6(__libc_start_main+0xf8)[0x6e480408] /usr/bin/harbour-jolla2gether(+0x184d)[0x6f77984d] === Memory map: 204e5000-205e5000 rw-p 00:00 0 24b92000-24ba ---p 00:00 0 24ba-24bb rw-p 00:00 0 24bb-24bc2000 ---p 00:00 0 2bffb000-2c024000 rwxp 00:00 0 2e70-2e749000 rw-p 00:00 0 2fe0-2fe09000 rw-p 00:00 0 2fe09000-2fe0a000 ---p 00:00 0 2fe0a000-2feff000 rwxp 00:00 0 2feff000-2ff0 ---p 00:00 0 3030-3040 rw-p 00:00 0 3670-36709000 rw-p 00:00 0 36709000-3670a000 ---p 00:00 0 3670a000-3676a000 rwxp 00:00 0 3676a000-3676b000 ---p 00:00 0 3ce03000-3ce04000 r-xp 00:00 0 3dd8e000-3dd8f000 r-xp 00:00 0 4480-44819000 rw-p 00:00 0 45499000-4549a000 r-xp 00:00 0 45bde000-45bdf000 r-xp 00:00 0 49969000-4996a000 r-xp 00:00 0 4b10-4b139000 rw-p 00:00 0 4b70-4b719000 rw-p 00:00 0 4d0a5000-4d0ce000 ---p 00:00 0 5603f000-5604 r-xp 00:00 0 5780-57841000 rw-p 00:00 0 57841000-5790 ---p 00:00 0 57904000-57905000 ---p 00:00 0 57905000-57907000 ---p
Re: [SailfishDevel] app crashed when using Canvas in Dialog page
I tried FramebufferObject and now app crashes immediately when opening that dialog page, right after Canvas's onPaint is executed (I have console.log on last line of onPaint()). [W] QWaylandGLContext::makeCurrent:100 - QEGLPlatformContext::makeCurrent: eglError: 3002, this: 0x71661d28 [W] GLAcquireContext::GLAcquireContext:80 - Can't make current GL context Remote application crashed: Process killed by signal 2014-08-13 22:27 GMT+03:00 Kimmo Lindholm kimmo.lindh...@eke.fi: ok. I have not used renderStrategy at all in paint, but renderTarget: Canvas.FramebufferObject I have also dialogs there, and only way I got it broken, is that vkb case. -kimmo *From:* devel-boun...@lists.sailfishos.org [mailto: devel-boun...@lists.sailfishos.org] *On Behalf Of *Samuli Silvius *Sent:* Wednesday, August 13, 2014 10:20 PM *To:* Sailfish OS Developers *Subject:* Re: [SailfishDevel] app crashed when using Canvas in Dialog page No vkb used on that page. Only couple of TextSwitch:es -Samuli 2014-08-13 22:15 GMT+03:00 Kimmo Lindholm kimmo.lindh...@eke.fi: Do you have virtual keyboard visible when closing dialog? https://together.jolla.com/question/44780/closing-dialog-with-vkb-active-breaks-canvas-on-returning-page/ -kimmo *From:* devel-boun...@lists.sailfishos.org [mailto: devel-boun...@lists.sailfishos.org] *On Behalf Of *Samuli Silvius *Sent:* Wednesday, August 13, 2014 10:07 PM *To:* Sailfish OS Developers *Subject:* Re: [SailfishDevel] app crashed when using Canvas in Dialog page Hi, Sdk produces this dump, cannot really figure out the reason? Or what backtrace you mean? -Samuli 2014-08-13 21:50 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com: try to get backtrace and check what exactly is the reason of crash. 14.08.2014 00:49, Samuli Silvius пишет: Hi, I have Canvas in Silica Dialog page but app crashes when leaving dialog page both with accept or cancel swipe. It does not crash always just quite often. the code: Canvas { id: *imageCanvas* visible: *isImageUrl* width: *imgLoader*.sourceSize.width height: *imgLoader*.sourceSize.height renderStrategy: Canvas.Immediate onPaint: { var *ctx* = *getContext*(2d) *ctx*.drawImage(*imgLoader*, 0, 0) } } Image { id: *imgLoader* visible: false source: *isImageUrl* ? *url* : } The idea is to save image to the gallery in onAccepted if user has selected that option as Canvas has save method which can be used to save image to a file. And it works fine, but causing app to crash sometimes when leaving Dialog page with cancel swipe. SDK outputs a long crash dump. -Samuli ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] System clipboard and QApplication
Thanks a lot, the QML trick works great! -Samuli 2014-04-24 9:16 GMT+03:00 Andrey Kozhevnikov coderusin...@gmail.com: use QGuiApplication or QCoreApplication. QApplication itself is deprecated. There is also dark side hack for using QML clipboard: TextEdit { id: clipboard visible: false function setClipboard(value) { text = value selectAll() copy() } function getClipboard() { text = paste() return text } } 24.04.2014 12:03, Samuli Silvius пишет: Hi, I use system clipboard in QML app with small C++ adapter #ifndef QMLCLIPBOARDADAPTER_H #define QMLCLIPBOARDADAPTER_H #include QApplication #include QClipboard #include QObject class QmlClipboardAdapter : public QObject { Q_OBJECT public: explicit QmlClipboardAdapter(QObject *parent = 0) : QObject(parent) { clipboard = QApplication::clipboard(); } Q_INVOKABLE void setText(QString text){ clipboard-setText(text, QClipboard::Clipboard); clipboard-setText(text, QClipboard::Selection); } private: QClipboard *clipboard; }; #endif // QMLCLIPBOARDADAPTER_H And it's working fine. But this requires that I have to add QT += widgets to .pro file and seems it's not supported by Jolla Harbour as also Jolla SDK RPM validation gives me an errors. I have updated the SDK to the latest. ERROR [/usr/share/harbour-jolla2gether/qml/harbour-jolla2gether.qml] Import 'QmlClipboardAdapter 1.0' is not allowed ERROR [/usr/bin/harbour-jolla2gether] Cannot link to shared library: libQt5Widgets.so.5 Is there are way around this? Br -Samuli ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] System clipboard and QApplication
Hi, I use system clipboard in QML app with small C++ adapter #ifndef QMLCLIPBOARDADAPTER_H #define QMLCLIPBOARDADAPTER_H #include QApplication #include QClipboard #include QObject class QmlClipboardAdapter : public QObject { Q_OBJECT public: explicit QmlClipboardAdapter(QObject *parent = 0) : QObject(parent) { clipboard = QApplication::clipboard(); } Q_INVOKABLE void setText(QString text){ clipboard-setText(text, QClipboard::Clipboard); clipboard-setText(text, QClipboard::Selection); } private: QClipboard *clipboard; }; #endif // QMLCLIPBOARDADAPTER_H And it's working fine. But this requires that I have to add QT += widgets to .pro file and seems it's not supported by Jolla Harbour as also Jolla SDK RPM validation gives me an errors. I have updated the SDK to the latest. ERROR [/usr/share/harbour-jolla2gether/qml/harbour-jolla2gether.qml] Import 'QmlClipboardAdapter 1.0' is not allowed ERROR [/usr/bin/harbour-jolla2gether] Cannot link to shared library: libQt5Widgets.so.5 Is there are way around this? Br -Samuli ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour reject because of too high power consumption
Thanks Mikael, That must be it. The response from Harbour was very short, the whole response message was pasted in my email above. Br -Samuli 2014-02-18 21:17 GMT+02:00 Andrey Kozhevnikov coderusin...@gmail.com: Isn't better to fork jolla browser? :) On 19.02.2014 01:16, Mikael Hermansson wrote: when I did upload the tinywebbrowser(before I started on unnoficialtogetherapp) it was cause of webkit eating to much CPU when app is minimized. Wasn't this what they said for u too? AFAIK there is no soluton for it except pop webkit page when app minimized. maybe in future better use Gecko plugin instead of webkit when store allows that engine? Regards Mike7b4 On Tuesday 18 February 2014 20.54.16 Samuli Silvius wrote: Hi, I got app rejected with a message: sorry for rejecting your application, but there is too high power consumption, if there is some Question/Question list open. If application is in main menu, power consumption is ok. You can check power consumption by yourself, plase take a look here: https://together.jolla.com/question/13243/my-app-got-rejected-to-store-becau se-of-high-power-consumption-how-to-debug-problems/ First of all,it would be nice to have possibility to answer/ask in the harbour itself, or what is the correct channel? This email list? The app (https://github.com/tace/jolla2gether) is pure qml/javascript, so what could be power consuming part there, any hints? I tried to measure it with powertop tool but did not get any alarming results. Or then I don't know how to use the powertop. I used with command: *% powertop --html=powertop_report.html --time=120* 3 times. Before app was open and 2 times with app open in different views. What values I should follow? At least max Wakeups/s I got was 5.0. Br -Samuli -- Skickat från Lenovo Thinkpad X230 running Kubuntu desktop ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QtWebKit QWebView
Hi, So how to find what Qxxx classes are supported and what not? E.g. this porting guide suggest to use QT += webkitwidgets http://www.jollausers.com/2013/08/harmattan2sailfish/ But if I try that Jolla SDK just says error: Unknown module(s) in QT: webkitwidgets Is there any way to use QWebPage to be able get hands on to web pages DOM? I don't need to show webpage or edit it just parse and find something. If it's not possible, then I guess have to try proposed QXmlStreamReader, it's more low level I guess? Br -Samuli 2014-01-28 Aaron McCarthy aaron.mccar...@jolla.com: On Fri, 24 Jan 2014 22:40:43 Hannes Rantzsch wrote: no, unfortunately I didn't get it working. Had no time for further fiddling around yet. Yeah, XMLHttpRequest looked nice to me too first. But the page I want does not offer anything for that. Just plain html. I would still like to get QWebFrame working, as Aaron suggested. Maybe now someone has an idea what kind of configurations are needed to get it in? Unfortunately QWebFrame seems to be part of Qt WebKit Widgets as well. I suggest looking at what functionality is provided by Qt WebKit and see if that meets you needs. Depending on the complexity of the HTML that you want to parse and what you want to extract out of it, it is possible to use QXmlStreamReader perhaps with some pre-processing. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to attach a page to initial page?
But that activates every time when going to that page. You need a separate global boolean to set if wanted that to be done only one time. We have the same problem on Unofficialtogether app which has the timer solution. https://github.com/mike7b4/unofficialtogether/blob/master/qml/pages/WebView.qml -Samuli 2014/1/20 Tobi D. schlaraffenl...@hotmail.com Thank you Andrey! That's exactly what I was looking for. Best regards, Tobi Date: Mon, 20 Jan 2014 13:38:45 +0600 From: coderusin...@gmail.com To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] How to attach a page to initial page? onStatusChanged: { if (status === PageStatus.Active pageStack.depth === 1) { pageStack.pushAttached(SourcesPage.qml, {}); } } On 20.01.2014 13:37, Kalle Vahlman wrote: 2014/1/17 Tobi D. schlaraffenl...@hotmail.com: Hi there, How can I push an attached page to my initial page on the pageStack? I'd like to have a behavior similar to the Jolla Store app. There you can push to the next page to get categories when you are on initial page. I tried several thing to achieve this, but didn't get it work. Doing an pushAttached to pageStack in onComplete of my initial page ends in error message that you can not push a page on stack while another push is running. onComplete is from Component (as opposed from Item), so it doesn't indicate the page is ready. A better place for pushing would probably be onStatusChanged(), when the status changes to Active. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QtWebKit QWebView
Hi, Di you get this working? I would need very same functionality (getting webpage content, as dom to traversal). It feel strange to me that WebView (SilicaWebView) does not provide access to webpage content? Maybe it has reasons, I don't know as very new to mobile apps.. I have also tried to find solution by using XMLHttpRequest javascript way, but did not yet find any. I would like to keep my code purely on QML/Javascript but in this case it's ok to have also C++ solution. I have done a lot C++ but so many years back and certainly not mobile platforms. -Samuli 2014/1/21 Hannes Rantzsch hannes.rantz...@student.hpi.uni-potsdam.de Hi Aaron, thank you for your answer. I tried QWebFrame, but it says incomplete type. Apparently QWebFrame is only forward declared in QWebElement (which is available, but on it's own of no use I guess). Or am I simply missing some #include? Any ideas? Thanks, Hannes On 01/21/2014 02:37 AM, Aaron McCarthy wrote: Hi, On Mon, 20 Jan 2014 23:27:02 Hannes Rantzsch wrote: I'm trying to get the content of a website. Since SilicaWebView doesn't seem to provide this, I want to write a C++ class that does. QWebView from QtWebKit should be able to do this (this example is actually perfect: http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e xample.html). However, I cannot include QWebView (no such file [...]) and including QtWebKit/QtWebKit does not give me the QWebView either. I did add QT += webkit to my .pro-file. What am I missing? QWebPage is in WebKit widgets. QT += webkitwidgets But widgets aren't supported. If you don't need to display the web page, you can use QWebFrame and follow the example you linked to from there. Cheers, ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Porting Symbian QML to Sailfish
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
[SailfishDevel] How to access html dom on SilicaWebView
Hi, I would like to read dom object (with my javascript functions) loaded by SilicaWebView, how to access that on ready loaded webview? Br -Samuli ___ SailfishOS.org Devel mailing list
[SailfishDevel] Fwd: Message from course Developing apps for Sailfish OS: introduction
Hi, I got add email about Sailfish course. Anybody recommending this? Br -Samuli -- Forwarded message -- From: Eliademy nore...@eliademy.com Date: 2013/12/19 Subject: Message from course Developing apps for Sailfish OS: introduction To: samuli.silv...@gmail.com http://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=https%3A%2F%2Feliademy.comurl_id=09cee449e15692f1f820af52ab4acd735ddee6e8 *Join a brand new “Become a Developer for Sailfish OS” course on Eliademy*. New course consist of 24 video lectures and 6 coding tasks, which will cover everything from basics of creating applications with Silica to more advanced usage of OpenGL and phone sensors. Course will take 6 weeks during which you will be able to get my help and advice via forum and private messages. Course starts on the 25th January 2014. Jolla mobile phones are already finding their way into the pockets of users. Become a developer and benefit before the market gets crowded! Join new course herehttp://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=https%3A%2F%2Feliademy.com%2Fcatalog%2Fbecome-a-developer-for-sailfish-operating-system-an-introduction.htmlurl_id=4802bc6633b3e09128a20dee9de759990fd959fe . Best regards, Aurelijus Bružas Follow us on http://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=http%3A%2F%2Fwww.facebook.com%2Feliademyurl_id=7867e4925f5c166474f388e2116e8453dad96251 http://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=https%3A%2F%2Fwww.twitter.com%2Feliademyurl_id=8f053cc569a0a6ae1188f838fd7bdddfeb21e087 [image: Google+] http://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=https%3A%2F%2Fplus.google.com%2Fu%2F0%2F105453567066036560669%2Fpostsurl_id=e4a7035be945e7739a4e9c97bd50cf4cac91d354 [image: Pinterest] http://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=http%3A%2F%2Fpinterest.com%2Feliademy%2Furl_id=8b73aa965b4bdd8a8349809675286767de42e5ce [image: Blog] http://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=http%3A%2F%2Feliademy.com%2Fblog%2Furl_id=330169ef964b645d8cbceed42c165452f6a35aa9 © CBTec 2013 | Made in Finland Hiilikatu 3, Helsinki, 00180, Finland visit supporthttp://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=http%3A%2F%2Feliademy.uservoice.comurl_id=e536d80f1cf2f59208934f66f599b0dc87493764 change notification settings herehttp://mandrillapp.com/track/click.php?u=30062603id=c922d9f3e1ba4105b041468150b47624url=https%3A%2F%2Feliademy.com%2Fapp%2Fa%2Fsettingsurl_id=7cf6ca764fb93e6bfda699014756641ef0c94d99 ___ SailfishOS.org Devel mailing list