Results 1 to 2 of 2

Thread: QProcess and MူPlayer's slave mode problem in Windows Platform

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2015
    Posts
    35
    Thanks
    20
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default QProcess and MူPlayer's slave mode problem in Windows Platform

    Hi,

    I want to run MPlayer in My application in WINDOW PLATFORM. I found that code in forum.
    Qt Code:
    1. container->setGeomerty(0,0,1280,1024);
    2. QProcess *mp=new QProcess(container);
    3. connect(mp, SIGNAL(finished(int)),this, SLOT(endPlay(int)));
    4. QString command=" -wid "+QString::number(container->winId())+" -slave "+playfile;
    5. mp->start("mplayer "+command);
    To copy to clipboard, switch view to plain text mode 
    Now I use Qt 5.4 and QX11EmbedContainer is not included in Qt 5.4.
    What is the replacement of QX11EmbedContainer in Qt 5.4?

    I replaced QWidget instead of QX11EmbedContainer in Qt 5.4 as follow:
    Qt Code:
    1. QWidget *Wd = new QWidget(this);
    2. const QString mplayerPath ("C:/mplayer.exe ");
    3. args << " -slave -quiet -ac mad -zoom -vo directx:noaccel -wid " << QString::number(Wd->winId()) << "c:/text.mpg ";
    4. MyProcess = new QProcess (this);
    5. MyProcess -> start (mplayerPath, args);
    6. Wd->show();
    To copy to clipboard, switch view to plain text mode 
    video is played separately from my app's Form. I want it embedded in my Form.

    Thanks in advance.
    Last edited by binary001; 24th January 2015 at 17:55.

Similar Threads

  1. Qt 5 QProcess Strange Problem on Windows.
    By harinlen in forum Qt Programming
    Replies: 6
    Last Post: 1st July 2013, 01:27
  2. Cross-platform Windows & Mac: Font size problem
    By monkazer in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2012, 15:10
  3. Problem using the QPSQL plugin on Windows x64 in Debug mode
    By code_talker in forum Qt Programming
    Replies: 4
    Last Post: 12th August 2010, 13:01
  4. Flash Player Crashes in linux platform
    By Peter Jerald in forum Qt Programming
    Replies: 1
    Last Post: 6th July 2010, 08:54
  5. Problem using QProcess on Windows XP
    By shopov in forum Newbie
    Replies: 3
    Last Post: 29th April 2010, 12:28

Tags for this Thread

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.