![]() |
Re: Help me to code for Sailfish OS
mm, related, both, property binding and "onAboutToChange" signal does not actually work completely. Thing is, both react "too soon". I had Assigned Theme.highlightColor to my property, problem is, there is actually "old" stuff in that property, so my property changes to what was there before the change of Ambience. I can bind property highlightColor and on that it reacts better but I suppose it might screw me if I would need to use any other Theme properties.. I need reaction on Ambience already changed, it might be through property binding, but I would need to know, which is "last in list". Or can I get status of changing the ambience?
|
Re: Help me to code for Sailfish OS
in the example above os handling ambience change with 600ms timer: https://github.com/CODeRUS/better-sa...indow.qml#L234
|
Re: Help me to code for Sailfish OS
thanks, Timer then, I did not need Timer yet, I will look at it :) I could wrap some animation with it
Code:
Timer { EDIT: for the record, as "ThemeChanger" property bindind I have used Theme._homeBackgroundImage , because it changes everytime you change the ambience, even if the actual background image is the same picture (tested :) ) |
Re: Help me to code for Sailfish OS
Hi,
I have made a fully functioning UI for my LED RGBW lighting strip (10 rows / 4 buttons per row). I have used a MouseArea for each button, but this makes the code bulky. I would like to know how to call each IR code from another page within my app, but I don't really know where to start. Currently, I have this for each button on my first page; Code:
Row { id: row1; ........ Thanks, |
Re: Help me to code for Sailfish OS
Quote:
https://doc-snapshots.qt.io/qt5-5.9/...x-signals.html https://stackoverflow.com/questions/...qml-to-another https://forum.qt.io/topic/103891/qml...-another-qml/6 |
Re: Help me to code for Sailfish OS
inside main.qml declare:
Code:
function controlLamp(endpoint) { Code:
MouseArea { |
Re: Help me to code for Sailfish OS
Quote:
I now have only one mouse area per row of 4 buttons, this is much better ;) |
Re: Help me to code for Sailfish OS
Hi, I've been thinking of adding auto refresh interval to my app and also to add settings for that auto refresh and also for other things. Are there any simple code examples for C++ or JavaScript?
|
Re: Help me to code for Sailfish OS
Quote:
To store settings, SailishOS has the Configuration API for QML. I must say the documentation isn't very clear and lacking of any examples... |
Re: Help me to code for Sailfish OS
Quote:
|
All times are GMT. The time now is 22:19. |
vBulletin® Version 3.8.8