[Interest] QPixmap::scroll() is not HiDPI-aware?

2018-12-30 Thread Nikos Chantziaras
When I use QPixmap::scroll() it does not take the devicePixelRatio() of the pixmap into account, so the passed values need to be scaled beforehand. However, there is no QPixmap::scroll() overload that takes floating point arguments. It only takes integers. So when scaling the passed values by t

Re: [Interest] Use QMetaEnum::keyCount() to initialise array

2018-12-30 Thread Tom Isaacson
>On 19/12/2018 11:09, Tom Isaacson wrote: >> Is it possible to use QMetaEnum::keyCount() to initialise an array? >> Something like: >> >>     const QMetaEnum metaEnum = QMetaEnum::fromType(); >>     int MyArray[metaEnum.keyCount()]; >> >> It seems like Q_ENUM declares functions with Q_DECL_CON