单行文本框 tpLineEdit
2025-07-17
介绍
tpLineEdit 类 tpLineEdit 为输入框组件,允许用户输入和编辑纯文本,只允许单行文本,无法换行,且与软键盘关联实现中文输入。
使用示例
tpLineEdit *edit2 = new tpLineEdit(vScreen);
edit2->setProperty("type", "fileManageEdit");
edit2->setIcon("/搜索.png");
edit2->setPlaceholderText("请输入搜索内容");
edit2->setRect(20, 20, 500, 100);
效果演示

