eduardofleury.com Archives: April 2010
·
30 April 2010
Mapping mouse position to angles (QtQuick example)
Hi there! This post is to share with you something I hacked these days. The use case Image you are writing a widget or a piece of an application interface and you want to rotate something based on a mouse click. For instance, you may have a widget that looks like a rotating knob, or [...]
continue reading... » 0 Comments
5 April 2010
Arbitrary and/or animated opacity masks to QGraphicsItems with QGraphicsEffect
Last week I dropped by this neat image slider and was wondering how could that be done in Qt (C++ or Quick). And basically what we need is an animated opacity mask, or “clipper”. While QGraphicsView and QML already provide rectangular clipping, it does not support clipping to arbitrary forms and opacity, something we would [...]

