摘要:
一、QKeySequenceEdit快捷键采集 用处不大 1.代码 from PyQt5.Qt import * import sys class Window(QWidget) : def __init__(self) : super().__init__() self.setWindowTitl 阅读全文
posted @ 2022-03-29 21:51
Trouvaille_fighting
阅读(226)
评论(0)
推荐(0)
摘要:
一、QPlainTextEdit大文本编辑框 QPlainTextEdit和QTextEdit功能相似,适用于大文档编辑,效率更高。QPlainTextEdit 可以理解为 QTextEdit的低配版。QPlainTextEdit支持纯文本显示,QTextEdit支持富文本显示。QPlainText 阅读全文
posted @ 2022-03-29 21:49
Trouvaille_fighting
阅读(383)
评论(0)
推荐(0)
摘要:
一、QTextEdit多行文本框文本操作 QTextEdit可以通过光标来操作文本内容和格式等,QTextEdit也可以直接对大多数常见的功能直接设置。这节课就是通过QTextEdit直接操作文本,有自动化格式、换行模式、覆盖模式等格式操作,还有颜色设置、字符格式、编辑效果等样式操作。 1.代码 f 阅读全文
posted @ 2022-03-29 21:45
Trouvaille_fighting
阅读(1108)
评论(0)
推荐(0)
摘要:
一、QTextCursor多行文本框文本光标文本块和字符格式设置 1.代码 from PyQt5.Qt import * import sys class Window(QWidget) : def __init__(self) : super().__init__() self.setWindow 阅读全文
posted @ 2022-03-29 21:33
Trouvaille_fighting
阅读(1395)
评论(0)
推荐(0)
摘要:
一、QTextCursor多行文本框文本光标插入文本 1.基本步骤 插入图片、表格、文本框等都是这个步骤 1.首先创建一个光标对象; qtc = self.qte.textCursor() 2.通过光标插入文本,传入上面的格式对象; 3.插入文本内容格式 2.代码 from PyQt5.Qt imp 阅读全文
posted @ 2022-03-29 21:30
Trouvaille_fighting
阅读(956)
评论(0)
推荐(0)

浙公网安备 33010602011771号