Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Event loop in DLL steal events
Qt 6.12 LTS is out! See what's new in the release blog

Event loop in DLL steal events

Scheduled Pinned Locked Moved 3rd Party Software
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jeka178RUS
    wrote on last edited by
    #1

    Good day. I implement some OpenGL plugin for 3rd party software using proxy dll. So there is 2 functions:

    Init() called only once and init OpenGL and QApplication if it not peresent
    @
    ...
    isInQtApp = ( qApp != nullptr ); // global bool
    if ( !isInQtApp ){
    int argc = 0;
    new QApplication( argc, 0 );
    qApp->processEvents();
    }

    // OpenGL init
    ...
    @

    and apply() function called on every buffers swapping (on each frame rendered)
    @
    if ( !isInQtApp ){
    qApp->sendPostedEvents();
    }

    // OpenGL rendering
    ...
    @

    I need QApplication event loop for signal/slots and networking.

    This implementation works well for Quake 4 for example and some other application, but in FurMark network is not working.

    I try to add--
    @
    qApp->processEvents();
    @

    after
    @
    qApp->sendPostedEvents();
    @

    and it get OK for FurMark, but steal any events from other applications, I cant move camera by mouse or move by keyboard. What I am doing wrong?

    I am using Qt 4.8.4

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved