[Interest] Warning about QHash keys().toVector()

Kevin André hyperquantum at gmail.com
Mon Jun 14 22:29:40 CEST 2021

On Sun, Jun 13, 2021 at 8:29 PM Konstantin Shegunov <kshegunov at gmail.com> wrote:
> On Sun, Jun 13, 2021 at 7:22 PM Kevin André <hyperquantum at gmail.com> wrote:
>> How can I avoid the warning in this case?
> return QVector<..>(_actions.keyBegin(), _actions.keyEnd());
> Should work, I believe.

This would have been my preferred solution. But that constructor was
introduced in Qt 5.14, and I am still using Qt 5.12.



More information about the Interest mailing list