Qt for HarmonyOS/qtohosextras doc/QOhosShareControllerOptions Class: Difference between revisions
No edit summary |
Drop manual breadcrumb, MediaWiki renders it automatically (QTFOROH-2307) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
= QOhosShareControllerOptions Class = | |||
class [[Qt_for_HarmonyOS/qtohosextras_doc/Qt_Ohos_Extras_C++_Classes|QtOhosExtras]]::[[Qt_for_HarmonyOS/qtohosextras_doc/ShareKit_Namespace|ShareKit]]::QOhosShareControllerOptions | |||
The QOhosShareControllerOptions class is to configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel | The QOhosShareControllerOptions class is to configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel. [[#details|More...]] | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Header: | |||
| #include <QOhosShareControllerOptions> | | #include <QOhosShareControllerOptions> | ||
|- | |- | ||
| qmake: | |||
| QT += ohosextras | | QT += ohosextras | ||
|- | |- | ||
| Since: | |||
| Qt 5.12.12 | | Qt 5.12.12 | ||
|} | |} | ||
* [[List_of_All_Members_for_QOhosShareControllerOptions|List of all members, including inherited members]] | This class was introduced in Qt 5.12.12. | ||
* [[Qt_for_HarmonyOS/qtohosextras_doc/List_of_All_Members_for_QOhosShareControllerOptions|List of all members, including inherited members]] | |||
== Public Functions == | == Public Functions == | ||
{| class="wikitable | {| class="wikitable" | ||
|- | |- | ||
| virtual | | virtual void | ||
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/QOhosShareControllerOptions_Class#setAnchor|setAnchor]]'''(const QPoint &''anchorOffset'') = 0 | |||
|- | |- | ||
| virtual void | | virtual void | ||
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/QOhosShareControllerOptions_Class#setAnchor-1|setAnchor]]'''(const QRect &''anchor'') = 0 | |||
|- | |- | ||
| virtual void | | virtual void | ||
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/QOhosShareControllerOptions_Class#setDefaultPreviewMode|setDefaultPreviewMode]]'''(bool ''defaultPreviewMode'') = 0 | |||
|- | |- | ||
| virtual void | | virtual void | ||
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/QOhosShareControllerOptions_Class#setExcludedAbilities|setExcludedAbilities]]'''(const QList<ShareAbilityType> &''excludedAbilities'') = 0 | |||
|- | |- | ||
| virtual void | | virtual void | ||
| '''[[Qt_for_HarmonyOS/qtohosextras_doc/QOhosShareControllerOptions_Class#setSingleSelectionMode|setSingleSelectionMode]]'''(bool ''singleSelectionMode'') = 0 | |||
|} | |} | ||
== Detailed Description == | == Detailed Description == | ||
See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions] | |||
== Member Function Documentation == | == Member Function Documentation == | ||
=== <span id=" | === <span id="setAnchor"></span><code>[pure virtual] </code>void QOhosShareControllerOptions::setAnchor(const [https://doc.qt.io/qt-5/qpoint.html QPoint] &''anchorOffset'') === | ||
Sets sharing pop-up window anchor window offset with a given ''anchorOffset''. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.anchor] | Sets sharing pop-up window anchor window offset with a given ''anchorOffset''. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.anchor] | ||
=== <span id="setAnchor-1"></span>[pure virtual] void QOhosShareControllerOptions::setAnchor(const QRect &''anchor'') === | === <span id="setAnchor-1"></span><code>[pure virtual] </code>void QOhosShareControllerOptions::setAnchor(const [https://doc.qt.io/qt-5/qrect.html QRect] &''anchor'') === | ||
Sets anchor offset and size with a given ''anchor''. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section19505934714 ShareControllerAnchor] | Sets anchor offset and size with a given ''anchor''. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section19505934714 ShareControllerAnchor] | ||
=== <span id="setDefaultPreviewMode"></span>[pure virtual] void QOhosShareControllerOptions::setDefaultPreviewMode(bool ''defaultPreviewMode'') === | === <span id="setDefaultPreviewMode"></span><code>[pure virtual] </code>void QOhosShareControllerOptions::setDefaultPreviewMode(bool ''defaultPreviewMode'') === | ||
Set sharing panel preview mode with a given ''defaultPreviewMode''. If defaultPreviewMode is true, default preview mode (thumbnail card) is set, detail mode otherwise. Detail mode is recommended for images and videos. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.previewMode] | Set sharing panel preview mode with a given ''defaultPreviewMode''. If defaultPreviewMode is true, default preview mode (thumbnail card) is set, detail mode otherwise. Detail mode is recommended for images and videos. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.previewMode] | ||
=== <span id="setExcludedAbilities"></span>[pure virtual] void QOhosShareControllerOptions::setExcludedAbilities(const QList<[[ShareKit_Namespace#ShareAbilityType-enum| | === <span id="setExcludedAbilities"></span><code>[pure virtual] </code>void QOhosShareControllerOptions::setExcludedAbilities(const [https://doc.qt.io/qt-5/qlist.html QList]<[[Qt_for_HarmonyOS/qtohosextras_doc/ShareKit_Namespace#ShareAbilityType-enum|ShareAbilityType]]> &''excludedAbilities'') === | ||
Sets ''excludedAbilities'', the list of capabilities that do not need to be displayed in the operation area. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.excludedAbilities] | |||
=== <span id="setSingleSelectionMode"></span>[pure virtual] void QOhosShareControllerOptions::setSingleSelectionMode(bool ''singleSelectionMode'') === | === <span id="setSingleSelectionMode"></span><code>[pure virtual] </code>void QOhosShareControllerOptions::setSingleSelectionMode(bool ''singleSelectionMode'') === | ||
Sets sharing selection mode with a given ''singleSelectionMode''. If singleSelectionMode is true, single selection is set, batch mode otherwise. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.selectionMode] | Sets sharing selection mode with a given ''singleSelectionMode''. If singleSelectionMode is true, single selection is set, batch mode otherwise. See [https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010 ShareControllerOptions.selectionMode] | ||
[[Category:Qt for HarmonyOS]] | [[Category:Qt for HarmonyOS]] | ||
Latest revision as of 06:20, 17 September 2026
class QtOhosExtras::ShareKit::QOhosShareControllerOptions
The QOhosShareControllerOptions class is to configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel. More...
| Header: | #include <QOhosShareControllerOptions> |
| qmake: | QT += ohosextras |
| Since: | Qt 5.12.12 |
This class was introduced in Qt 5.12.12.
Public Functions
| virtual void | setAnchor(const QPoint &anchorOffset) = 0 |
| virtual void | setAnchor(const QRect &anchor) = 0 |
| virtual void | setDefaultPreviewMode(bool defaultPreviewMode) = 0 |
| virtual void | setExcludedAbilities(const QList<ShareAbilityType> &excludedAbilities) = 0 |
| virtual void | setSingleSelectionMode(bool singleSelectionMode) = 0 |
Detailed Description
Member Function Documentation
Sets sharing pop-up window anchor window offset with a given anchorOffset. See ShareControllerOptions.anchor
Sets anchor offset and size with a given anchor. See ShareControllerAnchor
Set sharing panel preview mode with a given defaultPreviewMode. If defaultPreviewMode is true, default preview mode (thumbnail card) is set, detail mode otherwise. Detail mode is recommended for images and videos. See ShareControllerOptions.previewMode
Sets excludedAbilities, the list of capabilities that do not need to be displayed in the operation area. See ShareControllerOptions.excludedAbilities
Sets sharing selection mode with a given singleSelectionMode. If singleSelectionMode is true, single selection is set, batch mode otherwise. See ShareControllerOptions.selectionMode