当前位置:网站首页>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
}
边栏推荐
- Lecture notes a utility for everyone to generate PCG
- What if the computer folder cannot be renamed?
- PMP practice once a day | don't get lost in the exam -7.13
- MySQL: what is the difference between like and regexp operations?
- These mobile security browsers are more than a little easy to use
- How to understand the adjective prefix of socket: "connection oriented" and "connectionless"
- GD32使用ST的HAL库和GD官方库的一些体会
- Rk3568 development board installation system startup
- Information system project manager must recite the core examination site (41) risk management plan
- Forward propagation of deep learning neural networks (1)
猜你喜欢

After being accidentally dragged into QQ fraud group

One key switch circuit

单片机IO口控制12V电压通断,MOS和三极管电路

【13】 Adder: how to build a circuit like Lego (Part 1)?
![Chapter 01 introduction of [notes of Huashu]](/img/11/cc405a730822305f02f05678f6a9d1.png)
Chapter 01 introduction of [notes of Huashu]

网口网络水晶头RJ45、POE接口定义线序

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

使用FFmpeg来批量生成单图+单音频的一图流视频

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

Understanding of spark operator aggregatebykey
随机推荐
EMC EMI磁珠的特性
Talk about synchronous, asynchronous, blocking and non blocking
Swm32 series tutorial 5-adc application
业务数字化飞速奔跑,管理数字化亟待出发
Brief introduction to ThreadLocal class
Solve the inherent defects of CNN! Common CNN architecture ccnn is coming | icml2022
One key switch circuit
【17】 Establish data path (upper): instruction + operation =cpu
JS cartoon English alphabet typing game source code
Characteristics of EMC EMI beads
PMP practice once a day | don't get lost in the exam -7.13
解决CNN固有缺陷!通用 CNN 架构CCNN来了| ICML2022
[reprint] man Rsync translation (Chinese Manual of Rsync command)
[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download
Talk about row storage and column storage of database
Deluxe H5 Tetris game source code
百度智能云九州区县大脑,描绘城乡新蓝图!
Recommend a fully open source, feature rich, beautiful interface mall system
二维数组及操作
Some experience of gd32 using Hal Library of ST and Gd official library