简体   繁体   English

pyqt中textEdit的行号

[英]Line-Numbering of a textEdit in pyqt

我希望以一种不会对行号进行复制或剪切的方式对textEdit中的行进行编号,因为我可以在其中转储其余的数据。

You'll need a separate widget on the side to display line numbers. 您需要在侧面使用单独的小部件来显示行号。 You can find details here: http://harmattan-dev.nokia.com/docs/library/html/qt4/widgets-codeeditor.html 您可以在此处找到详细信息: http : //harmattan-dev.nokia.com/docs/library/html/qt4/widgets-codeeditor.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM