当前位置:网站首页>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
}
边栏推荐
- [reprint] man Rsync translation (Chinese Manual of Rsync command)
- CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器
- 本人男,27岁技术经理,收入太高,心头慌得一比
- Enum class
- 百度智能云九州区县大脑,描绘城乡新蓝图!
- SQL function
- Five screens, VR, projection, "Wei Xiaoli" rolled up on the intelligent cockpit
- Basic dictionary of deep learning --- activation function, batch size, normalization
- MySQL query error [err] 1046 - no database selected
- After being accidentally dragged into QQ fraud group
猜你喜欢

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

OSPF comprehensive experiment (7.12)

Will ordinary browsers disclose information? How to protect privacy by using a secure browser?

CarSim simulation quick start (XII) - Driver Model (2)
![[Qt5] QT small software release](/img/83/9867bd4513caadac6a056c801abe48.png)
[Qt5] QT small software release

"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary question record (dghjkl)

Use ffmpeg to generate single image + single audio streaming video in batches

Forward propagation of deep learning neural networks (1)

Allure use

Google and Stanford jointly issued a document: why do we have to use large models?
随机推荐
Redis of non relational database [jedis client +jedis connection cluster]
Tell you step by step what you need to do to apply for PMP? What should I do?
Prescan quick start to master the road elements of lecture 15
How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
Basic dictionary of deep learning --- activation function, batch size, normalization
PostgreSQL is the world's most advanced open source relational database
New generation cloud native message queue (II)
Qt使用信号量控制线程(QSemaphore)
Meituan Er Mian: why does redis have sentinels?
Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
CarSim simulation quick start (XIII) - steering system
EMC EMI磁珠的特性
解决CNN固有缺陷!通用 CNN 架构CCNN来了| ICML2022
pyflink连接iceberg 实践
What if you are prompted that your connection to this website is not a private connection?
There are two Kafka topics that need to write data intact to MySQL King through Flink. Scheme 1: write two f's
What are the different tables in MySQL?
In QT multithreading, in which thread does the slot function perform analysis
Es6: arrow function usage
Openstack dashboard configuring public network access