How to make UI as library?



  • I have program which works in console and is written in C.

    Now what I like to do is to load dynamical library, call
    @
    initUi();
    here_some_data(ptr);
    show_it_please();
    @
    and C program could continue processing.

    A show stopper problem for me is event loop. It is needed to start in this dumb example in initUi() which would never return then. So far I've been tweaking with threads but I haven't been able to find solution which would return from function AND leave responsive UI for user.

    Has anyone done this or know some pointers where it has been done?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    It's generally done the other way around, you integrate the cli part in your gui application e.g. using QProcess.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.