Qt for HarmonyOS/qtohosextras doc/QOhosShareControllerOptions Class: Difference between revisions
Created page with "(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. See ShareControllerOptions. More... {| class="wikitable" |Header: |#include <QOhosShareControllerOptions> |- |qmake: |QT += ohosextras |- |Since: |Qt 5.12.12 |} * List of all members, includi..." |
No edit summary |
||
| Line 14: | Line 14: | ||
* List of all members, including inherited members | * List of all members, including inherited members | ||
* | |||
== Public Functions == | == Public Functions == | ||
| Line 47: | Line 48: | ||
== Member Function Documentation == | == Member Function Documentation == | ||
=== | === [protected] QOhosShareControllerOptions::QOhosShareControllerOptions() === | ||
Default constructs an instance of QOhosShareControllerOptions. | Default constructs an instance of QOhosShareControllerOptions. | ||
=== | === [virtual] QOhosShareControllerOptions::~QOhosShareControllerOptions() === | ||
Destroys the instance of QOhosShareControllerOptions. The destructor is virtual. | Destroys the instance of QOhosShareControllerOptions. The destructor is virtual. | ||
=== | === [pure virtual] void QOhosShareControllerOptions::setAnchor(const QPoint &''anchorOffset'') === | ||
Sets sharing pop-up window anchor window offset with a given ''anchorOffset''. See ShareControllerOptions.anchor | Sets sharing pop-up window anchor window offset with a given ''anchorOffset''. See ShareControllerOptions.anchor | ||
=== | === [pure virtual] void QOhosShareControllerOptions::setAnchor(const QRect &''anchor'') === | ||
Sets anchor offset and size with a given ''anchor''. See ShareControllerAnchor | Sets anchor offset and size with a given ''anchor''. See ShareControllerAnchor | ||
=== | === [pure virtual] 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 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 ShareControllerOptions.previewMode | ||
=== | === [pure virtual] void QOhosShareControllerOptions::setExcludedAbilities(const QList<QtOhosExtras::ShareKit::ShareAbilityType> &''excludedAbilities'') === | ||
Set a list of capabilities that do not need to be displayed in the operation area. See ShareControllerOptions.excludedAbilities | Set a list of capabilities that do not need to be displayed in the operation area. See ShareControllerOptions.excludedAbilities | ||
=== | === [pure virtual] 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 ShareControllerOptions.selectionMode | Sets sharing selection mode with a given ''singleSelectionMode''. If singleSelectionMode is true, single selection is set, batch mode otherwise. See ShareControllerOptions.selectionMode | ||
Revision as of 02:46, 29 January 2026
(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. See ShareControllerOptions. More...
| Header: | #include <QOhosShareControllerOptions> |
| qmake: | QT += ohosextras |
| Since: | Qt 5.12.12 |
- List of all members, including inherited members
Public Functions
| virtual | ~QOhosShareControllerOptions() |
| 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<QtOhosExtras::ShareKit::ShareAbilityType> &excludedAbilities) = 0 |
| virtual void | setSingleSelectionMode(bool singleSelectionMode) = 0 |
Protected Functions
| QOhosShareControllerOptions() |
Detailed Description
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. See ShareControllerOptions
Member Function Documentation
Default constructs an instance of QOhosShareControllerOptions.
Destroys the instance of QOhosShareControllerOptions. The destructor is virtual.
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
Set a 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