Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100416

QPluginLoader::loadHints return "no hints set" but by default PreventUnloadHint is set

    XMLWordPrintable

Details

    • Windows
    • 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)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peppe Giuseppe D'Angelo
            florianfischer Florian Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change