Qt for HarmonyOS/qtohosextras doc/QOhosShareControllerOptions Class: Difference between revisions
Update from qdoc output (QTFOROH-2307) |
Drop manual breadcrumb, MediaWiki renders it automatically (QTFOROH-2307) |
||
| Line 1: | Line 1: | ||
= QOhosShareControllerOptions Class = | = QOhosShareControllerOptions Class = | ||
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