当前位置:网站首页>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
}
边栏推荐
- Pytorch的冻结以及解冻
- Exception handling in SQL Server
- One key switch circuit
- 【13】 Adder: how to build a circuit like Lego (Part 1)?
- PMP practice once a day | don't get lost in the exam -7.13
- Redis of non relational database [detailed setup of redis cluster]
- Mysql, how can we get the number of rows affected by the query?
- 百度智能云九州区县大脑,描绘城乡新蓝图!
- @The role of documented
- DCL singleton mode
猜你喜欢

Five screens, VR, projection, "Wei Xiaoli" rolled up on the intelligent cockpit

Parse tree structure JS

03 | project deployment: how to quickly deploy a website developed based on the laravel framework
![[Qt5] QT small software release](/img/83/9867bd4513caadac6a056c801abe48.png)
[Qt5] QT small software release

Protobuf basic grammar summary

These mobile security browsers are more than a little easy to use

GD32使用ST的HAL库和GD官方库的一些体会

jquey的基础语法

Some experience of gd32 using Hal Library of ST and Gd official library
![Chapter 01 introduction of [notes of Huashu]](/img/11/cc405a730822305f02f05678f6a9d1.png)
Chapter 01 introduction of [notes of Huashu]
随机推荐
[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download
Some experience of gd32 using Hal Library of ST and Gd official library
New generation cloud native message queue (II)
QT uses semaphores to control threads (qsemaphore)
[Err] 1055 - Expression#2 of select list is not in GROUP BY clause and contains nonaggregated column
Mysql, how many columns can be used to create an index?
Regular expression for mobile number verification
Prescan quick start to master the road elements of lecture 15
金属质感登录框样式
Chairman tree review
Prescan quick start to master the transportation elements in lesson 14, prescan
MySQL: what is the difference between like and regexp operations?
jquey的基础语法
C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
Allure use
What are the different tables in MySQL?
Mysql中有哪些不同的表格?
Tensorflow uses deep learning (II)
Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
js卡片层叠样式的图片切换js特效