what is player in this case...is it a QWidget? Originally Posted by SunnySan Then ,how do we get this winID number??? using casting (int) Qt Code: Switch view 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)
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);
Yes, it's an empty QWidget.
Your biological and technological distinctiveness will be added to our own. Resistance is futile. Please ask Qt related questions on the forum and not using private messages or visitor messages.
Forum Rules
Bookmarks