当前位置:网站首页>Exe file running window embedding QT window
Exe file running window embedding QT window
2022-07-03 08:15:00 【The east wind blows the Willows】
The principle is to use 3 A function FindWindow 、 QWindow::fromWinId and QWidget::createWindowContainer, The specific implementation is as follows :
#pragma once
#include <QtWidgets/QMainWindow>
#include <QProcess>
#include "ui_UE42Qt.h"
class UE42Qt : public QMainWindow
{
Q_OBJECT
public:
UE42Qt(QWidget *parent = Q_NULLPTR);
private:
Ui::UE42QtClass *ui;
private:
QProcess* process;
public:
void StartUE4();
void doInsideUE4(QString const& className, QString const& appName);
};
#include "UE42Qt.h"
#include <Windows.h>
#include <QWindow>
UE42Qt::UE42Qt(QWidget *parent)
: QMainWindow(parent)
{
ui->setupUi(this);
StartUE4();
}
void UE42Qt::StartUE4()
{
// start-up UE4 Program
QString sPath = "./WindowsNoEditor/Che.exe";
process = new QProcess;
process->start(sPath);
Sleep(3000);
if (process->waitForStarted())
边栏推荐
- Golang string segmentation, substitution and interception
- idea取消引用显示效果
- P2622 light off problem II (state compression search)
- Transfinite hacker cognition
- P2704 [noi2001] artillery position (shape pressure DP)
- Worldview satellite remote sensing image data / meter resolution remote sensing image
- Install cross compiler arm none liunx gnueabihf
- PostGIS space function
- I want to do large screen data visualization application feature analysis
- P1896 [scoi2005] non aggression (shape pressure DP)
猜你喜欢
[set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
About Wireshark's unsuccessful installation of npcap
Scite change background color
C language - Introduction - essence Edition - take you into programming (I)
Basic operation and process control 2
Viz artist advanced script video tutorial -- stringmap use and vertex operation
数据的存储
数据库应用技术课程设计之商城管理系统
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
[cocos creator] Click the button to switch the interface
随机推荐
Free use until 2015 -- viz artist multi touch plug-in package
Worldview satellite remote sensing image data / meter resolution remote sensing image
【cocos creator】点击按钮切换界面
P2622 关灯问题II(状态压缩 搜索)
PIP uses image website to solve the problem of slow network speed
String class
Ventuz Foundation Series "one step at the door"
Idea dereference display effect
About the problem that the editor and the white screen of the login interface cannot be found after the location of unityhub is changed
Clip Related Script
What is BFC?
Use filechannel to copy files
ArrayList
【音视频】ijkplayer错误码
My touch screen production "brief history" 2
数据库应用技术课程设计之商城管理系统
Golang time format sorting
Transplantation of freetype Library
C#课程设计之员工信息管理系统
Shader foundation 01