[SailfishDevel] Supercession
In trying to update a Qt4 app (written for an N900) to Qt5 I wanted to find out what I should do in order to update something like this === code property QueryDialog deleteDialog === end code I get an error 'QueryDialog is not a type' and found out that QDialog does exist in Qt5 but it inherits Widgets and as they're not used in Sailfish, I wondered how I might go about finding out what *is* used. Often we have queries here when somebody has tried something and it hasn't worked, and the learned sailors respond with something along the lines of 'you need to do this', where 'this' is something new and peculiar to Sailfish. Is there a definitive list (albeit subject to change) for supercessions like this? ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Supercession
Le mercredi 29 janvier 2014 15:57:27 Chris Walker a écrit : In trying to update a Qt4 app (written for an N900) to Qt5 I wanted to find out what I should do in order to update something like this === code property QueryDialog deleteDialog === end code I get an error 'QueryDialog is not a type' and found out that QDialog does exist in Qt5 but it inherits Widgets and as they're not used in Sailfish, I wondered how I might go about finding out what *is* used. Often we have queries here when somebody has tried something and it hasn't worked, and the learned sailors respond with something along the lines of 'you need to do this', where 'this' is something new and peculiar to Sailfish. Is there a definitive list (albeit subject to change) for supercessions like this? Hello ! With the snippet that you quoted, I guess that you are trying to use QML to store a component holding for a dialog. If you are holding a component, you can still use property var deleteDialog and then implement the dialog in Silica specific component. However, in general, it is not recommended to mix QWidgets and QML, especially in a Qt 5 QML 2 application, not only in Sailfish, but when you use Qt 5. BR, Lucien ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] White screen and no errors
On Tue, 28 Jan 2014 16:14:11 +0100 christopher.l...@thurweb.ch wrote: Hi Marcin How did you deploy? Have you checked the QtCreator compile output as well as the application output? Same failure seen here and while it is normally down to a QML error, there is no helpful error report anywhere in any of the output windows. As Marcin said, in earlier versions, this type of error was always reported. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Supercession
On Wed, 29 Jan 2014 17:06:07 +0100 Lucien XU sfietkonstan...@free.fr wrote: Le mercredi 29 janvier 2014 15:57:27 Chris Walker a écrit : In trying to update a Qt4 app (written for an N900) to Qt5 I wanted to find out what I should do in order to update something like this === code property QueryDialog deleteDialog === end code I get an error 'QueryDialog is not a type' and found out that QDialog does exist in Qt5 but it inherits Widgets and as they're not used in Sailfish, I wondered how I might go about finding out what *is* used. Often we have queries here when somebody has tried something and it hasn't worked, and the learned sailors respond with something along the lines of 'you need to do this', where 'this' is something new and peculiar to Sailfish. Is there a definitive list (albeit subject to change) for supercessions like this? Hello ! With the snippet that you quoted, I guess that you are trying to use QML to store a component holding for a dialog. If you are holding a component, you can still use property var deleteDialog and then implement the dialog in Silica specific component. However, in general, it is not recommended to mix QWidgets and QML, especially in a Qt 5 QML 2 application, not only in Sailfish, but when you use Qt 5. BR, Lucien Bonjour Lucien, Thanks for ideas - saves me a few minutes ;-) My main query was for ideas on how to avoid this sort of problem by being able to look in any Sailfish docs for ways to do these things the Sailfish way - a sort of technical version of a 'style/theme' guide I guess. If I look at the emulator, it gives some examples so is there a codebase somewhere describing not only the things called out there but other examples too? Talking of style related items and this is a largely a question for the Sailfish people themselves, is there some sort of definition on how apps should present covers? If I look at my phone (while not wearing glasses), I find it hard to discriminate between emails and text messages. In some of the early pictures of the phone, the apps on the Home screen were shown with pictures. The only Sailfish app on that screen that has a cover icon is the People app. But having installed SMPC, that is a superb example IMHO of how it should be done. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Supercession
On Wed, 29 Jan 2014 16:53:19 + Chris Walker cdw_noki...@the-walker-household.co.uk wrote: On Wed, 29 Jan 2014 17:06:07 +0100 Lucien XU sfietkonstan...@free.fr wrote: Le mercredi 29 janvier 2014 15:57:27 Chris Walker a écrit : In trying to update a Qt4 app (written for an N900) to Qt5 I wanted to find out what I should do in order to update something like this === code property QueryDialog deleteDialog === end code I get an error 'QueryDialog is not a type' and found out that QDialog does exist in Qt5 but it inherits Widgets and as they're not used in Sailfish, I wondered how I might go about finding out what *is* used. Often we have queries here when somebody has tried something and it hasn't worked, and the learned sailors respond with something along the lines of 'you need to do this', where 'this' is something new and peculiar to Sailfish. Is there a definitive list (albeit subject to change) for supercessions like this? Hello ! With the snippet that you quoted, I guess that you are trying to use QML to store a component holding for a dialog. If you are holding a component, you can still use property var deleteDialog and then implement the dialog in Silica specific component. However, in general, it is not recommended to mix QWidgets and QML, especially in a Qt 5 QML 2 application, not only in Sailfish, but when you use Qt 5. BR, Lucien Bonjour Lucien, Thanks for ideas - saves me a few minutes ;-) My main query was for ideas on how to avoid this sort of problem by being able to look in any Sailfish docs for ways to do these things the Sailfish way - a sort of technical version of a 'style/theme' guide I guess. If I look at the emulator, it gives some examples so is there a codebase somewhere describing not only the things called out there but other examples too? D'oh! I should have looked more closely at the web page I had open BEFORE I wrote anything - https://sailfishos.org/sailfish-silica/qml-sailfishsilica-dialog.html ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] bidirectional channel toward people reviewing apps in Jolla harbour?
Hi, On 29.01.2014 17:07, Zoltán Lutor wrote: Hi, What is the preferred channel for bidirectional communication with people reviewing our apps submitted into Jolla Harbour? use: developer-care at jolla.com br Reto Thx, Zoltan https://www.facebook.com/ForFictionMobile ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] ListView with SectionDelegate (Strange Behaviour)
Hi Chris, I can reproduce this behavior with the code you posted and it seems to be a bug. I have encountered some days ago also a problem with section handling. If you are appending a new Item to the list, while you use FullString section headers, it's creating a new section, even if it is already there. The expected behavior should be, that the new item is sorted under the right section. Especially in my intended use case, it's a problem because I want to fetch some data from an online source and sort it in different sections. But how to do that, without appending? Insert is also not possible at all, because it's varying always. Even if the model is set after, appending (again) - it's not working. Also a code example added at the bottom (just modified your code). The new person/item with name Tom should be displayed in Boss section, but the ListView creates another Boss section at the end of the list. Maybe both are relating to each other? Thank you very much. Gabriel. import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page SilicaListView { id: contactList anchors.fill: parent model: contactModel delegate: Label { text: model.name width: page.width } section.property: section section.criteria: ViewSection.FullString section.delegate: Rectangle { height: 50 width: page.width color: Theme.secondaryHighlightColor opacity: 0.5 Label { anchors.horizontalCenter: parent.horizontalCenter text: section } } PullDownMenu { MenuItem { text: Add a person onClicked: { // comment out to set the model again, but thats not working at all. :-/ // contactList.model = emptyList contactModel.insert({name: Tom, section: Boss}) // contactList.model = contactModel } } } } ListModel {id: emptyList} ListModel { id: contactModel ListElement { name: Achim section: Boss } ListElement { name: Ana section: Friends } ListElement { name: Bezelbub section: Friends } ListElement { name: Billy section: Friends } ListElement { name: Boris section: Friends } ListElement { name: Carrie section: Friends } ListElement { name: Cassie section: Friends } ListElement { name: Eziekiel section: Family } ListElement { name: Gargantua section: Family } ListElement { name: Gilbert section: Family } ListElement { name: Giles section: Family } ListElement { name: Gog section: Workgroup } ListElement { name: Mabel section: Workgroup } ListElement { name: Magog section: Workgroup } } } Am Mittwoch, den 29.01.2014, 19:56 +0100 schrieb christopher.l...@thurweb.ch: Hi all I have come across some more strange behaviour. This time it is a ListView / SilicaListVew with a SectionDelegate based on FirstCharacter. For the items initially displayed this works well, with the section headers exactly where I would expect them (e.g between Anne and Babs in the code below) But as I flick up, I then a section header between each item (e.g between Gargantua and Gilbert). The code below demonstrates this on the emulator. Grüsse Chris import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page SilicaListView { id: contactList anchors.fill: parent model: contactModel delegate: Label { text: model.displayLabel width: page.width } section.property: displayLabel section.criteria: ViewSection.FirstCharacter section.delegate: Rectangle { height: 10 width: page.width color: lightblue } } ListModel { id: contactModel ListElement { displayLabel: Achim } ListElement { displayLabel: Ana } ListElement { displayLabel: Anne } ListElement { displayLabel: Babs } ListElement { displayLabel: Barnie } ListElement { displayLabel: Barry } ListElement { displayLabel:
[SailfishDevel] How to flick horizontally and vertically in one view?
Hi there, I've got another question on how to develop apps for SailfishOS. Please have a look at Jolla Calendar app. There you can flick horizontally between months and you can flick down pulley menu, also from the month part on top of the view. If there are many events in a day, the whole view is vertically scrollable. I want to implement a similar behavior in my app. Content of the view may be scrollable vertically and there shall be a pulley menu. By pushing left and right, the content shall flick to the content of the next respective previous week. I wonder how this works. I tried several things, but I don't know which components to combine to get this behavior. One possible solution is to use push buttons to go to previous/next week, but that's not very SailfishOS like. Maybe you can give me a clue. Or is it possible to have a look at the source code of Jolla Calendar app? Best regards, Tobi ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to flick horizontally and vertically inoneview?
Hi, You can have a peek at the calendar qml files in /usr/share/jolla-calendar/ Hope you find some hints there, Br, Asser Tobi D. kirjoitti Thu Jan 30 2014 00:53:08 GMT+0200 (EET): Hi there, I've got another question on how to develop apps for SailfishOS. Please have a look at Jolla Calendar app. There you can flick horizontally between months and you can flick down pulley menu, also from the month part on top of the view. If there are many events in a day, the whole view is vertically scrollable. I want to implement a similar behavior in my app. Content of the view may be scrollable vertically and there shall be a pulley menu. By pushing left and right, the content shall flick to the content of the next respective previous week. I wonder how this works. I tried several things, but I don't know which components to combine to get this behavior. One possible solution is to use push buttons to go to previous/next week, but that's not very SailfishOS like. Maybe you can give me a clue. Or is it possible to have a look at the source code of Jolla Calendar app? Best regards, Tobi ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Gstreamer HTTP source element
Actually never mond I found an older post containing the solution : install gst-plugins-good and use souphttpsrc. On Wed, Jan 29, 2014 at 12:37 AM, Antoine Reversat a.rever...@gmail.comwrote: Hi, I'm trying to set up a gstreamer pipeline to read from an http source but I can't find a source element that handles http. On my desktop machine I can use souphttpsrc but this is not present on my jolla emulator. I tried using uridecodebin but it says : No URI handler implemented for http Any idea woud be welcome :) Antoine ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour compliant way to read contacts
Hi, I am just wondering why there was the idea hey, let's do some bondage and use the Google API (or Facebook or...) instead of using CardDav and CalDav from the beginning. Shouldn't that have been the natural choice for an more or less open phone? Nevertheless I will be happy when the alternatives arrive. BR. Sven signature.asc Description: Message signed with OpenPGP using GPGMail ___ SailfishOS.org Devel mailing list
[SailfishDevel] FOSDEM 2014 special for community
Dear developers, FOSDEM 2014 [1] is just around the corner! Even though we didn't plan on having an official presence at the event with a booth etc., several Jolla sailors have made their own arrangements to be in Brussels this weekend. For the love of community, and the love of open source! (and perhaps the Belgium waffles, fries and beers...) In conjunction with this great event, and to show our appreciation for our wonderful Jolla community and Sailfish developers, we are offering a special discount. For a very limited time, you can get 40 EUR off when you purchase a Jolla from our webshop [2]. The discount code is FOSDEM2014, and here's the fine (as in well-written, not small and hidden ;) print: * Each customer can use the coupon code just once * Discount applies only to one phone in cart * This offer cannot be combined with any other offer * Coupon validity from NOW until 9.2. If you can't be at FOSDEM (like myself), you can still enjoy the special offer. Gift yourself or a loved one a Jolla! And if you are on your way to Brussels, don't miss Carsten's talk on Saturday @ 15:00 [3], followed by Sailfish community round-table @ 16:30 and Sailfish community dinner @ 19:30 [4]! Happy Chinese New Year and greetings from Taipei, Carol. [1] https://fosdem.org/2014/ [2] http://shop.jolla.com/ [3] https://fosdem.org/2014/schedule/event/technical_introduction_to_the_deeper_parts_of_sailfishos,_a_qt5_wayland_based_mobile_os/ [4] https://together.jolla.com/question/11303/are-you-going-to-fosdem-2014-irl-floss-meeting-in-belgium/?answer=11461#post-id-11461 -- Carol cybette Chen Community Chief @ Jolla http://jolla.com +358403502527 @ SMS,PSTN,WeChat cybette @ FreenodeIRC,Twitter,Weibo,LinkedIn,Skype ___ SailfishOS.org Devel mailing list