Replies: 3 comments 6 replies
|
Hi! Thanks for the interest!
I checked the history for both and they appear to have been functioning the same since inception (minus a few tangential bugs, sorry). The current version appears to be constructed as expected for both the QStackedLayout and QGestureEvent (both method variants). I think maybe what you are encountering is the method inheritance that has been simulated to support Qt's heavy usage of it? I can't be certain for sure but typically, including a class requires linking to any parents classes as well. QStackedLayout's headers include the QWidget binding header so that suggests it should be linked too. If you have an error output or stack trace, I would love to see it.
I've suspected some folks from the C crowd would make an effort for CMake. I had some challenges so I hope it's working out well for you! I'd be curious to hear about it even if I don't think the library's toolchain will change any time soon.
Thanks for giving it a try! |
Here's the linker error. The missing functions appears to be the libqt6c wrappers rather than the actual Qt methods:
QGestureEvent_SetAccepted is defined as a function of two arguments
I'm a CMake noob but it was basically as simple as dropping the libqt6c files straight into my existing Qt project! |
|
Fun fact: the total number of methods that were impacted like this (outside of QScintilla which is third-party), is exactly 4:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, unless I'm missing something I seem to have stumbled across a bug in the binding generation.
It pertains to two functions in particular:
q_stackedlayout_widgetappears to wrapQStackedLayout::Widget, but the underlyingQStackedLayout_WidgetwrapsQWidget::widget.q_gestureevent_set_acceptedappears to wrapQGestureEvent::setAcceptedwhile the backend wrapsQEvent::setAccepted.The upshot is that I get a link error when building libqt6c, as the C++ wrappers used by these C functions do not exist. The library builds fine if I comment them out. I should mention I'm using CMake instead of Zig, but this appears to be an implementation issue as best as I can tell.
Thanks a lot for this excellent library by the way!
All reactions