跳转至

cf::ui::example::TextFieldExampleWindow

Main window for the Material TextField Example. More...

#include <TextFieldExampleWindow.h>

Inherits from QMainWindow

Public Functions

Name
TextFieldExampleWindow(QWidget * parent =nullptr)
~TextFieldExampleWindow() override

Detailed Description

class cf::ui::example::TextFieldExampleWindow;

Main window for the Material TextField Example.

Displays both Material Design 3 text field variants:

  • Filled TextField (填充文本框)
  • Outlined TextField (轮廓文本框)

Also demonstrates:

  • Text fields with floating labels
  • Text fields with prefix/suffix icons
  • Password mode
  • Character counter
  • Helper text and error text
  • Disabled state

Public Functions Documentation

function TextFieldExampleWindow

explicit TextFieldExampleWindow(
    QWidget * parent =nullptr
)

function ~TextFieldExampleWindow

~TextFieldExampleWindow() override

Updated on 2026-03-09 at 10:14:00 +0000