Results 1 to 2 of 2

Thread: Displaying 2 QApplication's in single window

  1. #1
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Displaying 2 QApplication's in single window

    Hello

    I have 2 QApplication's . How to show them in single Frame? (layers or multiple dialogs..)

    QApplication application1(argc, argv);
    QCoreApplication::setApplicationName(appName1);
    application1.connect(&application1, SIGNAL(lastWindowClosed()), &application1, SLOT(quit()));


    QApplication application2(argc, argv);
    QCoreApplication::setApplicationName(appName2);
    application2.connect(&application2, SIGNAL(lastWindowClosed()), &application2, SLOT(quit()));

    Thanx
    Last edited by masandeep; 15th September 2009 at 08:01.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Displaying 2 QApplication's in single window

    Quote Originally Posted by masandeep View Post
    I have 2 QApplication's . How to show them in single Frame?
    What do you mean by showing a QApplication?
    QApplication in not a GUI item and should be executed not shown.
    Mixing 2 QApplication is never advisable.

  3. The following user says thank you to yogeshgokul for this useful post:

    masandeep (15th September 2009)

Similar Threads

  1. Replies: 2
    Last Post: 9th August 2009, 22:08
  2. Displaying DOS Window with QProcess
    By GTBuilder in forum Newbie
    Replies: 0
    Last Post: 19th February 2008, 02:26
  3. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  4. New to QT, problem displaying main window...
    By McCall in forum Qt Programming
    Replies: 4
    Last Post: 15th June 2007, 14:27
  5. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13

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
  •  
Qt is a trademark of The Qt Company.