
Originally Posted by
wysota
winId() does not return a number on windows, but a pointer (handle) to the window.
Then ,how do we get this winID number???
using casting (int)
Qstring winNuber
= QString ::number((int) (player
->winId
()) ) arguments << "-slave" << "-wid" << winNuber << "-vo" << "directx:noaccel" << "-fs" << file ;
m_pProcessVideo->start("C:\\Program Files\\SMPlayer\\mplayer\\mplayer.exe",arguments);
Qstring winNuber= QString ::number((int) (player->winId()) )
arguments << "-slave" << "-wid" << winNuber << "-vo" << "directx:noaccel" << "-fs" << file ;
m_pProcessVideo->start("C:\\Program Files\\SMPlayer\\mplayer\\mplayer.exe",arguments);
To copy to clipboard, switch view to plain text mode
this works but NOT into the intended window (it uses the full computer screen)
Bookmarks