diff --git a/src/corelib/doc/snippets/cmake-macros/examples.cmake b/src/corelib/doc/snippets/cmake-macros/examples.cmake index 835d45bc089..0927cf9556d 100644 --- a/src/corelib/doc/snippets/cmake-macros/examples.cmake +++ b/src/corelib/doc/snippets/cmake-macros/examples.cmake @@ -68,11 +68,11 @@ qt_generate_moc(main.cpp main.moc TARGET myapp) #! [qt_import_plugins] qt_add_executable(myapp main.cpp) -target_link_libraries(myapp Qt::Gui Qt::Sql) +target_link_libraries(myapp Qt6::Gui Qt6::Sql) qt_import_plugins(myapp - INCLUDE Qt::QCocoaIntegrationPlugin - EXCLUDE Qt::QMinimalIntegrationPlugin - INCLUDE_BY_TYPE imageformats Qt::QGifPlugin Qt::QJpegPlugin + INCLUDE Qt6::QCocoaIntegrationPlugin + EXCLUDE Qt6::QMinimalIntegrationPlugin + INCLUDE_BY_TYPE imageformats Qt6::QGifPlugin Qt6::QJpegPlugin EXCLUDE_BY_TYPE sqldrivers ) #! [qt_import_plugins] diff --git a/src/corelib/doc/src/cmake/qt_import_plugins.qdoc b/src/corelib/doc/src/cmake/qt_import_plugins.qdoc index 1f81a21cd2d..a7b831900bb 100644 --- a/src/corelib/doc/src/cmake/qt_import_plugins.qdoc +++ b/src/corelib/doc/src/cmake/qt_import_plugins.qdoc @@ -89,7 +89,7 @@ In the snippet above, the following occurs with the executable \c myapp: \li The \c Qt6::QMinimalIntegrationPlugin plugin is excluded from being automatically imported into myapp. \li The default list of plugins for \c imageformats is - overridden to only include Qt6::QGifPlugin and Qt6::QJpegPlugin. + overridden to only include \c Qt6::QGifPlugin and \c Qt6::QJpegPlugin. \li All \c sqldrivers plugins are excluded from automatic importing. \endlist