pyqt5-QLineEdit单行文本框组件

1、介绍

QLineEdit,单行文本框组件。

2、基础使用

setText(self, a0: str)
  • 设置显示文本
text(self) -> str 
  • 获取显示文本
setPlaceholderText(self, a0: str) 
  • 设置占位文本
placeholderText(self) -> str 
  • 获取占位文本
setMaxLength(self, a0: int)
  • 设置最大字符长度
maxLength(self) -> int 
  • 获取设置的最大字符长度
posted @ 2023-10-01 00:32  挖洞404  阅读(8)  评论(0编辑  收藏  举报