![]() |
Re: Help me to code for Sailfish OS
i dont know a way to do this in pure qml without c++ code
|
Re: Help me to code for Sailfish OS
2 Attachment(s)
Alright. Well, I looked at c++ and didn't know how to implement it. So I just leave it for now.
Another question then. The first page looks awful in Landscape. It seems the height is still as high as in Portrait. One level deeper is normal behavior, but one level deeper it is also strange. First page is here: https://github.com/cow-n-berg/harbou...CachesPage.qml I think I don't mess around with any height, only for the ListItem. How can it happen? |
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
I have a similar problem with landscape with regard to positioning items.
This is editing directly on the device not in SDK, where I know Lipstick is not allowed. A few years back, we could do the following for rotating items when in landscape; HTML Code:
import QtQuick 2.0 Code:
[W] unknown:10 - file:///usr/share/wind-dash/qml/pages/Labels.qml:10: ReferenceError: Lipstick is not defined |
Re: Help me to code for Sailfish OS
you want rotation but dont want to rotate page? use rotation sensor.
|
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
correct [10 chars]
|
Re: Help me to code for Sailfish OS
Quote:
The problem is, my row and column spacings are not changing position when turned to landscape. The code I posted previously allowed me to do just that, now it does not work. |
Re: Help me to code for Sailfish OS
2 Attachment(s)
Okay,
I've found another way to achieve my goal. I took a good look in `/usr/lib/qt5/qml/Sailfish/Lipstick` and found some code pertaining to rotation/rotating items; `isLandscape` does the job, so the code now looks like this; Code:
import QtQuick 2.0 |
All times are GMT. The time now is 15:15. |
vBulletin® Version 3.8.8