简体   繁体   中英

X11 Widget from QT QWidget

Is it possible to extract an X11/Xt Widget from QT QWidget. I know there is a function WinId() on QWidget which gives me a Window but I need a Widget object.

I don't believe Qt uses Xt widgets at all, so the answer to your question would be no.

(Grepping for Xt in the source files found in the src/gui/kernel directory shows no hits.)

No, Qt/X11 uses X11 directly (well, using xlib/xcb, no Xt) and there is no such a thing as 'X11 widget'. If you want to include Qt widget in your Xlib application, you can use Xembed (or just reparent external qt application)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM