本文档由
scripts/generate_docs.py自动生成,请勿手动编辑。共 124 个公开组件
- ElaApplication
- ElaTheme
- ElaWindow
- ElaWidget
- ElaAppBar
- ElaNavigationBar
- ElaNavigationRouter
- ElaAcrylicUrlCard
- ElaAutoComplete
- ElaBreadcrumbBar
- ElaCalendar
- ElaCalendarPicker
- ElaCaptcha
- ElaChatBubble
- ElaCheckBox
- ElaCodeEditor
- ElaColorDialog
- ElaComboBox
- ElaCommandBar
- ElaContentDialog
- ElaCopyButton
- ElaCountdown
- ElaDashboardGauge
- ElaDialog
- ElaDivider
- ElaDockWidget
- ElaDoubleSpinBox
- ElaDrawerArea
- ElaDropDownButton
- ElaDxgiManager
- ElaEmojiPicker
- ElaEvent
- ElaExpander
- ElaFloatButton
- ElaFlowLayout
- ElaFlyout
- ElaGraphicsItem
- ElaGraphicsLineItem
- ElaGraphicsScene
- ElaGraphicsView
- ElaGroupBox
- ElaIconButton
- ElaImageCard
- ElaInfoBadge
- ElaInfoBar
- ElaInputDialog
- ElaInteractiveCard
- ElaKeyBinder
- ElaLCDNumber
- ElaLineEdit
- ElaListView
- ElaLog
- ElaMarkdownViewer
- ElaMenu
- ElaMenuBar
- ElaMessageBar
- ElaMessageButton
- ElaMessageDialog
- ElaMultiSelectComboBox
- ElaNotificationCenter
- ElaNumberBox
- ElaPagination
- ElaPasswordBox
- ElaPersonPicture
- ElaPivot
- ElaPlainTextEdit
- ElaPopconfirm
- ElaPopularCard
- ElaProgressBar
- ElaProgressRing
- ElaPromotionCard
- ElaPromotionView
- ElaPushButton
- ElaQRCode
- ElaRadioButton
- ElaRatingControl
- ElaReminderCard
- ElaRibbonBar
- ElaRibbonGroup
- ElaRibbonTabBar
- ElaRoller
- ElaRollerPicker
- ElaRouter
- ElaScreenCaptureManager
- ElaScrollArea
- ElaScrollBar
- ElaScrollPage
- ElaScrollPageArea
- ElaSelectorBar
- ElaSheetPanel
- ElaSkeleton
- ElaSlider
- ElaSnackbar
- ElaSpinBox
- ElaSplashScreen
- ElaSplitButton
- ElaSplitter
- ElaSpotlight
- ElaStatCard
- ElaStatusBar
- ElaSteps
- ElaSuggestBox
- ElaTabBar
- ElaTabWidget
- ElaTableView
- ElaTableWidget
- ElaTag
- ElaTeachingTip
- ElaTerminalWidget
- ElaText
- ElaTimeline
- ElaToast
- ElaToggleButton
- ElaToggleSwitch
- ElaToolBar
- ElaToolButton
- ElaToolTip
- ElaTransfer
- ElaTreeSelect
- ElaTreeView
- ElaUploadArea
- ElaVirtualList
- ElaWatermark
- ElaWizard
继承: QObject | 头文件: ElaApplication.h
| 类型 | 名称 | 读写 |
|---|---|---|
ElaApplicationType::WindowDisplayMode |
WindowDisplayMode |
get/set |
QString |
ElaMicaImagePath |
get/set |
void init()void syncWindowDisplayMode(QWidget* widget, bool isSync = true)static bool containsCursorToItem(QWidget* item)
继承: QObject | 头文件: ElaTheme.h
void setThemeMode(ElaThemeType::ThemeMode themeMode)ElaThemeType::ThemeMode getThemeMode()void setIsFollowSystemTheme(bool isFollow)bool getIsFollowSystemTheme()void drawEffectShadow(QPainter* painter, QRect widgetRect, int shadowBorderWidth, int borderRadius)void setThemeColor(ElaThemeType::ThemeMode themeMode, ElaThemeType::ThemeColor themeColor, QColor newColor)const QColor& getThemeColor(ElaThemeType::ThemeMode themeMode, ElaThemeType::ThemeColor themeColor)
themeModeChanged(ElaThemeType::ThemeMode themeMode)pIsFollowSystemThemeChanged(bool isFollow)
继承: QMainWindow | 头文件: ElaWindow.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsStayTop |
get/set |
bool |
IsFixedSize |
get/set |
bool |
IsDefaultClosed |
get/set |
int |
AppBarHeight |
get/set |
int |
ThemeChangeTime |
get/set |
bool |
IsCentralStackedWidgetTransparent |
get/set |
bool |
IsAllowPageOpenInNewWindow |
get/set |
bool |
IsNavigationBarEnable |
get/set |
int |
NavigationBarWidth |
get/set |
int |
CurrentStackIndex |
get/set |
ElaNavigationType::NavigationDisplayMode |
NavigationBarDisplayMode |
get/set |
ElaWindowType::StackSwitchMode |
StackSwitchMode |
get/set |
ElaWindowType::PaintMode |
WindowPaintMode |
get/set |
void moveToCenter()void setCustomWidget(ElaAppBarType::CustomArea customArea, QWidget* customWidget, QObject* hitTestObject = nullptr, const QString& hitTestFunctionName = "")QWidget* getCustomWidget(ElaAppBarType::CustomArea customArea)void setCentralCustomWidget(QWidget* customWidget)QWidget* getCentralCustomWidget()void setCustomMenu(QMenu* customMenu)QMenu* getCustomMenu()void setUserInfoCardVisible(bool isVisible)void setUserInfoCardPixmap(QPixmap pix)void setUserInfoCardTitle(QString title)void setUserInfoCardSubTitle(QString subTitle)ElaNavigationType::NodeResult addExpanderNode(const QString& expanderTitle, QString& expanderKey, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addExpanderNode(const QString& expanderTitle, QString& expanderKey, const QString& targetExpanderKey, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, int keyPoints, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, const QString& targetExpanderKey, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, const QString& targetExpanderKey, int keyPoints, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addFooterNode(const QString& footerTitle, QString& footerKey, int keyPoints = 0, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addFooterNode(const QString& footerTitle, QWidget* page, QString& footerKey, int keyPoints = 0, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addCategoryNode(const QString& categoryTitle, QString& categoryKey)ElaNavigationType::NodeResult addCategoryNode(const QString& categoryTitle, QString& categoryKey, const QString& targetExpanderKey)void addCentralWidget(QWidget* centralWidget)QWidget* getCentralWidget(int index)bool getNavigationNodeIsExpanded(QString expanderKey)void expandNavigationNode(QString expanderKey)void collapseNavigationNode(QString expanderKey)void removeNavigationNode(QString nodeKey)int getPageOpenInNewWindowCount(QString nodeKey)void backtrackNavigationNode(QString nodeKey)void setNodeKeyPoints(QString nodeKey, int keyPoints)int getNodeKeyPoints(QString nodeKey)void setNavigationNodeTitle(QString nodeKey, QString nodeTitle)QString getNavigationNodeTitle(QString nodeKey)void navigation(QString pageKey)int getCurrentNavigationIndex()QString getCurrentNavigationPageKey()void setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable = true)void setWindowButtonFlags(ElaAppBarType::ButtonFlags buttonFlags)ElaAppBarType::ButtonFlags getWindowButtonFlags()void setWindowMoviePath(ElaThemeType::ThemeMode themeMode, const QString& moviePath)QString getWindowMoviePath(ElaThemeType::ThemeMode themeMode)void setWindowPixmap(ElaThemeType::ThemeMode themeMode, const QPixmap& pixmap)QPixmap getWindowPixmap(ElaThemeType::ThemeMode themeMode)void setWindowMovieRate(qreal rate)qreal getWindowMovieRate()void tabifyDockWidget(QDockWidget* targetDockWidget, QDockWidget* dockWidget)void tabifyDockWidget(Qt::DockWidgetArea area, const QString& targetDockTitle, QDockWidget* dockWidget)
userInfoCardClicked()closeButtonClicked()navigationNodeClicked(ElaNavigationType::NavigationNodeType nodeType, QString nodeKey)customWidgetChanged()centralCustomWidgetChanged()customMenuChanged()pageOpenInNewWindow(QString nodeKey)
继承: QWidget | 头文件: ElaWidget.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsStayTop |
get/set |
bool |
IsFixedSize |
get/set |
bool |
IsDefaultClosed |
get/set |
int |
AppBarHeight |
get/set |
void moveToCenter()void setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable = true)void setWindowButtonFlags(ElaAppBarType::ButtonFlags buttonFlags)ElaAppBarType::ButtonFlags getWindowButtonFlags()
routeBackButtonClicked()navigationButtonClicked()themeChangeButtonClicked()closeButtonClicked()
继承: QWidget | 头文件: ElaAppBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsStayTop |
get/set |
bool |
IsFixedSize |
get/set |
bool |
IsDefaultClosed |
get/set |
bool |
IsOnlyAllowMinAndClose |
get/set |
int |
AppBarHeight |
get/set |
void setCustomWidget(ElaAppBarType::CustomArea customArea, QWidget* customWidget, QObject* hitTestObject = nullptr, const QString& hitTestFunctionName = "")QWidget* getCustomWidget(ElaAppBarType::CustomArea customArea)void setCustomMenu(QMenu* customMenu)QMenu* getCustomMenu()void setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable = true)void setWindowButtonFlags(ElaAppBarType::ButtonFlags buttonFlags)ElaAppBarType::ButtonFlags getWindowButtonFlags()void setRouteBackButtonEnable(bool isEnable)void setRouteForwardButtonEnable(bool isEnable)int takeOverNativeEvent(const QByteArray& eventType, void* message, qintptr* result)int takeOverNativeEvent(const QByteArray& eventType, void* message, long* result)
routeBackButtonClicked()routeForwardButtonClicked()navigationButtonClicked()themeChangeButtonClicked()closeButtonClicked()customWidgetChanged()customMenuChanged()
继承: QWidget | 头文件: ElaNavigationBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsTransparent |
get/set |
bool |
IsAllowPageOpenInNewWindow |
get/set |
int |
NavigationBarWidth |
get/set |
void setUserInfoCardVisible(bool isVisible)void setUserInfoCardPixmap(QPixmap pix)void setUserInfoCardTitle(QString title)void setUserInfoCardSubTitle(QString subTitle)ElaNavigationType::NodeResult addExpanderNode(const QString& expanderTitle, QString& expanderKey, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addExpanderNode(const QString& expanderTitle, QString& expanderKey, const QString& targetExpanderKey, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, int keyPoints, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, const QString& targetExpanderKey, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addPageNode(const QString& pageTitle, QWidget* page, const QString& targetExpanderKey, int keyPoints, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addFooterNode(const QString& footerTitle, QString& footerKey, int keyPoints = 0, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addFooterNode(const QString& footerTitle, QWidget* page, QString& footerKey, int keyPoints = 0, ElaIconType::IconName awesome = ElaIconType::None)ElaNavigationType::NodeResult addCategoryNode(const QString& categoryTitle, QString& categoryKey)ElaNavigationType::NodeResult addCategoryNode(const QString& categoryTitle, QString& categoryKey, const QString& targetExpanderKey)bool getNodeIsExpanded(QString expanderKey)void expandNode(QString expanderKey)void collapseNode(QString expanderKey)void removeNode(QString nodeKey)void setNodeKeyPoints(QString nodeKey, int keyPoints)int getNodeKeyPoints(QString nodeKey)void setNodeTitle(QString nodeKey, QString nodeTitle)QString getNodeTitle(QString nodeKey)void navigation(QString pageKey, bool isLogClicked = true, bool isRouteBack = false)void setDisplayMode(ElaNavigationType::NavigationDisplayMode displayMode, bool isAnimation = true)ElaNavigationType::NavigationDisplayMode getDisplayMode()int getPageOpenInNewWindowCount(QString nodeKey)
pageOpenInNewWindow(QString nodeKey)userInfoCardClicked()navigationNodeClicked(ElaNavigationType::NavigationNodeType nodeType, QString nodeKey, bool isRouteBack)navigationNodeAdded(ElaNavigationType::NavigationNodeType nodeType, QString nodeKey, QWidget* page)navigationNodeRemoved(ElaNavigationType::NavigationNodeType nodeType, QString nodeKey)
继承: QObject | 头文件: ElaNavigationRouter.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
MaxRouteCount |
get/set |
ElaNavigationRouterType::NavigationRouteType navigationRoute(QObject* routeObject, QString routeFunctionName, const QVariantMap& routeData = {}, Qt::ConnectionType connectionType = Qt::AutoConnection)void clearNavigationRoute()void navigationRouteBack()void navigationRouteForward()ElaNavigationRouterType::NavigationRouteType navigationRoute(QObject* context, QObject* routeObject, QString routeFunctionName, const QVariantMap& routeData = {}, Qt::ConnectionType connectionType = Qt::AutoConnection)void clearNavigationRoute(QObject* context)void navigationRouteBack(QObject* context)void navigationRouteForward(QObject* context)
navigationRouterStateChanged(ElaNavigationRouterType::RouteMode routeMode)windowRouterStateChanged(QObject* context, ElaNavigationRouterType::RouteMode routeMode)
继承: QPushButton | 头文件: ElaAcrylicUrlCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
qreal |
MainOpacity |
get/set |
qreal |
NoiseOpacity |
get/set |
int |
BrushAlpha |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
int |
TitlePixelSize |
get/set |
int |
SubTitlePixelSize |
get/set |
int |
TitleSpacing |
get/set |
int |
SubTitleSpacing |
get/set |
QPixmap |
CardPixmap |
get/set |
QSize |
CardPixmapSize |
get/set |
int |
CardPixmapBorderRadius |
get/set |
ElaCardPixType::PixMode |
CardPixMode |
get/set |
QString |
Url |
get/set |
void setCardPixmapSize(int width, int height)
继承: QWidget | 头文件: ElaAutoComplete.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
MaxVisibleItems |
get/set |
Qt::CaseSensitivity |
CaseSensitivity |
get/set |
MatchMode: Contains, StartsWith, EndsWith, RegExp
void setPlaceholderText(const QString& placeholderText)QString placeholderText()void setText(const QString& text)QString text()void setCompletions(const QStringList& completions)QStringList completions()void setMatchMode(MatchMode mode)MatchMode matchMode()void setFixedHeight(int h)
textChanged(const QString& text)textEdited(const QString& text)completionSelected(const QString& completion)returnPressed(const QString& text)
继承: QWidget | 头文件: ElaBreadcrumbBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
TextPixelSize |
get/set |
bool |
IsAutoRemove |
get/set |
void setBreadcrumbList(QStringList breadcrumbList)QStringList appendBreadcrumb(QString breadcrumb)QStringList removeBreadcrumb(QString breadcrumb)int getBreadcrumbListCount()QStringList getBreadcrumbList()
breadcrumbClicked(QString breadcrumb, QStringList lastBreadcrumbList)
继承: QWidget | 头文件: ElaCalendar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRaiuds |
get/set |
QDate |
SelectedDate |
get/set |
QDate |
MinimumDate |
get/set |
QDate |
MaximumDate |
get/set |
clicked(QDate date)
继承: QPushButton | 头文件: ElaCalendarPicker.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QDate |
SelectedDate |
get/set |
selectedDateChanged(QDate date)
继承: QWidget | 头文件: ElaCaptcha.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CodeLength |
get/set |
int |
BorderRadius |
get/set |
int |
BoxSize |
get/set |
int |
BoxSpacing |
get/set |
InputMode: DigitOnly, AlphaNumeric
void setInputMode(InputMode mode)InputMode getInputMode()QString getCode()void clear()
codeCompleted(const QString& code)codeChanged(const QString& code)
继承: QWidget | 头文件: ElaChatBubble.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
MessageText |
get/set |
QString |
SenderName |
get/set |
QString |
Timestamp |
get/set |
int |
BorderRadius |
get/set |
int |
AvatarSize |
get/set |
int |
MaxBubbleWidth |
get/set |
BubbleDirection: Left, Right
MessageStatus: None, Sending, Sent, Read, Failed
void setDirection(BubbleDirection direction)BubbleDirection getDirection()void setStatus(MessageStatus status)MessageStatus getStatus()void setAvatar(const QPixmap& avatar)QPixmap getAvatar()void setBubbleColor(const QColor& color)QColor getBubbleColor()void setMessageImage(const QPixmap& image)QPixmap getMessageImage()void setImageMaxWidth(int width)int getImageMaxWidth()
imageDoubleClicked(const QPixmap& image)
继承: QCheckBox | 头文件: ElaCheckBox.h
继承: QWidget | 头文件: ElaCodeEditor.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
Code |
get/set |
bool |
IsReadOnly |
get/set |
int |
TabSize |
get/set |
Language: CPP, C, CSharp, Python, JavaScript, Lua, Rust, PHP
void setLanguage(Language lang)Language getLanguage()
继承: QDialog | 头文件: ElaColorDialog.h
| 类型 | 名称 | 读写 |
|---|---|---|
QColor |
CurrentColor |
get/set |
QColor getCustomColor(int index)QString getCurrentColorRGB()
colorSelected(const QColor& color)
继承: QComboBox | 头文件: ElaComboBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
void setEditable(bool editable)
继承: QWidget | 头文件: ElaCommandBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
ButtonSize |
get/set |
CommandItem
ElaIconType::IconName icon = ElaIconType::None;
QString text;
bool isSeparator = false;void addItem(const CommandItem& item)void addSeparator()void clearItems()
itemClicked(int index)
继承: QDialog | 头文件: ElaContentDialog.h
void setCentralWidget(QWidget* centralWidget)void setLeftButtonText(QString text)void setMiddleButtonText(QString text)void setRightButtonText(QString text)void setLeftButtonVisible(bool visible)void setMiddleButtonVisible(bool visible)void setRightButtonVisible(bool visible)void close()
leftButtonClicked()middleButtonClicked()rightButtonClicked()
继承: QPushButton | 头文件: ElaCopyButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
CopyText |
get/set |
int |
SuccessDuration |
get/set |
QString |
SuccessText |
get/set |
void setText(const QString& text)void setElaIcon(ElaIconType::IconName icon)void setSuccessIcon(ElaIconType::IconName icon)
copyCompleted(const QString& text)
继承: QWidget | 头文件: ElaCountdown.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
bool |
IsShowDays |
get/set |
bool |
IsShowHours |
get/set |
bool |
IsShowMinutes |
get/set |
bool |
IsShowSeconds |
get/set |
int |
DigitWidth |
get/set |
int |
DigitHeight |
get/set |
int |
DigitSpacing |
get/set |
int |
FontPixelSize |
get/set |
void setTargetDateTime(const QDateTime& dateTime)QDateTime getTargetDateTime()void setRemainingSeconds(qint64 seconds)qint64 getRemainingSeconds()void start()void pause()void resume()void stop()bool isRunning()
timeout()tick(qint64 remainingSeconds)
继承: QWidget | 头文件: ElaDashboardGauge.h
| 类型 | 名称 | 读写 |
|---|---|---|
qreal |
Minimum |
get/set |
qreal |
Maximum |
get/set |
qreal |
Value |
get/set |
int |
MajorTickCount |
get/set |
int |
MinorTickCount |
get/set |
int |
StartAngle |
get/set |
int |
SpanAngle |
get/set |
int |
ArcWidth |
get/set |
int |
ValuePixelSize |
get/set |
bool |
IsAnimated |
get/set |
int |
Decimals |
get/set |
QString |
Title |
get/set |
QString |
Unit |
get/set |
void setDangerPercent(qreal percent)qreal getDangerPercent()void setWarningPercent(qreal percent)qreal getWarningPercent()void setTickWarningPercent(qreal percent)qreal getTickWarningPercent()
valueChanged(qreal value)
继承: QDialog | 头文件: ElaDialog.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsStayTop |
get/set |
bool |
IsFixedSize |
get/set |
bool |
IsDefaultClosed |
get/set |
int |
AppBarHeight |
get/set |
void moveToCenter()void setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable = true)void setWindowButtonFlags(ElaAppBarType::ButtonFlags buttonFlags)ElaAppBarType::ButtonFlags getWindowButtonFlags()
routeBackButtonClicked()navigationButtonClicked()themeChangeButtonClicked()closeButtonClicked()
继承: QWidget | 头文件: ElaDivider.h
| 类型 | 名称 | 读写 |
|---|---|---|
Qt::Orientation |
Orientation |
get/set |
QString |
Text |
get/set |
int |
ContentPosition |
get/set |
ContentPositionType: Left, Center, Right
继承: QDockWidget | 头文件: ElaDockWidget.h
继承: QDoubleSpinBox | 头文件: ElaDoubleSpinBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
ElaSpinBoxType::ButtonMode |
ButtonMode |
get/set |
继承: QWidget | 头文件: ElaDrawerArea.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
HeaderHeight |
get/set |
void setDrawerHeader(QWidget* widget)void addDrawer(QWidget* widget)void removeDrawer(QWidget* widget)void expand()void collapse()bool getIsExpand()
expandStateChanged(bool isExpand)
继承: QWidget | 头文件: ElaDropDownButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Text |
get/set |
ElaIconType::IconName |
ElaIcon |
get/set |
void setMenu(ElaMenu* menu)ElaMenu* getMenu()
继承: QObject | 头文件: ElaDxgiManager.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QStringList getDxDeviceList()QStringList getOutputDeviceList()QImage grabScreenToImage()void startGrabScreen()void stopGrabScreen()bool getIsGrabScreen()bool setDxDeviceID(int dxID)int getDxDeviceID()bool setOutputDeviceID(int deviceID)int getOutputDeviceID()void setGrabArea(int width, int height)void setGrabArea(int x, int y, int width, int height)QRect getGrabArea()void setGrabFrameRate(int frameRateValue)int getGrabFrameRate()void setTimeoutMsValue(int timeoutValue)int getTimeoutMsValue()explicit ElaDxgiScreen(QWidget* parent = nullptr)void setIsSyncGrabSize(bool isSyncGrabSize)bool getIsSyncGrabSize()
grabImageUpdate(QImage img)
继承: QWidget | 头文件: ElaEmojiPicker.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
EmojiSize |
get/set |
int |
Columns |
get/set |
void popup(QWidget* anchor)void popup(const QPoint& pos)
emojiSelected(const QString& emoji)
继承: QObject | 头文件: ElaEventBus.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
EventName |
get/set |
QString |
FunctionName |
get/set |
Qt::ConnectionType |
ConnectionType |
get/set |
ElaEventBusType::EventBusReturnType registerAndInit()ElaEventBusType::EventBusReturnType post(const QString& eventName, const QVariantMap& data = {})QStringList getRegisteredEventsName()
继承: QWidget | 头文件: ElaExpander.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
ElaIconType::IconName |
HeaderIcon |
get/set |
int |
AnimationDuration |
get/set |
ExpandDirection: Down, Up
void setExpandDirection(ExpandDirection direction)ExpandDirection getExpandDirection()void setContentWidget(QWidget* widget)QWidget* getContentWidget()void setHeaderWidget(QWidget* widget)void setIsExpanded(bool expanded)bool getIsExpanded()
expandStateChanged(bool expanded)
继承: QWidget | 头文件: ElaFloatButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
ButtonSize |
get/set |
int |
Margin |
get/set |
Position: BottomRight, BottomLeft, TopRight, TopLeft
void setIcon(ElaIconType::IconName icon)ElaIconType::IconName getIcon()void setPosition(Position position)Position getPosition()void setMenu(ElaMenu* menu)ElaMenu* getMenu()
clicked()
继承: QLayout | 头文件: ElaFlowLayout.h
int horizontalSpacing()int verticalSpacing()void setIsAnimation(bool isAnimation)
继承: QWidget | 头文件: ElaFlyout.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
Content |
get/set |
bool |
IsLightDismiss |
get/set |
void setContentWidget(QWidget* widget)void showFlyout(QWidget* target)void closeFlyout()
closed()
继承: QGraphicsObject | 头文件: ElaGraphicsItem.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
Width |
get/set |
int |
Height |
get/set |
QImage |
ItemImage |
get/set |
QImage |
ItemSelectedImage |
get/set |
QString |
ItemName |
get/set |
QVariantMap |
DataRoutes |
get/set |
int |
MaxLinkPortCount |
get/set |
QString getItemUID()void setLinkPortState(bool isFullLink)void setLinkPortState(bool isLink, int portIndex)bool getLinkPortState(int portIndex)int getUsedLinkPortCount()int getUnusedLinkPortCount()
继承: QGraphicsPathItem | 头文件: ElaGraphicsLineItem.h
| 类型 | 名称 | 读写 |
|---|---|---|
QPointF |
StartPoint |
get/set |
QPointF |
EndPoint |
get/set |
ElaGraphicsItem* |
StartItem |
get/set |
ElaGraphicsItem* |
EndItem |
get/set |
int |
StartItemPort |
get/set |
int |
EndItemPort |
get/set |
bool isTargetLink(ElaGraphicsItem* item)bool isTargetLink(ElaGraphicsItem* item1, ElaGraphicsItem* item2)bool isTargetLink(ElaGraphicsItem* item1, ElaGraphicsItem* item2, int port1, int port2)
继承: QGraphicsScene | 头文件: ElaGraphicsScene.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsCheckLinkPort |
get/set |
QString |
SerializePath |
get/set |
void addItem(ElaGraphicsItem* item)void removeItem(ElaGraphicsItem* item)void removeSelectedItems()void clear()void setSceneMode(ElaGraphicsSceneType::SceneMode mode)ElaGraphicsSceneType::SceneMode getSceneMode()void selectAllItems()bool addItemLink(ElaGraphicsItem* item1, ElaGraphicsItem* item2, int port1 = 0, int port2 = 0)bool removeItemLink(ElaGraphicsItem* item1)bool removeItemLink(ElaGraphicsItem* item1, ElaGraphicsItem* item2, int port1 = 0, int port2 = 0)void serialize()void deserialize()
showItemLink()mouseLeftClickedItem(ElaGraphicsItem* item)mouseRightClickedItem(ElaGraphicsItem* item)mouseDoubleClickedItem(ElaGraphicsItem* item)
继承: QGraphicsView | 头文件: ElaGraphicsView.h
| 类型 | 名称 | 读写 |
|---|---|---|
qreal |
MaxTransform |
get/set |
qreal |
MinTransform |
get/set |
继承: QGroupBox | 头文件: ElaGroupBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
继承: QPushButton | 头文件: ElaIconButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
qreal |
Opacity |
get/set |
QColor |
LightHoverColor |
get/set |
QColor |
DarkHoverColor |
get/set |
QColor |
LightIconColor |
get/set |
QColor |
DarkIconColor |
get/set |
QColor |
LightHoverIconColor |
get/set |
QColor |
DarkHoverIconColor |
get/set |
bool |
IsSelected |
get/set |
void setAwesome(ElaIconType::IconName awesome)ElaIconType::IconName getAwesome()void setPixmap(QPixmap pix)
继承: QWidget | 头文件: ElaImageCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
QImage |
CardImage |
get/set |
int |
BorderRadius |
get/set |
bool |
IsPreserveAspectCrop |
get/set |
继承: QWidget | 头文件: ElaInfoBadge.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
Value |
get/set |
ElaIconType::IconName |
ElaIcon |
get/set |
BadgeMode: Dot, Value_, Icon
Severity: Attention, Informational, Success, Caution, Critical
void setBadgeMode(BadgeMode mode)BadgeMode getBadgeMode()void setMaxValue(int maxValue)int getMaxValue()void setSeverity(Severity severity)Severity getSeverity()void attachTo(QWidget* target)
继承: QFrame | 头文件: ElaInfoBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
Message |
get/set |
ElaInfoBarType::InfoBarSeverity |
Severity |
get/set |
bool |
IsClosable |
get/set |
ElaIconType::IconName |
InfoBarIcon |
get/set |
void clearActions()void closeInfoBar()
closed()closeButtonClicked()
继承: QDialog | 头文件: ElaInputDialog.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
TitleText |
get/set |
QString |
SubTitleText |
get/set |
QString |
LabelText |
get/set |
QString |
TextValue |
get/set |
int |
IntValue |
get/set |
double |
DoubleValue |
get/set |
QString |
OkButtonText |
get/set |
QString |
CancelButtonText |
get/set |
QString |
PlaceholderText |
get/set |
int |
InputMinimumWidth |
get/set |
int |
InputMaximumWidth |
get/set |
void setTextEchoMode(QLineEdit::EchoMode mode)QLineEdit::EchoMode textEchoMode()void setIntRange(int minValue, int maxValue, int step = 1)void setDoubleRange(double minValue, double maxValue, int decimals = 2)void setMultiLine(bool multiLine)
textValueChanged(QString text)intValueChanged(int value)doubleValueChanged(double value)
继承: QPushButton | 头文件: ElaInteractiveCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
int |
TitlePixelSize |
get/set |
int |
SubTitlePixelSize |
get/set |
int |
TitleSpacing |
get/set |
QPixmap |
CardPixmap |
get/set |
QSize |
CardPixmapSize |
get/set |
int |
CardPixmapBorderRadius |
get/set |
ElaCardPixType::PixMode |
CardPixMode |
get/set |
void setCardPixmapSize(int width, int height)
继承: QLabel | 头文件: ElaKeyBinder.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
BinderKeyText |
get/set |
quint32 |
NativeVirtualBinderKey |
get/set |
binderKeyTextChanged(QString binderKeyText)nativeVirtualBinderKeyChanged(quint32 binderKey)
继承: QLCDNumber | 头文件: ElaLCDNumber.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsUseAutoClock |
get/set |
QString |
AutoClockFormat |
get/set |
bool |
IsTransparent |
get/set |
继承: QLineEdit | 头文件: ElaLineEdit.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
bool |
IsClearButtonEnable |
get/set |
focusIn(QString text)focusOut(QString text)wmFocusOut(QString text)
继承: QListView | 头文件: ElaListView.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
ItemHeight |
get/set |
bool |
IsTransparent |
get/set |
继承: QObject | 头文件: ElaLog.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
LogSavePath |
get/set |
QString |
LogFileName |
get/set |
bool |
IsLogFileNameWithTime |
get/set |
void initMessageLog(bool isEnable)
logMessage(QString log)
继承: QWidget | 头文件: ElaMarkdownViewer.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
Markdown |
get/set |
int |
BorderRadius |
get/set |
继承: QMenu | 头文件: ElaMenu.h
void setMenuItemHeight(int menuItemHeight)int getMenuItemHeight()QAction* addMenu(QMenu* menu)ElaMenu* addMenu(const QString& title)ElaMenu* addMenu(const QIcon& icon, const QString& title)ElaMenu* addMenu(ElaIconType::IconName icon, const QString& title)QAction* addElaIconAction(ElaIconType::IconName icon, const QString& text)QAction* addElaIconAction(ElaIconType::IconName icon, const QString& text, const QKeySequence& shortcut)bool isHasChildMenu()bool isHasIcon()
menuShow()
继承: QMenuBar | 头文件: ElaMenuBar.h
QAction* addMenu(QMenu* menu)ElaMenu* addMenu(const QString& title)ElaMenu* addMenu(const QIcon& icon, const QString& title)ElaMenu* addMenu(ElaIconType::IconName, const QString& title)QAction* addElaIconAction(ElaIconType::IconName icon, const QString& text)QAction* addElaIconAction(ElaIconType::IconName icon, const QString& text, const QKeySequence& shortcut)
继承: QWidget | 头文件: ElaMessageBar.h
static void success(ElaMessageBarType::PositionPolicy policy, QString title, QString text, int displayMsec, QWidget* parent = nullptr)static void warning(ElaMessageBarType::PositionPolicy policy, QString title, QString text, int displayMsec, QWidget* parent = nullptr)static void information(ElaMessageBarType::PositionPolicy policy, QString title, QString text, int displayMsec, QWidget* parent = nullptr)static void error(ElaMessageBarType::PositionPolicy policy, QString title, QString text, int displayMsec, QWidget* parent = nullptr)
继承: QPushButton | 头文件: ElaMessageButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
BarTitle |
get/set |
QString |
BarText |
get/set |
int |
DisplayMsec |
get/set |
QWidget* |
MessageTargetWidget |
get/set |
ElaMessageBarType::MessageMode |
MessageMode |
get/set |
ElaMessageBarType::PositionPolicy |
PositionPolicy |
get/set |
继承: QWidget | 头文件: ElaMessageDialog.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
Content |
get/set |
int |
TitlePixelSize |
get/set |
int |
ContentPixelSize |
get/set |
confirmed()cancelled()
继承: QComboBox | 头文件: ElaMultiSelectComboBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
bool |
ShowCheckBox |
get/set |
void setCurrentSelection(QString selection)void setCurrentSelection(QStringList selection)void setCurrentSelection(int index)void setCurrentSelection(QList<int> selectionIndex)QStringList getCurrentSelection()
itemSelectionChanged(QVector<bool> itemSelection)currentTextListChanged(QStringList selectedTextList)
继承: QWidget | 头文件: ElaNotificationCenter.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
PanelWidth |
get/set |
NotificationItem
QString title;
QString content;
QString timestamp;
ElaIconType::IconName icon = ElaIconType::None;void addNotification(const NotificationItem& item)void clearAll()int getNotificationCount()void showPanel(QWidget* anchor)void hidePanel()bool isPanelVisible()
notificationClicked(int index)panelVisibilityChanged(bool visible)
继承: QWidget | 头文件: ElaNumberBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
double |
Value |
get/set |
double |
Minimum |
get/set |
double |
Maximum |
get/set |
double |
Step |
get/set |
int |
Decimals |
get/set |
bool |
IsWrapping |
get/set |
void stepUp()void stepDown()
valueChanged(double value)
继承: QWidget | 头文件: ElaPagination.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CurrentPage |
get/set |
int |
TotalPages |
get/set |
int |
ButtonSize |
get/set |
int |
PagerCount |
get/set |
bool |
JumperVisible |
get/set |
currentPageChanged(int page)
继承: QLineEdit | 头文件: ElaPasswordBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
bool |
IsPasswordVisible |
get/set |
focusIn(QString text)focusOut(QString text)wmFocusOut(QString text)
继承: QWidget | 头文件: ElaPersonPicture.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
PictureSize |
get/set |
QString |
DisplayName |
get/set |
QPixmap |
Picture |
get/set |
继承: QWidget | 头文件: ElaPivot.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
TextPixelSize |
get/set |
int |
CurrentIndex |
get/set |
int |
PivotSpacing |
get/set |
int |
MarkWidth |
get/set |
void appendPivot(QString pivotTitle)void removePivot(QString pivotTitle)
pivotClicked(int index)pivotDoubleClicked(int index)
继承: QPlainTextEdit | 头文件: ElaPlainTextEdit.h
继承: QWidget | 头文件: ElaPopconfirm.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
Content |
get/set |
QString |
ConfirmButtonText |
get/set |
QString |
CancelButtonText |
get/set |
ElaIconType::IconName |
Icon |
get/set |
bool |
IsLightDismiss |
get/set |
void showPopconfirm(QWidget* target)void closePopconfirm()
confirmed()cancelled()closed()
继承: QWidget | 头文件: ElaPopularCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QPixmap |
CardPixmap |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
QString |
InteractiveTips |
get/set |
QString |
DetailedText |
get/set |
QString |
CardButtonText |
get/set |
QWidget* |
CardFloatArea |
get/set |
QPixmap |
CardFloatPixmap |
get/set |
popularCardClicked()popularCardButtonClicked()
继承: QProgressBar | 头文件: ElaProgressBar.h
void setMinimum(int minimum)void setMaximum(int maximum)
继承: QWidget | 头文件: ElaProgressRing.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsBusying |
get/set |
bool |
IsTransparent |
get/set |
bool |
IsDisplayValue |
get/set |
ElaProgressRingType::ValueDisplayMode |
ValueDisplayMode |
get/set |
int |
BusyingWidth |
get/set |
int |
BusyingDurationTime |
get/set |
int |
Minimum |
get/set |
int |
Maximum |
get/set |
int |
Value |
get/set |
int |
ValuePixelSize |
get/set |
void setRange(int min, int max)
rangeChanged(int min, int max)
继承: QWidget | 头文件: ElaPromotionCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QPixmap |
CardPixmap |
get/set |
QString |
CardTitle |
get/set |
QString |
PromotionTitle |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
QColor |
CardTitleColor |
get/set |
QColor |
PromotionTitleColor |
get/set |
QColor |
PromotionTitleBaseColor |
get/set |
QColor |
TitleColor |
get/set |
QColor |
SubTitleColor |
get/set |
int |
CardTitlePixelSize |
get/set |
int |
PromotionTitlePixelSize |
get/set |
int |
TitlePixelSize |
get/set |
int |
SubTitlePixelSize |
get/set |
qreal |
HorizontalCardPixmapRatio |
get/set |
qreal |
VerticalCardPixmapRatio |
get/set |
promotionCardClicked()
继承: QWidget | 头文件: ElaPromotionView.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CardExpandWidth |
get/set |
int |
CardCollapseWidth |
get/set |
int |
CurrentIndex |
get/set |
bool |
IsAutoScroll |
get/set |
int |
AutoScrollInterval |
get/set |
void appendPromotionCard(ElaPromotionCard* card)
继承: QPushButton | 头文件: ElaPushButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QColor |
LightDefaultColor |
get/set |
QColor |
DarkDefaultColor |
get/set |
QColor |
LightHoverColor |
get/set |
QColor |
DarkHoverColor |
get/set |
QColor |
LightPressColor |
get/set |
QColor |
DarkPressColor |
get/set |
void setLightTextColor(QColor color)QColor getLightTextColor()void setDarkTextColor(QColor color)QColor getDarkTextColor()void setElaIcon(ElaIconType::IconName icon)void setElaIcon(ElaIconType::IconName icon, int iconSize)void setHoverEnabled(bool enabled)bool isHoverEnabled()
继承: QWidget | 头文件: ElaQRCode.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
QuietZone |
get/set |
QColor |
ForegroundColor |
get/set |
QColor |
BackgroundColor |
get/set |
ErrorCorrectionLevel: Low, Medium, Quartile, High
void setText(const QString& text)QString getText()void setErrorCorrectionLevel(ErrorCorrectionLevel level)ErrorCorrectionLevel getErrorCorrectionLevel()QPixmap toPixmap(int size = 256)
继承: QRadioButton | 头文件: ElaRadioButton.h
继承: QWidget | 头文件: ElaRatingControl.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
MaxRating |
get/set |
int |
Rating |
get/set |
int |
StarSize |
get/set |
int |
Spacing |
get/set |
bool |
IsReadOnly |
get/set |
ratingChanged(int rating)
继承: QPushButton | 头文件: ElaReminderCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
int |
TitlePixelSize |
get/set |
int |
SubTitlePixelSize |
get/set |
int |
TitleSpacing |
get/set |
QPixmap |
CardPixmap |
get/set |
QSize |
CardPixmapSize |
get/set |
int |
CardPixmapBorderRadius |
get/set |
ElaCardPixType::PixMode |
CardPixMode |
get/set |
void setCardPixmapSize(int width, int height)
继承: QWidget | 头文件: ElaRibbonBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CurrentIndex |
get/set |
void bindTabBar(ElaRibbonTabBar* tabBar)ElaRibbonTabBar* tabBar()QWidget* addTab(const QString& title)ElaRibbonGroup* addGroup(QWidget* page, const QString& title)int tabCount()QString tabText(int index)void setCollapsed(bool collapsed)bool isCollapsed()void setPinned(bool pinned)bool isPinned()void setAnimationDuration(int durationMs)int getAnimationDuration()void showPinContextMenu(const QPoint& globalPos)
tabClicked(int index)collapsedChanged(bool collapsed)pinnedChanged(bool pinned)
继承: QWidget | 头文件: ElaRibbonGroup.h
ButtonSize: Large, Small
void setTitle(const QString& title)QString getTitle()ElaToolButton* addToolButton(ElaIconType::IconName icon, const QString& text, ButtonSize size = Large)void addWidget(QWidget* widget)
继承: QWidget | 头文件: ElaRibbonTabBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CurrentIndex |
get/set |
int appendTab(const QString& title)void removeTab(int index)void clear()int tabCount()QString tabText(int index)void setTabText(int index, const QString& title)
tabClicked(int index)tabReclicked(int index)
继承: QWidget | 头文件: ElaRoller.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QStringList |
ItemList |
get/set |
int |
ItemHeight |
get/set |
int |
MaxVisibleItems |
get/set |
int |
CurrentIndex |
get/set |
bool |
IsContainer |
get/set |
bool |
IsEnableLoop |
get/set |
void setCurrentData(const QString& data)QString getCurrentData()
currentDataChanged(const QString& data)
继承: QPushButton | 头文件: ElaRollerPicker.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
void addRoller(const QStringList& itemList, bool isEnableLoop = true)void removeRoller(int index)void setRollerItemList(int index, const QStringList& itemList)void setRollerWidth(int index, int width)void setCurrentData(int index, const QString& data)void setCurrentData(const QStringList& dataList)QString getCurrentData(int index)QStringList getCurrentData()void setCurrentIndex(int rollerIndex, int index)void setCurrentIndex(const QList<int>& indexList)int getCurrentIndex(int rollerIndex)
currentDataChanged(const QStringList& dataList)currentDataSelectionChanged(const QStringList& dataList)
继承: QObject | 头文件: ElaRouter.h
void bindWindow(ElaWindow* window)ElaWindow* getBoundWindow()ElaRouterType::NavigationResult addRoute(const ElaRouteConfig& config)ElaRouterType::NavigationResult addRoutes(const QVector<ElaRouteConfig>& configs)ElaRouterType::NavigationResult addDynamicRoute(const QString& parentPath, const ElaRouteConfig& config)ElaRouterType::NavigationResult removeRoute(const QString& path)bool hasRoute(const QString& path)QStringList getRoutePaths()QVariantMap getRouteMeta(const QString& path)ElaRouterType::NavigationResult push(const QString& path, const QVariantMap& params = {})ElaRouterType::NavigationResult replace(const QString& path, const QVariantMap& params = {})void back()void forward()QString getCurrentPath()QVariantMap getCurrentParams()int beforeEach(const ElaRouteGuard& guard)int afterEach(const ElaRouteAfterHook& hook)void removeBeforeGuard(int guardId)void removeAfterHook(int hookId)void setRouteBeforeEnter(const QString& path, const ElaRouteGuard& guard)void installRoutes()void resetRouter()
routeChanged(const QString& path, const QVariantMap& params)navigationBlocked(const QString& path)routeTableChanged()
继承: QObject | 头文件: ElaScreenCaptureManager.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QStringList getDisplayList()QImage grabScreenToImage()void startGrabScreen()void stopGrabScreen()bool getIsGrabScreen()bool setDisplayID(int displayID)int getDisplayID()void setGrabArea(int width, int height)void setGrabArea(int x, int y, int width, int height)QRect getGrabArea()void setGrabFrameRate(int frameRateValue)int getGrabFrameRate()explicit ElaScreenCaptureScreen(QWidget* parent = nullptr)void setIsSyncGrabSize(bool isSyncGrabSize)bool getIsSyncGrabSize()
grabImageUpdate(QImage img)
继承: QScrollArea | 头文件: ElaScrollArea.h
void setIsGrabGesture(bool isEnable, qreal mousePressEventDelay = 0.5)void setIsOverShoot(Qt::Orientation orientation, bool isEnable)bool getIsOverShoot(Qt::Orientation orientation)void setIsAnimation(Qt::Orientation orientation, bool isAnimation)bool getIsAnimation(Qt::Orientation orientation)
继承: QScrollBar | 头文件: ElaScrollBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsAnimation |
get/set |
qreal |
SpeedLimit |
get/set |
rangeAnimationFinished()
继承: QWidget | 头文件: ElaScrollPage.h
| 类型 | 名称 | 读写 |
|---|---|---|
QWidget* |
CustomWidget |
get/set |
void addCentralWidget(QWidget* centralWidget, bool isWidgetResizeable = true, bool isVerticalGrabGesture = true, qreal mousePressEventDelay = 0.5)void setPageTitle(const QString& title)void navigation(int widgetIndex, bool isLogRoute = true)void setPageTitleSpacing(int spacing)int getPageTitleSpacing()void setTitleVisible(bool isVisible)
继承: QWidget | 头文件: ElaScrollPageArea.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
继承: QWidget | 头文件: ElaSelectorBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CurrentIndex |
get/set |
int |
BorderRadius |
get/set |
void addItem(const QString& text)void addItem(ElaIconType::IconName icon, const QString& text)void clearItems()int getItemCount()
currentIndexChanged(int index)
继承: QWidget | 头文件: ElaSheetPanel.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
ElaSheetPanelType::Direction |
Direction |
get/set |
qreal |
PeekRatio |
get/set |
qreal |
HalfRatio |
get/set |
qreal |
FullRatio |
get/set |
bool |
DragHandleVisible |
get/set |
bool |
CloseOnOverlayClick |
get/set |
qreal |
OverlayOpacity |
get/set |
void setCentralWidget(QWidget* widget)void open(ElaSheetPanelType::DetentLevel level = ElaSheetPanelType::Half)void close()ElaSheetPanelType::DetentLevel currentDetent()bool isOpened()
opened()closed()detentChanged(ElaSheetPanelType::DetentLevel level)
继承: QWidget | 头文件: ElaSkeleton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
bool |
IsAnimated |
get/set |
SkeletonType: Text, Circle, Rectangle
void setSkeletonType(SkeletonType type)SkeletonType getSkeletonType()
继承: QSlider | 头文件: ElaSlider.h
继承: QWidget | 头文件: ElaSnackbar.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
DisplayMsec |
get/set |
SnackbarType: Success, Info, Warning, Error
void dismiss()static void setMaxCount(int count)static int getMaxCount()static ElaSnackbar* success(const QString& text, const QString& actionText = "", int displayMsec = 4000, QWidget* parent = nullptr)static ElaSnackbar* info(const QString& text, const QString& actionText = "", int displayMsec = 4000, QWidget* parent = nullptr)static ElaSnackbar* warning(const QString& text, const QString& actionText = "", int displayMsec = 4000, QWidget* parent = nullptr)static ElaSnackbar* error(const QString& text, const QString& actionText = "", int displayMsec = 4000, QWidget* parent = nullptr)
actionClicked()closed()
继承: QSpinBox | 头文件: ElaSpinBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
ElaSpinBoxType::ButtonMode |
ButtonMode |
get/set |
继承: QWidget | 头文件: ElaSplashScreen.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
Minimum |
get/set |
int |
Maximum |
get/set |
int |
Value |
get/set |
bool |
IsShowProgressBar |
get/set |
bool |
IsShowProgressRing |
get/set |
bool |
IsClosable |
get/set |
void setLogo(const QPixmap& logo)void setTitle(const QString& title)void setSubTitle(const QString& subTitle)void setStatusText(const QString& text)void show()void close()void finish(QWidget* mainWindow)
closed()
继承: QWidget | 头文件: ElaSplitButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Text |
get/set |
ElaIconType::IconName |
ElaIcon |
get/set |
void setMenu(ElaMenu* menu)ElaMenu* getMenu()
clicked()
继承: QSplitter | 头文件: ElaSplitter.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
HandleWidth |
get/set |
int |
GripLength |
get/set |
继承: QWidget | 头文件: ElaSpotlight.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
Padding |
get/set |
int |
OverlayAlpha |
get/set |
bool |
IsCircle |
get/set |
QString |
Title |
get/set |
QString |
Content |
get/set |
SpotlightStep
QWidget* target{nullptr;void showSpotlight(QWidget* target, const QString& buttonText = "知道了")void setSteps(const QList<SpotlightStep>& steps)void start()void next()void previous()void finish()int currentStep()int stepCount()
stepChanged(int step)finished()
继承: QWidget | 头文件: ElaStatCard.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
Title |
get/set |
QString |
Value |
get/set |
QString |
Description |
get/set |
int |
BorderRadius |
get/set |
ElaIconType::IconName |
CardIcon |
get/set |
TrendType: None, Up, Down, Neutral
void setTrend(TrendType trend)TrendType getTrend()void setTrendText(const QString& text)QString getTrendText()
继承: QStatusBar | 头文件: ElaStatusBar.h
继承: QWidget | 头文件: ElaSteps.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
CurrentStep |
get/set |
int |
StepCount |
get/set |
void setStepTitles(const QStringList& titles)QStringList getStepTitles()void next()void previous()
currentStepChanged(int step)
继承: QWidget | 头文件: ElaSuggestBox.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
Qt::CaseSensitivity |
CaseSensitivity |
get/set |
void setPlaceholderText(const QString& placeholderText)void setFixedSize(const QSize& size)void setFixedSize(int w, int h)void setFixedHeight(int h)explicit SuggestData()explicit SuggestData(ElaIconType::IconName icon, const QString& suggestText, const QVariantMap& suggestData = {})QString addSuggestion(const QString& suggestText, const QVariantMap& suggestData = {})QString addSuggestion(ElaIconType::IconName icon, const QString& suggestText, const QVariantMap& suggestData = {})QString addSuggestion(const ElaSuggestBox::SuggestData& suggestData)QStringList addSuggestion(const QList<ElaSuggestBox::SuggestData>& suggestDataList)void removeSuggestion(const QString& suggestKey)void removeSuggestion(int index)void clearSuggestion()
suggestionClicked(const ElaSuggestBox::SuggestData& suggestData)
继承: QTabBar | 头文件: ElaTabBar.h
| 类型 | 名称 | 读写 |
|---|---|---|
QSize |
TabSize |
get/set |
tabDragCreate(QMimeData* mimeData)tabDragEnter(QMimeData* mimeData)tabDragLeave(QMimeData* mimeData)tabDragDrop(QMimeData* mimeData)
继承: QTabWidget | 头文件: ElaTabWidget.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsTabTransparent |
get/set |
bool |
IsContainerAcceptDrops |
get/set |
QSize |
TabSize |
get/set |
void setTabPosition(TabPosition position)
继承: QTableView | 头文件: ElaTableView.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
HeaderMargin |
get/set |
tableViewShow()tableViewHide()
继承: QTableWidget | 头文件: ElaTableWidget.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
ItemHeight |
get/set |
int |
HeaderMargin |
get/set |
bool |
IsTransparent |
get/set |
void insertRows(int row, int count)void removeRows(int row, int count)void insertColumns(int column, int count)void removeColumns(int column, int count)void setItemText(int row, int column, const QString& text)QString getItemText(int row, int column)void setRowData(int row, const QStringList& data)QStringList getRowData(int row)
tableWidgetShow()tableWidgetHide()
继承: QWidget | 头文件: ElaTag.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
TagText |
get/set |
bool |
IsClosable |
get/set |
bool |
IsCheckable |
get/set |
bool |
IsChecked |
get/set |
TagColor: Default, Primary, Success, Warning, Danger
void setTagColor(TagColor color)TagColor getTagColor()
closed()clicked()checkedChanged(bool checked)
继承: QWidget | 头文件: ElaTeachingTip.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
QString |
Content |
get/set |
ElaIconType::IconName |
TipIcon |
get/set |
QPixmap |
HeroImage |
get/set |
bool |
IsLightDismiss |
get/set |
TailPosition: Auto, Top, Bottom, Left, Right
void setTailPosition(TailPosition position)TailPosition getTailPosition()void setTarget(QWidget* target)QWidget* getTarget()void setCloseButtonVisible(bool visible)void clearActions()void showTip()void closeTip()
closed()closeButtonClicked()
继承: QWidget | 头文件: ElaTerminalWidget.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
Prompt |
get/set |
int |
MaxHistorySize |
get/set |
int |
MaxLineCount |
get/set |
int |
FontPixelSize |
get/set |
void appendHtml(const QString& html)void appendError(const QString& text)void appendSuccess(const QString& text)void clear()QStringList getCommandHistory()
commandSubmitted(const QString& command)tabPressed(const QString& currentInput)
继承: QLabel | 头文件: ElaText.h
| 类型 | 名称 | 读写 |
|---|---|---|
bool |
IsWrapAnywhere |
get/set |
int |
TextPixelSize |
get/set |
int |
TextPointSize |
get/set |
ElaTextType::TextStyle |
TextStyle |
get/set |
ElaIconType::IconName |
ElaIcon |
get/set |
继承: QWidget | 头文件: ElaTimeline.h
TimelineItem
QString title;
QString content;
QString timestamp;
ElaIconType::IconName icon = ElaIconType::None;void addItem(const TimelineItem& item)void clearItems()int getItemCount()
继承: QWidget | 头文件: ElaToast.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
DisplayMsec |
get/set |
ToastType: Success, Info, Warning, Error
static void success(const QString& text, int displayMsec = 2000, QWidget* parent = nullptr)static void info(const QString& text, int displayMsec = 2000, QWidget* parent = nullptr)static void warning(const QString& text, int displayMsec = 2000, QWidget* parent = nullptr)static void error(const QString& text, int displayMsec = 2000, QWidget* parent = nullptr)
继承: QWidget | 头文件: ElaToggleButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Text |
get/set |
void setIsToggled(bool isToggled)bool getIsToggled()
toggled(bool checked)
继承: QWidget | 头文件: ElaToggleSwitch.h
void setIsToggled(bool isToggled)bool getIsToggled()
toggled(bool checked)
继承: QToolBar | 头文件: ElaToolBar.h
void setToolBarSpacing(int spacing)int getToolBarSpacing()void setToolButtonSize(const QSize& size)const QSize& getToolButtonSize()QAction* addElaIconAction(ElaIconType::IconName icon, const QString& text)QAction* addElaIconAction(ElaIconType::IconName icon, const QString& text, const QKeySequence& shortcut)
继承: QToolButton | 头文件: ElaToolButton.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
bool |
IsSelected |
get/set |
void setIsTransparent(bool isTransparent)bool getIsTransparent()void setMenu(ElaMenu* menu)void setElaIcon(ElaIconType::IconName icon)void setElaIcon(ElaIconType::IconName icon, int rotate)
继承: QWidget | 头文件: ElaToolTip.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
DisplayMsec |
get/set |
int |
ShowDelayMsec |
get/set |
int |
HideDelayMsec |
get/set |
QString |
ToolTip |
get/set |
QWidget* |
CustomWidget |
get/set |
void updatePos()
继承: QWidget | 头文件: ElaTransfer.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
ItemHeight |
get/set |
QString |
SourceTitle |
get/set |
QString |
TargetTitle |
get/set |
bool |
IsSearchVisible |
get/set |
void setSourceItems(const QStringList& items)void addSourceItem(const QString& text)void addSourceItems(const QStringList& items)QStringList getSourceItems()QStringList getTargetItems()void moveToTarget()void moveToSource()void moveAllToTarget()void moveAllToSource()
transferChanged(const QStringList& sourceItems, const QStringList& targetItems)
继承: QWidget | 头文件: ElaTreeSelect.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
ItemHeight |
get/set |
int |
MaxVisibleItems |
get/set |
QString |
PlaceholderText |
get/set |
bool |
IsSearchVisible |
get/set |
bool |
IsEditable |
get/set |
void setModel(QStandardItemModel* model)QStandardItemModel* model()void setCurrentIndex(const QModelIndex& index)QModelIndex currentIndex()QString currentText()void expandAll()void collapseAll()
currentIndexChanged(const QModelIndex& index)currentTextChanged(const QString& text)
继承: QTreeView | 头文件: ElaTreeView.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
ItemHeight |
get/set |
int |
HeaderMargin |
get/set |
继承: QWidget | 头文件: ElaUploadArea.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
QString |
Title |
get/set |
QString |
SubTitle |
get/set |
QStringList |
AcceptedSuffixes |
get/set |
int |
MaxFileCount |
get/set |
qint64 |
MaxFileSize |
get/set |
bool |
IsMultiple |
get/set |
QString |
DialogTitle |
get/set |
QStringList getSelectedFiles()void clearFiles()void setAcceptedMimeFilter(const QString& filter)QString getAcceptedMimeFilter()
filesSelected(const QStringList& filePaths)fileAdded(const QString& filePath)fileRemoved(const QString& filePath)fileRejected(const QString& filePath, const QString& reason)
继承: QListView | 头文件: ElaVirtualList.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
ItemHeight |
get/set |
bool |
IsTransparent |
get/set |
bool |
IsAlternatingRowColors |
get/set |
void setItemCount(int count)int getItemCount()
itemRequestData(int startIndex, int endIndex)
继承: QWidget | 头文件: ElaWatermark.h
| 类型 | 名称 | 读写 |
|---|---|---|
QString |
Text |
get/set |
int |
FontPixelSize |
get/set |
qreal |
Opacity |
get/set |
qreal |
Rotation |
get/set |
int |
GapX |
get/set |
int |
GapY |
get/set |
QColor |
TextColor |
get/set |
QImage |
Image |
get/set |
int |
ImageWidth |
get/set |
int |
ImageHeight |
get/set |
继承: QWidget | 头文件: ElaWizard.h
| 类型 | 名称 | 读写 |
|---|---|---|
int |
BorderRadius |
get/set |
int |
CurrentStep |
get/set |
void addStep(const QString& title, QWidget* page)void next()void previous()void finish()int getStepCount()
currentStepChanged(int step)finished()cancelled()