Re: [Interest] QMap<> function documentation

2022-05-25 Thread Thiago Macieira
On Wednesday, 25 May 2022 09:19:52 PDT Michael Jackson wrote: > Specifically for the part of “value(…)” and “values(…)” that talk about > “multiple values for a key”. Each key is unique in the QMap so how would I > have multiple values associated with a key? Maybe I’m just not > understanding what

[Interest] QMap<> function documentation

2022-05-25 Thread Michael Jackson
I feel like the documentation for QMap<>::value and QMap<>::values is a bit misleading: const T QMap::value(const Key &key, const T &defaultValue = T()) const Returns the value associated with the key key. If the map contains no item with key key, the function returns defaultValue. If no defa

Re: [Interest] Change QML Application Style on Runtime

2022-05-25 Thread Michael Jackson
Here is a bit of the code that we used in our desktop QML application to reload the application when the user pressed F7. QQmlApplicationEngine engine; QmlReloader reloader(&engine); QObject::connect( &engine, &QQmlApplicationEngine::objectCreated, qApp, [](QObject*

Re: [Interest] Qt Android - Targeting API 29 (Android 10): How to write to a non scoped location that is visible to the user via generic Files app?

2022-05-25 Thread Markus Haberlander
Hello, I also had a hard time with that recently. I believe the possible solutions (all need JNI AFAIK) are nicely described here: https://stackoverflow.com/a/58379655/3859568 As far as I understood the related QTBUG entries, none of these will be part of Qt5. You wouldn't need these as long as u