Skip to content

Conversation

kormax
Copy link
Contributor

@kormax kormax commented Jul 24, 2025

I've been doing some hacks to allow running QEventLoop of QThread myself, but seeing a nice and simple solution proposed in #122, I'd like to introduce it into the codebase proper.

As for the details:

  • eventDispatcher is available for both QApplication and QThread;
  • processEvents does not have a default argument value for QAbstractEventDispatcher, so we use the same AllEvents(0x00) value as in QApplication.
  • exit method is available for both both QApplication and QThread, so we use it without any changes;

@kormax kormax force-pushed the qeventloop-with-qthread branch 3 times, most recently from 6c7ab25 to 1e2b48e Compare July 24, 2025 06:23
@kormax kormax force-pushed the qeventloop-with-qthread branch from 1e2b48e to 969663c Compare July 24, 2025 06:27
@hosaka
Copy link
Collaborator

hosaka commented Jul 24, 2025

Great stuff, thanks @kormax for addressing #122

@hosaka hosaka merged commit 68be1ee into CabbageDevelopment:master Jul 24, 2025
72 of 73 checks passed
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

Successfully merging this pull request may close these issues.

2 participants