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

Would you like to provide integration to QT6 (QWindow)? Thanks! #33

Open
zhangfq-chemistry opened this issue Dec 21, 2024 · 5 comments
Open

Comments

@zhangfq-chemistry
Copy link

No description provided.

@Mike-Leo-Smith
Copy link
Contributor

Hi, @zhangfq-chemistry

Sorry for the late reply (I was too busy and had sorrily forgotten this issue).

We already have an ImGUI display here. If you just want to interactively view the rendering, it might be useful.

If you prefer integration with an existing Qt app, it can be done by implementing a custom widget and presenting LuisaCompute images to its window surface, as demonstrated here.

Another choice is to combine the existing ImGUI display with a Qt widget, but this might require some modifications to the LuisaCompute code as it's using GLFW for window management by default.

@zhangfq-chemistry
Copy link
Author

Thanks a lot! Is there one way to subclass directly from QWindow instead of QWidget ? The QWidget encapsulates a lots and runs very slowly. In addition, I cannot find exe of test_swapchain_qt.cpp after compiling.

@Mike-Leo-Smith
Copy link
Contributor

Thanks a lot! Is there one way to subclass directly from QWindow instead of QWidget ? The QWidget encapsulates a lots and runs very slowly. In addition, I cannot find exe of test_swapchain_qt.cpp after compiling.

I guess it would work with QWindow but I need to check it for sure.

Did you see other test_*.exe? It might be because LuisaRender disables tests, or CMake failed to find the Qt package.

@zhangfq-chemistry
Copy link
Author

There are a lot of test_*.exe including test_swapchain_static and test_swapchain_static. And I cannot find test_swapchain_qt. Would you like to add it to tests? Thanks!

@Mike-Leo-Smith
Copy link
Contributor

There are a lot of test_*.exe including test_swapchain_static and test_swapchain_static. And I cannot find test_swapchain_qt. Would you like to add it to tests? Thanks!

test_swapchain_qt is turned on by default in the tests. If it's not compiled, then CMake might have failed to find the Qt libraries. Would you please post the CMake configuration log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants