summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/designer/src/uitools/doc/src/qtuitools-module.qdoc2
-rw-r--r--src/designer/src/uitools/quiloader.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/designer/src/uitools/doc/src/qtuitools-module.qdoc b/src/designer/src/uitools/doc/src/qtuitools-module.qdoc
index df44f5271..2820ac475 100644
--- a/src/designer/src/uitools/doc/src/qtuitools-module.qdoc
+++ b/src/designer/src/uitools/doc/src/qtuitools-module.qdoc
@@ -42,7 +42,9 @@
in a \c qmake project file to ensure that the application is compiled
and linked appropriately.
+ \if !defined(qtforpython)
\snippet quiloader/doc_src_qtuiloader.pro 0
+ \endif
A form loader object, provided by the QUiLoader class, is used to
construct the user interface. This user interface can
diff --git a/src/designer/src/uitools/quiloader.cpp b/src/designer/src/uitools/quiloader.cpp
index 5786f5ced..d8a883c9f 100644
--- a/src/designer/src/uitools/quiloader.cpp
+++ b/src/designer/src/uitools/quiloader.cpp
@@ -620,10 +620,12 @@ void QUiLoaderPrivate::setupWidgetMap() const
\snippet quiloader/mywidget.cpp 0
+ \if !defined(qtforpython)
By including the user interface in the form's resources (\c myform.qrc), we
ensure that it will be present at run-time:
\quotefile quiloader/mywidget.qrc
+ \endif
The availableWidgets() function returns a QStringList with the class names
of the widgets available in the specified plugin paths. To create these