Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project simple Qt types (QRect/F, QSize/F, QRgba64) as plain Go structs #79

Open
mappu opened this issue Nov 15, 2024 · 0 comments
Open
Labels

Comments

@mappu
Copy link
Owner

mappu commented Nov 15, 2024

In Qt C++ these POCO-like types are normally stack-allocated and passed by value reference. But MIQT currently has to move them to heap pointers to cross the C ABI, requiring extra CGO roundtrips to allocate them from the Qt side.

By using plain Go structs instead, they can be better stored on the stack.

@mappu mappu added the wishlist label Nov 15, 2024
@mappu mappu changed the title Project simple Qt types (QRect/F, QSize/F) as plain Go structs Project simple Qt types (QRect/F, QSize/F, QRgba64) as plain Go structs Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant