Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to declare a QWidget as a child of a window created outside of Qt?

I'd like to use Qt in my browser plugin, but I don't get to create my own window, the browser does.

What I'd like to do is create a QWidget as a child of a native window handle... Is this possible?

like image 775
dicroce Avatar asked Nov 06 '22 01:11

dicroce


1 Answers

You may be able to take over a native window handle by calling QWidget::create() in your custom widget's constructor. Note that it's a protected method so you can't call it on a normal QWidget.

like image 94
Stephen Chu Avatar answered Nov 15 '22 00:11

Stephen Chu