当前位置:网站首页>File editing component
File editing component
2022-07-28 08:29:00 【Happy Jiajia】
File editing component -1
QLineEdit: Single line text editing component
QPlainTextEdit: Multi line common editing component
QTextEdit: Multi select rich text editing component : Suitable for word This kind of complicated .
Qt Built in functions of common text editing components in
1. Right click popup menu
2. Shortcut key function : Copy , Paste , Shear, etc .
QLineEdit, QPlainTextEdit, QTextEdit
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
lineEdit(this), plainEdit(this), textEdit(this)
{
resize(600, 420); // Set window size
lineEdit.move(20, 20);
lineEdit.resize(560, 100);
lineEdit.insert("QLineEdit");
lineEdit.insert("\n");
lineEdit.insert("<img src=\"C:\\Users\\hp\\Desktop\\D.T.png\" />");
plainEdit.move(20, 130);
plainEdit.resize(560, 130);
plainEdit.insertPlainText("QPlainTextEdit");
plainEdit.insertPlainText("\n");
plainEdit.insertPlainText("<img src=\"C:\\Users\\hp\\Desktop\\D.T.png\" />");
textEdit.move(20, 270);
textEdit.resize(560, 130);
textEdit.insertPlainText("QTextEdit");
textEdit.insertPlainText("\n");
textEdit.insertHtml("<img src=\"C:\\Users\\hp\\Desktop\\D.T.png\" />"); // html Components
}
边栏推荐
- mysql,可以使用多少列创建索引?
- XSS知识点和20字符短域名绕过
- Melt cloud x chat, create a "stress free social" habitat with sound
- Meituan Er Mian: why does redis have sentinels?
- CarSim simulation quick start (XII) - Driver Model (2)
- The core packages and middleware required for golang development cover all areas of the project and are worth collecting
- Some experience of gd32 using Hal Library of ST and Gd official library
- Prescan quick start to master the transportation elements in lesson 14, prescan
- “蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)
- 解决EMC、EMI传导干扰的八大方法
猜你喜欢

解决EMC、EMI传导干扰的八大方法

Is the salary of test / development programmers unbalanced? Busy life, all kinds of job hopping

Protobuf basic grammar summary

CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器

One key switch circuit

五张图看懂EMI电磁干扰的传播过程-方波陡峭程度对高频成分的影响,时序到频域频谱图形,波形形状对EMI辐射的影响。

A group of South University students rely on science and technology to go to sea, with an annual income of 1billion

Oracle local network service
![MySQL query error [err] 1046 - no database selected](/img/32/7d877571397c1e2024ec488b783e87.png)
MySQL query error [err] 1046 - no database selected
![Redis of non relational database [detailed setup of redis cluster]](/img/0b/bd05fb91d17f6e0dc9f657a4047ccb.png)
Redis of non relational database [detailed setup of redis cluster]
随机推荐
Parse tree structure JS
js信息提示框定时关闭
Characteristics of EMC EMI beads
聊一聊数据库的行存与列存
Prescan quick start to master the transportation elements in lesson 14, prescan
Forward propagation of deep learning neural networks (1)
业务数字化飞速奔跑,管理数字化亟待出发
DCL singleton mode
解决EMC、EMI传导干扰的八大方法
Rk3568 development board installation system startup
How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
[book club issue 13] Chapter 1 multimedia processing tools ffmpeg tools
What if the task manager is not fully displayed?
MySQL query error [err] 1046 - no database selected
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(八)
数字签名和CA证书
What if the computer desktop icon has a small yellow lock?
What are the different tables in MySQL?
Mysql, how can we get the number of rows affected by the query?
我们如何在mysql中运行批处理模式?