Results 1 to 13 of 13

Thread: Multiple applications in same window

  1. #1

    Default Multiple applications in same window

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple applications in same window

    Which platform are we talking about?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3

    Default Re: Multiple applications in same window

    Linux Ubuntu 10.04

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple applications in same window

    You can use XEmbed then.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5

    Default Re: Multiple applications in same window

    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?
    Last edited by hitesh_sharma@satyam; 20th April 2012 at 06:48.

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Multiple applications in same window

    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.

  7. #7

    Default Re: Multiple applications in same window

    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

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple applications in same window

    Quote Originally Posted by hitesh_sharma@satyam View Post
    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().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9

    Default Re: Multiple applications in same window

    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

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple applications in same window

    Good for you.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11

    Default Re: Multiple applications in same window

    Player is working fine as an independent project.
    I am not able to add it into the TAB

  12. #12
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Multiple applications in same window

    Quote Originally Posted by hitesh_sharma@satyam View Post
    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.

  13. #13

    Default Re: Multiple applications in same window

    Resolved

    I am using Stack Layout now.

Similar Threads

  1. PRI and PRO and multiple applications
    By qlands in forum Newbie
    Replies: 1
    Last Post: 24th December 2011, 08:17
  2. Multiple Plots in One Window
    By cookie0427 in forum Qwt
    Replies: 3
    Last Post: 4th June 2010, 15:14
  3. Replies: 2
    Last Post: 3rd June 2010, 14:38
  4. Multiple Plots in one Window
    By cookie0427 in forum Newbie
    Replies: 0
    Last Post: 2nd June 2010, 19:21
  5. Distributing multiple Qt applications?
    By gfunk in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2007, 17:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.