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