Results 1 to 2 of 2

Thread: Re: Embed an external application to the widget

  1. #1
    Join Date
    Jun 2006
    Posts
    34
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default Re: Embed an external application to the widget

    Hi all,
    I want to embed real player into my application on Linux. Here is the code I have written,
    but It doesnt work, can some body explain how to do it.

    #include <QX11EmbedWidget>
    #include <QtGui>
    #include <QApplication>

    int main(int argc,char *argv[])
    {
    QApplication app(argc, argv);

    if (app.argc() != 2) {
    // Error - expected window id as argument
    qDebug () << "Err cant get the realplayer";
    return 1;
    }

    QX11EmbedWidget widget;
    widget.embedInto((long)"realplayer");
    widget.show();

    return app.exec();

    }


    Thanks in advance,
    Boss

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Embed an external application to the widget

    I think you should rather use QX11EmbedContainer.

Similar Threads

  1. Replies: 22
    Last Post: 14th October 2010, 18:44
  2. accessing my main application window widget
    By jayw710 in forum Newbie
    Replies: 8
    Last Post: 15th November 2007, 20:33
  3. Replies: 4
    Last Post: 24th March 2006, 23:50
  4. How to reload widget plugins?
    By victorng in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2006, 00:27
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 15:16

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.