diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-11-09 03:07:57 +0100 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-11-09 03:07:57 +0100 |
commit | 78d56d0630c78c391cc17b8ab552cf6079b3a15e (patch) | |
tree | e4541b6462ac66c68c7a9db0383d5581fab401a2 /src/designer | |
parent | 62eb4f299a5ac9eb93512cdfd9aa1872f88332d4 (diff) | |
parent | 6ae18c04ceae3668536ae2016f0b3d1d7cf75b01 (diff) |
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: Ib03e04e3ed003ab487fb610663b9308fad70604e
Diffstat (limited to 'src/designer')
-rw-r--r-- | src/designer/src/lib/uilib/abstractformbuilder.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/designer/src/lib/uilib/abstractformbuilder.cpp b/src/designer/src/lib/uilib/abstractformbuilder.cpp index 572c3023f..686442af0 100644 --- a/src/designer/src/lib/uilib/abstractformbuilder.cpp +++ b/src/designer/src/lib/uilib/abstractformbuilder.cpp @@ -1032,6 +1032,21 @@ QActionGroup *QAbstractFormBuilder::createActionGroup(QObject *parent, const QSt Saves an XML representation of the given \a widget to the specified \a device in the standard UI file format. + \note Unlike when saving a form in Qt Designer, all property values are + written. This is because, the state of whether a property value was + modified or not isn't stored in the Qt property system. The widget that + is being saved, could have been created dynamically, not loaded via + \l load(), so in this case the form builder isn't aware of the list of + changed properties. Also, there's no generic way to do this for widgets + that were created dynamically. + + Therefore, you should remove properties that are not required from your + resulting XML files, before loading them. Alternatively, if you already + know which properties you want to save when you call this method, + you can overload \l computeProperties() and return a filtered list of + required properties. Otherwise, unexpected behavior may occur as some + of these properties may depend on each other. + \sa load() */ void QAbstractFormBuilder::save(QIODevice *dev, QWidget *widget) |