Re: [SailfishDevel] Flatpak for Sailfish
I am working on adding Maliit into Flatpak sandbox. Idea is to use Maliit plugin on Flatpak side and via DBus communicate with SFOS keyboard. However, I make few assumptions and would be like to get some background info: - is SFOS keyboard drawn by Lipstick? - does communication between app and the keyboard occur via DBus? - which files/plugins are used by the app in respect of communication with keyboard? Is it just /usr/lib/qt5/plugins/platforminputcontexts/libmaliit* or something in addition/else? Cheers, Rinigus On Mon, Jan 6, 2020 at 1:12 PM rinigus wrote: > Exactly, something like that is needed. Ideally, it would be hooked via > Wayland (input extension?) and trigger the keyboard on focusing on any text > field. But I will be happy with Qt only solution as well. Any tips on how > to make it possible? > > Rinigus > > On Mon, Jan 6, 2020 at 10:51 AM Андрей Кожевников > wrote: > >> Android side is using "remote keyboard" to show sailfish keyboard on top >> of Android >> >> пн, 6 янв. 2020 г., 9:52 rinigus : >> >>> Morning! >>> >>> Re compositor issue: that has been worked around by having >>> compositor-in-compositor. In theory, but I didn't look too much more than a >>> day into it, we could have headless compositor rendered on gles widget >>> which could be rather current, with all protocols supported. I mainly >>> bailed out to keep this project feasible and getting somewhere in >>> reasonable amount of time. >>> >>> Re keyboard: current solution is to incorporate keyboard into the app by >>> adding into main window. I am waiting for Sailfish keyboard gurus to >>> comment on it with the hope that we can use some kind of plugin in flatpaks >>> for communication with SFOS keyboards (dbus is available, for example). >>> >>> Rinigus >>> >>> On Mon, Jan 6, 2020 at 7:55 AM Alexander Akulich < >>> akulichalexan...@gmail.com> wrote: >>> Hi all and thank you for working on this. Back in 2018 I had Qt 5.9 and Qt 5.11 builds for SFOS (they are not available anymore because of changes in OBS repos), but the builds were not usable because the of the same issues — wayland and virtual keyboard. As far as I understood, a compositor with newer wayland protocol is needed to support minimize and switching back to full screen (the applications were able to start, but I couldn't open them again after minimize). On Sat, Dec 28, 2019 at 3:54 AM Damien Caliste wrote: > > Thank you Rinigus for all of this. Indeed, the current main blocker seems to be the fact that xdg-shell is not available in Lipstick. This is linked to the ancient version of QtWayland, even not 5.6, but still 5.4 ! They already have a 5.9 branch in SailfishOS git ( https://git.sailfishos.org/mer-core/qtwayland/tree/mer-5.9), but we need to wait for Jolla to make the Qt switch. I don't think it's something community can change on device... I hope I can be proven wrong though. > > Damien. > ___ > 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
[SailfishDevel] [SOLVED] Re: symbol lookup error from syncemail-client (undefined symbol: _ZN5Buteo13PluginManagerC1Ev)
deloptes wrote: > I described the problem here: > https://together.jolla.com/question/220678/syncemail-client-undefined-symbol-_zn5buteo13pluginmanagerc1ev/ > Thanks Damien! I have no idea how this difference in the source files was imposed - but now I fixed it locally, so that I can test it. regards ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
Ok, so scrolling the whole panel is the way to go, thanks! szopin On Monday, 6 January 2020, David Llewellyn-Jones wrote: > On 06/01/2020 21:00, szo...@gmail.com wrote: > > Picture will probably illustrate what I mean easier: > > https://i.imgur.com/IKyMnAV.png > > The pictures are definitely helpful! > > > This is a self-expanding TextArea as you type, but it will happily go > > over the screen size and there is no way to get the text at the > > beginning into focus, I'm probably missing some super obvious way to > > avoid this? The only way I found to force scroll option was > > hardcoding its height which is noy pretty. > I could be misunderstanding completely (especially since you mention in > your other email about it being in a docked panel, and I'm not sure > whether that might affect things). > > I think the usual way would be to place the TextArea inside a > SilicaFlickable with SilicaFlickable.contentHeight set to > TextArea.contentHeight (or possibly TextArea.implicitHeight or > TextArea.height). If you include other stuff/padding inside the > flickable you'll need to take that into account too. > > You can then set the height of the SilicaFlickable to the height > available on the screen to allow scrolling of everything inside it. > > The notes app does something like this. It's not a great example because > there's a lot going on, but it might help: > > Line 160 sets the contentHeight: > > /usr/share/jolla-notes/pages/NotePage.qml > > David > -- > Website: http://www.flypig.co.uk > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or -- Sent from my Jolla ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
On 06/01/2020 21:00, szo...@gmail.com wrote: > Picture will probably illustrate what I mean easier: > https://i.imgur.com/IKyMnAV.png The pictures are definitely helpful! > This is a self-expanding TextArea as you type, but it will happily go > over the screen size and there is no way to get the text at the > beginning into focus, I'm probably missing some super obvious way to > avoid this? The only way I found to force scroll option was > hardcoding its height which is noy pretty. I could be misunderstanding completely (especially since you mention in your other email about it being in a docked panel, and I'm not sure whether that might affect things). I think the usual way would be to place the TextArea inside a SilicaFlickable with SilicaFlickable.contentHeight set to TextArea.contentHeight (or possibly TextArea.implicitHeight or TextArea.height). If you include other stuff/padding inside the flickable you'll need to take that into account too. You can then set the height of the SilicaFlickable to the height available on the screen to allow scrolling of everything inside it. The notes app does something like this. It's not a great example because there's a lot going on, but it might help: Line 160 sets the contentHeight: /usr/share/jolla-notes/pages/NotePage.qml David -- Website: http://www.flypig.co.uk ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
Picture will probably illustrate what I mean easier: https://i.imgur.com/IKyMnAV.png This is a self-expanding TextArea as you type, but it will happily go over the screen size and there is no way to get the text at the beginning into focus, I'm probably missing some super obvious way to avoid this? The only way I found to force scroll option was hardcoding its height which is noy pretty. Regards, szopin On Monday, 6 January 2020, David Llewellyn-Jones wrote: > On 06/01/2020 16:10, szo...@gmail.com wrote: > > Picture will be helpful: https://i.imgur.com/knA9qZP.png Is there any > > way to make the text start from left edge after the thumbnail ends? > > Not sure if there is something that would fill remaining space with > > text automatically, or if you can maybe hardcode the thumbnail size > > and force the text field to extend left after x lines? > > One way would be along the lines of your second suggestion, to use the > lineLaidOut() signal to increase the indent for something like the first > five lines of your text. > > https://doc.qt.io/qt-5/qml-qtquick-text.html#lineLaidOut-signal > > There's an example of this in the Messages app. When you have a draft > message shown on the main screen, the first line of the message is > shifted slightly to the right to accommodate a little pencil icon. The > code for this is around line 150 of the file > /usr/share/jolla-messages/pages/groups/GroupDelegate.qml in case the > example is helpful. > > David > -- > Website: http://www.flypig.co.uk > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or -- Sent from my Jolla ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
Sorry for another basic qml question, but is there a way to limit a TextArea expansion in a docked panel? maximumLineCount doesn't seem to work and the only way to get scroll option for longer inputs was hardcoding the height from start which is not aesthetically pleasing, but at least allows one to edit the input after it would normally end up above screen. Thanks in advance, szopin On Monday, 6 January 2020, David Llewellyn-Jones wrote: > On 06/01/2020 16:10, szo...@gmail.com wrote: > > Picture will be helpful: https://i.imgur.com/knA9qZP.png Is there any > > way to make the text start from left edge after the thumbnail ends? > > Not sure if there is something that would fill remaining space with > > text automatically, or if you can maybe hardcode the thumbnail size > > and force the text field to extend left after x lines? > > One way would be along the lines of your second suggestion, to use the > lineLaidOut() signal to increase the indent for something like the first > five lines of your text. > > https://doc.qt.io/qt-5/qml-qtquick-text.html#lineLaidOut-signal > > There's an example of this in the Messages app. When you have a draft > message shown on the main screen, the first line of the message is > shifted slightly to the right to accommodate a little pencil icon. The > code for this is around line 150 of the file > /usr/share/jolla-messages/pages/groups/GroupDelegate.qml in case the > example is helpful. > > David > -- > Website: http://www.flypig.co.uk > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or -- Sent from my Jolla ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
Awesome, this will do nicely, thank You! On Monday, 6 January 2020, David Llewellyn-Jones wrote: > On 06/01/2020 16:10, szo...@gmail.com wrote: > > Picture will be helpful: https://i.imgur.com/knA9qZP.png Is there any > > way to make the text start from left edge after the thumbnail ends? > > Not sure if there is something that would fill remaining space with > > text automatically, or if you can maybe hardcode the thumbnail size > > and force the text field to extend left after x lines? > > One way would be along the lines of your second suggestion, to use the > lineLaidOut() signal to increase the indent for something like the first > five lines of your text. > > https://doc.qt.io/qt-5/qml-qtquick-text.html#lineLaidOut-signal > > There's an example of this in the Messages app. When you have a draft > message shown on the main screen, the first line of the message is > shifted slightly to the right to accommodate a little pencil icon. The > code for this is around line 150 of the file > /usr/share/jolla-messages/pages/groups/GroupDelegate.qml in case the > example is helpful. > > David > -- > Website: http://www.flypig.co.uk > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or -- Sent from my Jolla ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
On 06/01/2020 16:10, szo...@gmail.com wrote: > Picture will be helpful: https://i.imgur.com/knA9qZP.png Is there any > way to make the text start from left edge after the thumbnail ends? > Not sure if there is something that would fill remaining space with > text automatically, or if you can maybe hardcode the thumbnail size > and force the text field to extend left after x lines? One way would be along the lines of your second suggestion, to use the lineLaidOut() signal to increase the indent for something like the first five lines of your text. https://doc.qt.io/qt-5/qml-qtquick-text.html#lineLaidOut-signal There's an example of this in the Messages app. When you have a draft message shown on the main screen, the first line of the message is shifted slightly to the right to accommodate a little pencil icon. The code for this is around line 150 of the file /usr/share/jolla-messages/pages/groups/GroupDelegate.qml in case the example is helpful. David -- Website: http://www.flypig.co.uk ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?
Hi, Picture will be helpful: https://i.imgur.com/knA9qZP.png Is there any way to make the text start from left edge after the thumbnail ends? Not sure if there is something that would fill remaining space with text automatically, or if you can maybe hardcode the thumbnail size and force the text field to extend left after x lines? Thanks in advance, szopin -- Sent from my Jolla ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Flatpak for Sailfish
Exactly, something like that is needed. Ideally, it would be hooked via Wayland (input extension?) and trigger the keyboard on focusing on any text field. But I will be happy with Qt only solution as well. Any tips on how to make it possible? Rinigus On Mon, Jan 6, 2020 at 10:51 AM Андрей Кожевников wrote: > Android side is using "remote keyboard" to show sailfish keyboard on top > of Android > > пн, 6 янв. 2020 г., 9:52 rinigus : > >> Morning! >> >> Re compositor issue: that has been worked around by having >> compositor-in-compositor. In theory, but I didn't look too much more than a >> day into it, we could have headless compositor rendered on gles widget >> which could be rather current, with all protocols supported. I mainly >> bailed out to keep this project feasible and getting somewhere in >> reasonable amount of time. >> >> Re keyboard: current solution is to incorporate keyboard into the app by >> adding into main window. I am waiting for Sailfish keyboard gurus to >> comment on it with the hope that we can use some kind of plugin in flatpaks >> for communication with SFOS keyboards (dbus is available, for example). >> >> Rinigus >> >> On Mon, Jan 6, 2020 at 7:55 AM Alexander Akulich < >> akulichalexan...@gmail.com> wrote: >> >>> Hi all and thank you for working on this. >>> >>> Back in 2018 I had Qt 5.9 and Qt 5.11 builds for SFOS (they are not >>> available anymore because of changes in OBS repos), but the builds >>> were not usable because the of the same issues — wayland and virtual >>> keyboard. As far as I understood, a compositor with newer wayland >>> protocol is needed to support minimize and switching back to full >>> screen (the applications were able to start, but I couldn't open them >>> again after minimize). >>> >>> On Sat, Dec 28, 2019 at 3:54 AM Damien Caliste wrote: >>> > >>> > Thank you Rinigus for all of this. Indeed, the current main blocker >>> seems to be the fact that xdg-shell is not available in Lipstick. This is >>> linked to the ancient version of QtWayland, even not 5.6, but still 5.4 ! >>> They already have a 5.9 branch in SailfishOS git ( >>> https://git.sailfishos.org/mer-core/qtwayland/tree/mer-5.9), but we >>> need to wait for Jolla to make the Qt switch. I don't think it's something >>> community can change on device... I hope I can be proven wrong though. >>> > >>> > Damien. >>> > ___ >>> > 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] Flatpak for Sailfish
Android side is using "remote keyboard" to show sailfish keyboard on top of Android пн, 6 янв. 2020 г., 9:52 rinigus : > Morning! > > Re compositor issue: that has been worked around by having > compositor-in-compositor. In theory, but I didn't look too much more than a > day into it, we could have headless compositor rendered on gles widget > which could be rather current, with all protocols supported. I mainly > bailed out to keep this project feasible and getting somewhere in > reasonable amount of time. > > Re keyboard: current solution is to incorporate keyboard into the app by > adding into main window. I am waiting for Sailfish keyboard gurus to > comment on it with the hope that we can use some kind of plugin in flatpaks > for communication with SFOS keyboards (dbus is available, for example). > > Rinigus > > On Mon, Jan 6, 2020 at 7:55 AM Alexander Akulich < > akulichalexan...@gmail.com> wrote: > >> Hi all and thank you for working on this. >> >> Back in 2018 I had Qt 5.9 and Qt 5.11 builds for SFOS (they are not >> available anymore because of changes in OBS repos), but the builds >> were not usable because the of the same issues — wayland and virtual >> keyboard. As far as I understood, a compositor with newer wayland >> protocol is needed to support minimize and switching back to full >> screen (the applications were able to start, but I couldn't open them >> again after minimize). >> >> On Sat, Dec 28, 2019 at 3:54 AM Damien Caliste wrote: >> > >> > Thank you Rinigus for all of this. Indeed, the current main blocker >> seems to be the fact that xdg-shell is not available in Lipstick. This is >> linked to the ancient version of QtWayland, even not 5.6, but still 5.4 ! >> They already have a 5.9 branch in SailfishOS git ( >> https://git.sailfishos.org/mer-core/qtwayland/tree/mer-5.9), but we need >> to wait for Jolla to make the Qt switch. I don't think it's something >> community can change on device... I hope I can be proven wrong though. >> > >> > Damien. >> > ___ >> > 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