Results 1 to 20 of 23

Thread: Embed an external application to the widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #17
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Embed an external application to the widget

    I tried exactly this, but xterm opens in a separate window.

    edit:
    Here's some code:
    Shell::Shell(QWidget *parent)
    : QDockWidget(parent)
    {
    setObjectName("Shell");
    setWindowTitle("Shell");

    QWidget *widget=new QWidget(this);
    setWidget(widget);

    process=new QProcess(this);
    process->start("xterm -into "+QString((int)widget->winId()));
    widget->show();
    }
    edit2:
    I made a screenshot for you, so you can understand what I am trying to achieve:
    Attached Images Attached Images
    Last edited by leenxkewl; 14th October 2010 at 16:15.

Similar Threads

  1. Q3ScrollView resists to scroll down to the garbage bin
    By sivrisinek in forum Qt Programming
    Replies: 0
    Last Post: 5th February 2009, 17:50
  2. shared vs static
    By alisami in forum Installation and Deployment
    Replies: 3
    Last Post: 4th October 2008, 13:04
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04
  5. Replies: 1
    Last Post: 14th June 2006, 14:36

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.