![]() |
Arranging numbers/letters/tickmarks in a circle
1 Attachment(s)
My application shows a dial with compass bearings (numbers) and tickmarks (asterisks).
I cannot use QML CircularGauge for my purpose because 'Controls.Styles' is not available in SFOS. Currently, I am using this method for placing my text/numbers in a circular fashion; Code:
Rectangle { thanks, |
Re: Help me to code for Sailfish OS
found this https://github.com/RSATom/Qt/blob/ma...GaugeStyle.qml
i think its easy to copy and implement as standalone item |
Re: Help me to code for Sailfish OS
Quote:
/* I'll play anyway, its a huge file for what it does, amazing.*/ EDIT, I decided against playing with this file, it requires 4 import modules that are not available in SFOS. thanks, |
Re: Help me to code for Sailfish OS
Grab minimal code, then go to styles if you really need it. For bare minimal code inside CircularGaugeStyle is enough to be copied to standalone item
|
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
you can't just copy and paste, you have to code the code! you can take idea from existing qtquick item and adapt to your project.
|
Re: Help me to code for Sailfish OS
Is this anyway related even though there is no ready answer?
https://talk.maemo.org/showthread.php?t=96839 |
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
Would rinigus know answer to this? It seems he has done some stuff which may include something related.
|
Re: Help me to code for Sailfish OS
Quote:
- There is a page with a ListView, with a model from database contents - Tapping on an item opens a new Dialog, where the database item could change - popping the dialog leaves an old listview that needs refreshing Now, I found your GitHub page on callbacks: https://gist.github.com/CODeRUS/5235...bfaf0bafbeb7cd Could I push the dialog with a callback to a function that would update the listview? Or is that not what the callback is for? Something like: pageStack.push(Qt.resolvedUrl("DialogPage.qml"), {callback: updateListViewAfterDialog }) Update: yes, this seems to work! |
All times are GMT. The time now is 16:32. |
vBulletin® Version 3.8.8