PDA

View Full Version : Multiple applications in same window



hitesh_sharma@satyam
19th April 2012, 11:04
Hi,

I want to have Multiple application in the same window
1.Radio
2.Media Player
3.Terminal Mode

By clicking buttons(or any thing else like tab ) it should launch the application on the main window.
How it can be achieved.

I have designed the above 3 application separately.
Now I want to have one integrated app.

Regards
Hitesh Sharma

wysota
19th April 2012, 11:57
Which platform are we talking about?

hitesh_sharma@satyam
19th April 2012, 12:37
Linux Ubuntu 10.04

wysota
19th April 2012, 16:47
You can use XEmbed then.

hitesh_sharma@satyam
20th April 2012, 07:48
Hi,

Is there any sample code available for XEmbed

Added after 1 12 minutes:

In XEmbed how will we get the WinID dynamically every time?

ChrisW67
20th April 2012, 07:57
I have designed the above 3 application separately.
Now I want to have one integrated app.

If you have written the three sub-programs yourself then it seems to be a reasonably trivial exercise to produce a library version of each and build the combined application from those.

hitesh_sharma@satyam
20th April 2012, 08:25
Point is not about building a combined application but building a single UI for all the three different applications....how can i combine the three application UI into a single UI

wysota
20th April 2012, 09:41
Hi,

Is there any sample code available for XEmbed
I'm sure there is.


In XEmbed how will we get the WinID dynamically every time?
We will call QWidget::winId().

hitesh_sharma@satyam
20th April 2012, 14:29
Project source code is available at

http://www.2shared.com/file/sxDtXzjC/Tabs.html

I am trying to add media player based on mplayer inti the TAB.


and working code of the player is at http://www.2shared.com/file/d0Pg4m2n/qmpdemo.html

wysota
20th April 2012, 14:43
Good for you.

hitesh_sharma@satyam
23rd April 2012, 06:44
Player is working fine as an independent project.
I am not able to add it into the TAB

ChrisW67
23rd April 2012, 08:18
Point is not about building a combined application but building a single UI for all the three different applications....how can i combine the three application UI into a single UI
I fail to see the difference except in terms of complexity, portability and fragility. Since you have the source of the three applications there is more than one option, but you seem fixated on one way to do it.

Here is another option. Split each of the three applications into two parts:

A dynamically loadable library containing the application logic and the application's main window class.
A trivial shell application, linked to the library above, that creates an instance of the main window class and shows it.

You still have three separate runnable programs with the same functionality, but you have bought some capability.

Then your combined application becomes a simple shell that is linked to all three application libraries, instantiates the main widget of each, and puts them into a layout in its own main window. You might have to deal with a few name collisions with name spaces.

There are some limitations of this approach but I'm not convinced they are bigger than the XEmbed ones.

hitesh_sharma@satyam
7th August 2012, 08:12
Resolved

I am using Stack Layout now.