Hello friends,
is there a possibility to embed w32 created windows in QWidget? I read something about QWinWidget for embedding qt things in mfc or like that.
But the interesting thing for me is the opposite way.
Yours,
Hello friends,
is there a possibility to embed w32 created windows in QWidget? I read something about QWinWidget for embedding qt things in mfc or like that.
But the interesting thing for me is the opposite way.
Yours,
I would try QWidget::create().
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hello high_flyer,
QWidget::create() is protected?! Is there an example already metioned?
I think I have to decribe it in more detail. When I get an handle from this:
Qt Code:
hWnd = CreateWindow(ClsName, WndName, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);To copy to clipboard, switch view to plain text mode
How can I take this and put it into a QWidget??
Yours,
Do you know what subclassing is?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
yes i know.
So where is the problem?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I ask me where I have to call the method create(). In the contructor of the widget? Or do I have to customize or call other methods too?
Yours,
This comment in the docs might help:
The QWidget constructor calls create(0,true,true) to create a window for this widget.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks