跳到主要内容

Basic

The Basic module contains various basic widgets that are the basic functional elements of your application interface. There are diverse groups of basic widgets organized based on their functionality.

Here is an overview of the basic widgets. You can access the WUI Coder tool and API reference for detailed examples and comprehensive guidance.

Input and Selection

The widgets allow you to input data or make selections from predefined options.

ClassDescription
ButtonA clickable button for triggering actions or events.
ToggleButtonA button that toggles between two states, often used for on/off switches.
CheckBoxA box that can be checked or unchecked to toggle a boolean value.
RadioButtonA button that allows a single selection from a group of options.
FileButtonA button that opens a file dialog for file selection.
ComboBoxA dropdown list that allows selection from multiple options.
SliderA control for selecting a value by sliding a handle along a track.
Text, LabelA simble label or text dispaly.
TextEditA multi-line text editor for user input.
TextBrowserA read-only text display that supports rich text.
ValidatorValidates user input, such as numeric or formatted text.

Layout and Organization

These widgets help organize and align UI elements in the interface.

ClassDescription
LayoutA base class for arranging widgets in a structured manner.
GridLayoutArranges widgets in a grid structure with rows and columns.
StackedLayoutStack widgets .
LayoutAlignA utility for aligning widgets within a layout.
PanelA container for grouping related UI elements.
ScrollAreaA container that allows scrolling of content that exceeds the visible area.
SplitterHA horizontal splitter for resizing adjacent UI elements.
SplitterVA vertical splitter for resizing adjacent UI elements.
SplitterVA vertical splitter for resizing adjacent UI elements.

These widgets enable navigation between different section or views of the application.

ClassDescription
TabBarA horizontal or vertical bar of tabs for switching between widgets or views.
TabWidgetA container that holds mutiple tabs and their associated content.
TreeBrowser

These widgets provides menu, popups, and context-sensitive options for user interaction.

ClassDescription
MenuA popup menu for displayting a list of actions or options.
MenuBarA horizontal bar organizing mutiple menus, typically at the top of a window.
MenuButtonA button that triggers a menu when clicked.
PopupButtonA button that opens a popup widget with additional options.

Windows and Dialogs

These widgets are used to create windows, dialogs and multi-step wizards for workflows.

ClassDescription
Window
DialogA modal or non-modal dialog for user interaction.
MessageDialogA dialog for displaying messages, warnings or errors.
WizardA multi-step interface for guiding users through a process.
TitleBarA customizable title bar for application windows.

Views and Data Displays

These widgets are designed for displaying and manageing complex data, such as tables, lists.

ClassDescription
ListWidgetDisplaying a list of items.
TableWidgetDisplaying tabular data with rows and columns.
TreeWidgetA widget for displaying hierarchical data in a tree structure.
HeaderViewA header view for table widgets.
ViewItemA single item to display text and icon that can be checked or selected.

Toolbar and Toolbox

These widgets provides toolbar or toolbox for organizing frequently used actions and tools in a compact layout.

ClassDescription
ToolbarA horizontal or vertical bar for holding tool buttons and actions.
ToolboxA container for organizing tools or widgets in a categorized manner.
GripperA handle for moving UI elements, ofter used in toolbars or headview.

Feedback and Status Indicators

These widgets provides visual feedback, progress tracking, and status updates.

ClassDescription
ProgressBarA visual indicator of progress for long-running tasks.
Splash
StatusBarA bar at the bottom of a window for displayting status information.
TooltipA small popup that provides additional information about a UI element.

Delegates and Translator

These widgets handle advanced functionality, such as deleting items of a list or a tree view to modify item content, or translating content for internationalization.

ClassDescription
DelegateCustomizing the rendering or behaviour of items in views.
TranslatorTranslating text for internationalization.