Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:26:01+00:00 2026-06-12T04:26:01+00:00

How can we embed an external application inside a QWidget? I have tried same

  • 0

How can we embed an external application inside a QWidget?

I have tried same using QX11EmbedContainer but getting error “XEvent has not been declared”.

I have tried below mentioned code (‘this’ represents a qwidget class reference )

     QX11EmbedContainer * container = new QX11EmbedContainer(this);
     container->show();

     QProcess * process = new QProcess(container);
     QString executable("\"C:\\Program Files\\Windows Media Player\\wmplayer.exe\"");

     process->start(executable);

     this->show();

container object i am trying to add to current tab of tabwidget object in which i want to run some external application(Application1).
This is my code

     QTabWidget *tabWidget = new QTabWidget;

     /* Trying to add external appllication to a tab of tabwidget object */
     QX11EmbedContainer * container = new QX11EmbedContainer(tabWidget->currentWidget());
     container->show();

     QProcess * process = new QProcess(container);
     QString executable("/home/abhishek/practice/Applicaion1");

     process->start(executable);

Application1 gets executed but in a seperate window but i want it to run in my tab

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:26:02+00:00Added an answer on June 12, 2026 at 4:26 am

    QX11EmbedContainer only works on X11 (e.g., on Linux). From the looks of it, you’re trying to do this on Windows.

    I’m not very familiar with using Qt on Windows, but it looks like the equivalent functionality is provided by the ActiveQt module. You might be able to accomplish something like this within that framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to embed an external application inside the browser (IE, Chrome, Safari,
Using h:outputStylesheet I can embed CSS resources in the HTML head section, but how
How can I embed binary file (executable, to be exact) in Java application? Is
How can I embed a CR + LF in a command I'm using at
I have a jomsocial installation at http://social.drishtant.com/social-network-for-social-impact How can I embed the jomsocial component
how can I set embed parameters for html wrapper using Flex Builder ? For
I'm would like to embed Internet Explorer into an WPF Windows Application. I have
WCF generates complex types as external xsd files. How can I embed these definitions
I have a WPF app. I need to embed a Silverlight app inside it.
I'm trying to embed an applet in my site, but I can't for the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.