Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フレームバッファに直接描画するQt Embeddedを使用しています。フォーカスされたウィンドウの pid を取得する方法はありますか? QWSServer を使用しようとしましたが、このためのすべての API が見つかりませんでした。ありがとう!
それは簡単ではありません、それをチェックして、PID は によってのみ見つけることができますQCoreApplication::instance()->applicationPid()。PID を使用する理由はありますか? たぶんQWSWindow::client()->clientId()、それが別のアプリであることを確認するための単純な使用ですか?
QCoreApplication::instance()->applicationPid()
QWSWindow::client()->clientId()