uwerat / qskinny

A lightweight framework on top of the Qt scene graph and only few classes from Qt/Quick. It is usable from C++ and/or QML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QskSkinlet::subControlRect: using QPainterPath

uwerat opened this issue · comments

commented

Not all Subcontrols are "rectangular" ( f.e arcs ) and the bounding rectangle might be not accurate enough for handling pointer/hover events. Might be better to use return a QPainterPath instead.

QskSkinlet::subControlRect/QskSkinlet::sampleRect should be QskSkinlet::subControlPath/QskSkinlet::samplePath then.