PythonQt icon indicating copy to clipboard operation
PythonQt copied to clipboard

Widgets and WebKitWidgets for Qt5

Open dbrnz opened this issue 11 years ago • 3 comments

Thanks for your work! I've managed to get things working with Qt 5.2 under OS/X 10.9. However QtWidgets and QtWebKitWidgets are missing. What is required to create code for them in ./generated_cpp_50?? I'm happy to do the work if I have some pointers...

dbrnz avatar Apr 12 '14 10:04 dbrnz

It still uses the old (Qt4) module layout, so the QWidgets classes should be in QtGui and the QtWebkitWidgets classes in QtWebKit. This should probably be fixed but right now, there's nobody working on it.

Basically, you need to change the .xml api description files in ./generator_50/ and possibly the generator code itself. Then you let it generate new bindings.

If you're up for it, feel free to do the work, as I don't really see myself working on this right now because I mostly use the non-GUI parts of PythonQt in my projects.

Orochimarufan avatar Apr 12 '14 10:04 Orochimarufan

This looks to be a non-trivial task...! The .xml files come from the QtScript bindings project and my guess is that they have been generated by some tool. I'll carry on investigating.

dbrnz avatar Apr 12 '14 23:04 dbrnz

The original source of the xml files was QtJambi and from its documentation: "Type conversion in the bindings is based on an XML mark-up which assigns certain attributes to each of the mapped classes. The XML document is handwritten, and mainly provides information on the usage pattern for each class."

dbrnz avatar Apr 12 '14 23:04 dbrnz