Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
6.2.3
-
None
-
-
e7d627339c (qt/qtbase/dev) e7d627339c (qt/tqtc-qtbase/dev) 28c2dfb9bb (qt/qtbase/6.3) 28c2dfb9bb (qt/tqtc-qtbase/6.3) a633bc491f (qt/qtbase/6.2) a633bc491f (qt/tqtc-qtbase/6.2)
Description
QPluginLoader by default have set QLibrary::PreventUnloadHint
On a new QPluginLoader Object loadHints returns "no hints set"
QLibrary::LoadHints hints = loader.loadHints(); qDebug() << hints; hints |= QLibrary::LoadHint::PreventUnloadHint; qDebug() << hints; loader.setLoadHints ( hints ); qDebug() << loader.loadHints();
This code outputs
QFlags<QLibrary::LoadHint>()
QFlags<QLibrary::LoadHint>(PreventUnloadHint)
QFlags<QLibrary::LoadHint>(PreventUnloadHint)