[Kde-bindings] Qtruby Screenshot example program does not work on Windows

Arno Rehn arno at arnorehn.de
Thu Aug 5 16:06:04 UTC 2010


On Thursday 05 August 2010 18:00:41 Melton, Ryan wrote:
> I tracked this down to a problem with the QWidget::winId() const method. 
> It returns a HWND__* which is not in the Smoke ClassMap.
> 
> Here is a snippet from smokedata.cpp from smoke/qtgui:
> static Smoke::Class classes[] = {
>     { 0L, false, 0, 0, 0, 0, 0 },	// 0 (no class)
>     { "HBITMAP__", true, 0, 0, 0, 0, 0 },	//1
>     { "HDC__", true, 0, 0, 0, 0, 0 },	//2
>     { "HFONT__", true, 0, 0, 0, 0, 0 },	//3
>     { "HICON__", true, 0, 0, 0, 0, 0 },	//4
>     { "HINSTANCE__", true, 0, 0, 0, 0, 0 },	//5
>     { "HPALETTE__", true, 0, 0, 0, 0, 0 },	//6
>     { "HRGN__", true, 0, 0, 0, 0, 0 },	//7
>     { "HWND__", true, 0, 0, 0, 0, 0 },	//8
I don't know anything about these Windows classes. Try adding them to one of 
the smokeconfig.xml files and regenerate your smoke libs. I don't know if this 
is correct, though. Maybe we should simply return the pointer value to ruby 
and provide no support for the actual HWND__ class.
I don't know enough of the Windows API to judge this properly, I guess.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list