![]() |
Re: Draggable rectangle in both screen orientations
Solution:
Code:
import QtQuick 2.0 |
Re: Draggable rectangle in both screen orientations
Quote:
|
Re: Draggable rectangle in both screen orientations
obviously you should integrate it with lipstick yourself. i have no idea what are you doing.
|
Re: Draggable rectangle in both screen orientations
Indeed, your very first sentence in the first post was "I have a draggable rectangle on a page" – which, I think, led most people to assume you meant the Page Component from Silica. If that's not the case, you're going to have to adapt it yourself. :)
|
Re: Draggable rectangle in both screen orientations
Quote:
What am I trying to achieve: I want to create a floating/draggable clock on the lockscreen. I would like the clock to stay within the screen area in both portrait and landscape at all times. I am using Clock.qml in lipstick-jolla-home-qt5/lockscreen to create it. So far, what I have is working to a degree, all except being able to keep it in the screen area when rotated either to landscape; so here it is, replace your Clock.qml file with mine; Code:
import QtQuick 2.0 |
Re: Draggable rectangle in both screen orientations
Quote:
|
Re: Draggable rectangle in both screen orientations
Right, I have it working, just need to do some fine tuning to some figures and the look.
The solution was really quite simple, by replacing 'parent' with 'lockScreen'; Code:
MouseArea { Thanks for your input guys, here's my Clock.qml page for anyone interested; (WIP) Code:
import QtQuick 2.0 p.s. I have a QtCreator running, I installed it to a second HDD on my laptop, it still takes a good few minutes to open, but is working! |
All times are GMT. The time now is 19:25. |
vBulletin® Version 3.8.8