diff options
author | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-10-19 16:58:51 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-11-27 09:18:33 +0000 |
commit | 06b948036932abce31ee23126af9e2c91205248c (patch) | |
tree | 1e1c444f608686bd9e8df1ffa13b2d79c56c48c3 /sources | |
parent | 80d127dcac7695efbb1f3e4f5cecf3ac5943c952 (diff) |
Add documentation related QPixmap.loadFromData
Task-number: PYSIDE-840
Change-Id: I637186335123500013a265b8a6f6554dfdceb225
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml index 1d09dee7a..6818612cb 100644 --- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml +++ b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml @@ -602,6 +602,18 @@ <modify-function signature="operator!()const" remove="all"/> <modify-function signature="loadFromData(const uchar*,uint,const char*,QFlags<Qt::ImageConversionFlag>)"> + <inject-documentation format="target" mode="append"> + This method must be used with an QPixmap object, not the class: + + :: + + # Wrong + pixmap = QPixmap.loadFromData(...) + + # Right + pixmap = QPixmap().loadFromData(...) + + </inject-documentation> <modify-argument index="1"> <replace-type modified-type="PyBytes"/> <conversion-rule class="native"> |