当前位置:网站首页>QT embed Notepad under win10
QT embed Notepad under win10
2022-07-24 16:44:00 【Liu-Eleven】
Source blog :https://www.cnblogs.com/findumars/p/8001326.html
Let me try , Let's start with a picture

1. Find out about Notepad :

stay Qt Add the code to find the form handle in the program :
// Remember to include header files :#include <windows.h>
WId wid = (WId)FindWindow(L"Notepad", L" No title - Notepad ");
stay Qt Embedded form handle code in the program :
QWindow *childWindow = QWindow::fromWinId( childWidgetWinId );
qDebug()<<"childWidgetWinId="<<childWidgetWinId<<"childWindow = "<<childWindow;
childWidget = QWidget::createWindowContainer(childWindow, ui->widget );
ui->childWidgetLayout->addWidget(childWidget);
childWidget->setMinimumSize(800,600);summary :
If you want to be in qt The key step in embedding other forms in is to find the form handle to be embedded .
problem :
win10 The enterprise embedded calculator always fails .
Colored eggs :
Embedded wechat :

My code download address :
边栏推荐
- JUC源码学习笔记3——AQS等待队列和CyclicBarrier,BlockingQueue
- Long awaited full platform support - Open Source im project uniapp update of openim
- C font usage effect
- The third edition of New Horizon College English reading and Writing Tutorial 4 graduation examination site (units 1,2,3,5,6)
- 1309. Decode letter to integer mapping
- Pull and load more on wechat applet list rendering
- [Nanjing Agricultural University] information sharing of postgraduate entrance examination and re examination
- 双指针滑动窗口法解析及LeetCode相关题解
- ARP 入门
- 我们为什么要推出Getaverse?
猜你喜欢

ArcGIS create vector

How vscode mouse wheel enlarges the interface

Sword finger offer 22. the penultimate node in the linked list

EMQ Yingyun technology was listed on the 2022 "cutting edge 100" list of Chinese entrepreneurs

.NET 测试框架 xUnit,MSTest, Specflow 使用经验汇总

Envi5.3 open GF-1 WFV data

Duplicate content in lookup table

VSCode如何鼠标滚轮放大界面

15、ARM嵌入式系统:如何用PC调试单板

会议OA项目进度(一)
随机推荐
Qt键盘事件(一)——检测按键输入
解决Eureka默认缓存配置导致时效性问题
QML coding specification
Cross server, insert, search
ARP 入门
剑指 Offer 48. 最长不含重复字符的子字符串
Custom types: Enumeration
.NET 测试框架 xUnit,MSTest, Specflow 使用经验汇总
js,for循环内callback异步转换成同步执行
How to effectively avoid memory leakage when customizing the handler?
IP的概念,IP的分类,IP复用技术
Jenkins cli command details
“天上天下,唯我独尊”——单例模式
【南京农业大学】考研初试复试资料分享
AXI协议(1):AMBA总线介绍,AXI概念与背景介绍,AXI协议特点与功能
Codeforces round 690 (Div. 3) B. last year's substring conventional solution
Jing Wei PS tutorial: basic part a
Qt键盘事件(二)——长按按键反复触发event事件问题解决
EF miscellaneous
MODIS 16 day data monthly / quarterly synthesis