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.
別の Xlib ウィンドウの ID を持っていて、このウィンドウの四角形の上に描画したいとしましょう。Qtを使用して描画する方法はありますか? 解決策を見つけましたが、うまくいきません:
QPixmap pix = QPixmap::fromX11Pixmap(wId, QPixmap::ExplicitlyShared); pix.fill(QColor::fromRgb(255,255,255));
ウィンドウが白で塗りつぶされると思いますが、そうではありません。
このウィンドウを埋め込み、不可視のウィンドウを上に配置して、この不可視のウィンドウにレンダリングすることができます。効果は同じです: ウィンドウ上の長方形。