KGuiAddons and QGestures like tap/click-and-hold to open context menu?
René J.V. Bertin
rjvbertin at gmail.com
Wed Mar 15 08:27:28 UTC 2017
On Wednesday March 15 2017 09:07:48 David Faure wrote:
>Definitely. But there's another solution: QObject::setProperty,
>which supports dynamic properties so you can store anything you want in there.
I did think of something like that, but didn't get around yet to figuring out how.
Any idea how much overhead that method comes with? A priori I'd just need to store a boolean.
Talking about overhead, what would be cheaper, storing the result of a dynamic_cast in a temp. variable or calling obj->inherits()? (I could peek at the sources and run benchmarks but I'm not convinced it'd be worth the time.)
R.
More information about the Kde-frameworks-devel
mailing list