[Interest] QML Skew animation?

Mark Gaiser markg85 at gmail.com
Tue Jun 24 14:11:50 CEST 2014


On Tue, Jun 24, 2014 at 11:26 AM, Gunnar Sletta <gunnar.sletta at jolla.com> wrote:
> Hi Mark,
>
> Starting 5.4 you can implement the skew yourself using the Matrix4x4 as input to the Item.transform.
>
> In 5.3 the way through public API would be to use a ShaderEffect or to implement a custom item which returns a QSGTransformNode with a skew matrix which has a textured node as child.
>
> If you want to implement and contribute a Skew and SkewAnimator types, I'd be happy to review them. Otherwise, feel free to make a suggestion on bugreports.qt-project.org.
>
Ohh, i was guessing that the current Matrix4x4 would be capable of
doing skew already, no?
Anyway, i will wait for 5.4 to use that matrix for skewing purposes :)

> cheers,
> Gunnar
>
> On 24 Jun 2014, at 10:57, Mark Gaiser <markg85 at gmail.com> wrote:
>
>> On Mon, Jun 23, 2014 at 10:55 PM, Ian Monroe <ian at monroe.nu> wrote:
>>> On Mon, Jun 23, 2014 at 1:48 PM, Mark Gaiser <markg85 at gmail.com> wrote:
>>>> Hi,
>>>>
>>>> QML has the Rotate and Scale possibility, but i can't find a way to do
>>>> image skewing. If you don't know what skewing is, please look at this
>>>> image [1].
>>>>
>>>> Skewing is possible in QML's canvas item, but that isn't suited for
>>>> animating stuff. Then QML also has the Matrix4x4 which "could" be used
>>>> to do a skewing animation, but that makes it more complicated then it
>>>> has to be. Shaders are another possibility...
>>>>
>>>> What i'm searching for is some easy to use:
>>>>
>>>> Rectangle {
>>>>    ....
>>>>    transform: Skew { x: 10; y: 10}
>>>>    ....
>>>> }
>>>>
>>>> or something alike..
>>>> or a "SkewAnimator" just like you have a ScaleAnimator and a couple others.
>>>
>>> Rotating on the Z axis skews the image, though I'm not saying it meets
>>> your needs for a skewing operation.
>>>
>>> Ian
>>
>> Hi Ian,
>>
>> Thank you for your suggestion. I wasn't sure if that would work so i
>> tried it. Sadly, that's not giving the skewing results i was
>> expecting..
>> Look like QML (besides canvas) doesn't have this capability?
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list