QX11EmbedContainer代码错误 [英] QX11EmbedContainer code error

查看:720
本文介绍了QX11EmbedContainer代码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是使用QX11EmbedContainer嵌入应用程序的代码。

Given below is the code for embedding an application using QX11EmbedContainer.

#include "mainwindow.h"
#include <QApplication>
#include <QX11EmbedContainer>
#include <QProcess>

using namespace std;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    QX11EmbedContainer container;
    container.show();

    QProcess process(&container);
    process.start("C:/Users/Administrator/Desktop.../.exe");

    int status=a.exec();
    process.close();
    return status;
}



在运行应用程序时,我得到的错误是:

On running the application the error that I am getting is:

C:\Qt4.8.5\src\gui\kernel\qx11embed_x11.h:77: error: C2061: syntax error : identifier 'XEvent'

我错了什么?

推荐答案

QX11EmbedContainer是X11特定的,它不会在其他系统(如Windows)下工作。

QX11EmbedContainer is X11-specific, it will not work under other systems (like Windows).

这篇关于QX11EmbedContainer代码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆