// Copyright (C) 2018 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // ********************************************************************** // NOTE: the sections are not ordered by their logical order to avoid // reshuffling the file each time the index order changes (i.e., often). // Run the fixnavi.pl script to adjust the links to the index order. // ********************************************************************** /*! \previouspage creator-using-qt-designer.html \page adding-plugins.html \nextpage creator-usability.html \title Adding Qt Designer Plugins You can use Qt APIs to create plugins that extend Qt applications. This enables you to add your own widgets to \QD. The most flexible way to include a plugin with an application is to compile it into a dynamic library that is shipped separately, and detected and loaded at runtime. The applications can detect plugins that are stored in the standard plugin subdirectories. For more information on how to create and locate plugins and to change the default plugin path, see \l{How to Create Qt Plugins}. For more information about how to create plugins for \QD, see \l{Using Custom Widgets with Qt Designer}. \section1 Locating Qt Designer Plugins \QD fetches plugins from the standard locations and loads the plugins that match its build key. \QD is delivered both as a standalone application and integrated into \QC. The correct folder to place the plugins depends on whether you use the standalone \QD or the integrated \QD. The integrated \QD fetches plugins from the \QC installation directory. Designer plugins are loaded from \c {\bin\plugins\designer} on Windows, \c {/lib/Qt/plugins/designer} on Linux, and \c {Qt Creator.app/Contents/PlugIns/designer} on macOS. To check which plugins were loaded successfully and which failed, choose \uicontrol Tools > \uicontrol {Form Editor} > \uicontrol {About Qt Designer Plugins}. The standalone \QD is part of the Qt library used for building projects, located in \c {\\bin} in the Qt installation directory. It fetches plugins from the \c {\plugins\designer} subdirectory of \c bin. To check which plugins were loaded successfully and which failed, choose \uicontrol Help > \uicontrol {About Plugins} on Linux and Windows (or \uicontrol {\QC} > \uicontrol {About Plugins} on \macos). \section1 Matching Build Keys The \QC that is included in pre-built Qt packages on Windows is built with the Microsoft Visual Studio compiler. If you install a Qt version that was built with the \MinGW/g++ compiler, plugins built with this version of Qt cannot be loaded by \QC because the build-keys do not match. The same is true if you use a Qt version that is newer than the Qt version that Qt Creator was built with, or that is otherwise incompatible. The plugins can then only be used in the standalone version of \QD. Choose \uicontrol Help > \uicontrol {About \QC} to check the Qt version and compiler that \QC was built with. To use \QD plugins that were built for the shipped Qt version, make sure that \QC is built with the same compiler by either recompiling \QC using \MinGW or installing a Qt version that was built with Microsoft Visual Studio, depending on which configuration you want to use for your applications. */