From kde-devel Sun Jun 08 13:59:53 2008 From: Robert Wood Date: Sun, 08 Jun 2008 13:59:53 +0000 To: kde-devel Subject: Re: A newbie question about QXEmbed Message-Id: <484BE5D9.5060508 () apostrophe ! co ! uk> X-MARC-Message: https://marc.info/?l=kde-devel&m=121293403717306 Koos, dank u wel, dank u wel! That works a treat now. I can embed it quite into a little frame on my application as well, it's just exactly what I wanted and is actually quite simple once you know the syntax! koos vriezen wrote: > 2008/6/8 Otávio Souza : > >> You didn't forget the QProcess::start(), you did it at if ( !mp->start() ) >> >> Try to show up the window first, than you start the mplayer process, you can >> try to start another app, like kwrite ou anything else >> >> If this doesn't work, try to qDebug the QXEmbed winId, and do mplayer by >> hand, copy and paste with the command >> > > Really, you don't need QXEmbed. Here is a minimalistic mplayer frontend: > > #include > #include > > int main( int argc, char **argv ) { > QApplication app( argc, argv ); > QWidget *window = new QWidget; > window->show(); > window->setUpdatesEnabled( false ); //call this when you start the > mplayer process > qDebug( "Window id=%d", window->winId() ); > app.exec(); > return 0; > } > > g++ -o qmplayer qmplayer.cpp -I/usr/share/qt3/include -lqt-mt > > run ./qmplayer > and from another shell > mplayer -wid moviefile > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<