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

Startup warnings "... You should not use it as a QML type"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.4.1, 6.4.2, 6.4.3
    • WebEngine
    • None
    • Windows 10
    • All

    Description

      Since upgrading from Qt 6.3.2 to 6.4.1 I started notice Qt wanings at app startup:

      QWebEngineCertificateError is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
      QWebEngineFullScreenRequest is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
      QWebEngineLoadingInfo is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
      

      Stack:

       	Qt6Cored.dll!qt_message_print(QtMsgType msgType, const QMessageLogContext & context, const QString & message) Line 1874	C++
       	Qt6Cored.dll!qt_message_output(QtMsgType msgType, const QMessageLogContext & context, const QString & message) Line 1926	C++
       	Qt6Cored.dll!QDebug::~QDebug() Line 171	C++
       	Qt6WebEngineQuickd.dll!QQmlPrivate::qmlRegisterTypeAndRevisions<QWebEngineFullScreenRequest,void>(const char * uri, int versionMajor, const QMetaObject * classInfoMetaObject, QList<int> * qmlTypeIds, const QMetaObject * extension, bool forceAnonymous) Line 982	C++
       	Qt6WebEngineQuickd.dll!QmlTypeAndRevisionsRegistration<ForeignWebEngineFullScreenRequest,QWebEngineFullScreenRequest,void,0,0,0>::registerTypeAndRevisions(const char * uri, int versionMajor, QList<int> * qmlTypeIds, const QMetaObject * extension) Line 756	C++
       	Qt6WebEngineQuickd.dll!qmlRegisterTypesAndRevisions<ForeignWebEngineFullScreenRequest>(const char * uri, int versionMajor, QList<int> * qmlTypeIds) Line 803	C++
       	Qt6WebEngineQuickd.dll!qml_register_types_QtWebEngine() Line 37	C++
       	Qt6Qmld.dll!QQmlMetaTypeData::registerModuleTypes(const QString & uri) Line 81	C++
       	Qt6Qmld.dll!QQmlMetaType::registerPluginTypes(QObject * instance, const QString & basePath, const QString & uri, const QString & typeNamespace, QTypeRevision version, QList<QQmlError> * errors) Line 832	C++
       	Qt6Qmld.dll!QQmlPluginImporter::importDynamicPlugin(const QString & filePath, const QString & pluginId, bool optional) Line 293	C++
       	Qt6Qmld.dll!QQmlPluginImporter::importPlugins() Line 531	C++
       	Qt6Qmld.dll!QQmlImports::importExtension(const QString & uri, QTypeRevision version, QQmlImportDatabase * database, const QQmlTypeLoaderQmldirContent * qmldir, QList<QQmlError> * errors) Line 975	C++
       	Qt6Qmld.dll!QQmlImports::addLibraryImport(QQmlImportDatabase * database, const QString & uri, const QString & prefix, QTypeRevision version, const QString & qmldirIdentifier, const QString & qmldirUrl, QFlags<enum QQmlImports::ImportFlag> flags, QList<QQmlError> * errors) Line 1231	C++
       	Qt6Qmld.dll!QQmlTypeLoader::Blob::addLibraryImport::__l2::<lambda>(const QString & qmldirFilePath, const QString & qmldirUrl) Line 589	C++
       	Qt6Qmld.dll!QQmlImportDatabase::locateLocalQmldir<bool <lambda>(const QString &, const QString &)>(const QString & uri, QTypeRevision version, QQmlImportDatabase::LocalQmldirSearchLocation location, const QQmlTypeLoader::Blob::addLibraryImport::__l2::bool <lambda>(const QString &, const QString &) & callback) Line 417	C++
       	Qt6Qmld.dll!QQmlTypeLoader::Blob::addLibraryImport(std::shared_ptr<QQmlTypeLoader::Blob::PendingImport> import, QList<QQmlError> * errors) Line 582	C++
       	Qt6Qmld.dll!QQmlTypeLoader::Blob::addImport(std::shared_ptr<QQmlTypeLoader::Blob::PendingImport> import, QList<QQmlError> * errors) Line 721	C++
       	Qt6Qmld.dll!QQmlTypeLoader::Blob::addImport(const QV4::CompiledData::Import * import, QFlags<enum QQmlImports::ImportFlag> flags, QList<QQmlError> * errors) Line 711	C++
       	Qt6Qmld.dll!QQmlTypeData::continueLoadFromIR() Line 672	C++
       	Qt6Qmld.dll!QQmlTypeData::initializeFromCachedUnit(const QQmlPrivate::CachedQmlUnit * unit) Line 584	C++
       	Qt6Qmld.dll!QQmlTypeLoader::setCachedUnit(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit) Line 431	C++
       	Qt6Qmld.dll!QQmlTypeLoader::loadWithCachedUnitThread(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit) Line 229	C++
       	Qt6Qmld.dll!CachedLoader::loadThread(QQmlTypeLoader * loader, QQmlDataBlob * blob) Line 145	C++
       	Qt6Qmld.dll!QQmlTypeLoader::doLoad<CachedLoader>(const CachedLoader & loader, QQmlDataBlob * blob, QQmlTypeLoader::Mode mode) Line 168	C++
       	Qt6Qmld.dll!QQmlTypeLoader::loadWithCachedUnit(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit, QQmlTypeLoader::Mode mode) Line 215	C++
       	Qt6Qmld.dll!QQmlTypeLoader::getType(const QUrl & unNormalizedUrl, QQmlTypeLoader::Mode mode) Line 896	C++
       	Qt6Qmld.dll!QQmlTypeData::resolveTypes() Line 845	C++
       	Qt6Qmld.dll!QQmlTypeData::allDependenciesDone() Line 720	C++
       	Qt6Qmld.dll!QQmlTypeLoader::setCachedUnit(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit) Line 434	C++
       	Qt6Qmld.dll!QQmlTypeLoader::loadWithCachedUnitThread(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit) Line 229	C++
       	Qt6Qmld.dll!CachedLoader::loadThread(QQmlTypeLoader * loader, QQmlDataBlob * blob) Line 145	C++
       	Qt6Qmld.dll!QQmlTypeLoader::doLoad<CachedLoader>(const CachedLoader & loader, QQmlDataBlob * blob, QQmlTypeLoader::Mode mode) Line 168	C++
       	Qt6Qmld.dll!QQmlTypeLoader::loadWithCachedUnit(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit, QQmlTypeLoader::Mode mode) Line 215	C++
       	Qt6Qmld.dll!QQmlTypeLoader::getType(const QUrl & unNormalizedUrl, QQmlTypeLoader::Mode mode) Line 896	C++
       	Qt6Qmld.dll!QQmlTypeData::resolveTypes() Line 845	C++
       	Qt6Qmld.dll!QQmlTypeData::allDependenciesDone() Line 720	C++
       	Qt6Qmld.dll!QQmlTypeLoader::setCachedUnit(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit) Line 434	C++
       	Qt6Qmld.dll!QQmlTypeLoader::loadWithCachedUnitThread(QQmlDataBlob * blob, const QQmlPrivate::CachedQmlUnit * unit) Line 229	C++
       	Qt6Qmld.dll!QQmlTypeLoaderThread::loadWithCachedUnitThread(QQmlDataBlob * b, const QQmlPrivate::CachedQmlUnit * unit) Line 139	C++
       	Qt6Qmld.dll!`QQmlThread::callMethodInThread<QQmlDataBlob *,QQmlPrivate::CachedQmlUnit const *,QQmlDataBlob *,QQmlPrivate::CachedQmlUnit const *,QQmlTypeLoaderThread>'::`2'::I::call(QQmlThread * thread) Line 145	C++
       	Qt6Qmld.dll!QQmlThreadPrivate::threadEvent() Line 164	C++
       	Qt6Qmld.dll!QQmlThreadPrivate::event(QEvent * e) Line 107	C++
       	Qt6Widgetsd.dll!QApplicationPrivate::notify_helper(QObject * receiver, QEvent * e) Line 3315	C++
       	Qt6Widgetsd.dll!QApplication::notify(QObject * receiver, QEvent * e) Line 3266	C++
       	Qt6Cored.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1026	C++
       	Qt6Cored.dll!QCoreApplication::sendEvent(QObject * receiver, QEvent * event) Line 1443	C++
       	Qt6Cored.dll!QCoreApplicationPrivate::sendPostedEvents(QObject * receiver, int event_type, QThreadData * data) Line 1804	C++
       	Qt6Cored.dll!QEventDispatcherWin32::sendPostedEvents() Line 894	C++
       	Qt6Cored.dll!QEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags) Line 464	C++
       	Qt6Cored.dll!QEventLoop::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags) Line 101	C++
       	Qt6Cored.dll!QEventLoop::exec(QFlags<enum QEventLoop::ProcessEventsFlag> flags) Line 182	C++
       	Qt6Cored.dll!QThread::exec() Line 578	C++
       	Qt6Qmld.dll!QQmlThreadPrivate::run() Line 120	C++
       	Qt6Cored.dll!QThreadPrivate::start(void * arg) Line 292	C++
       	kernel32.dll!BaseThreadInitThunk()	Unknown
       	ntdll.dll!RtlUserThreadStart()	Unknown
      

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              studiosus Vladimir Belyavsky
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes