Results 1 to 16 of 16

Thread: Sharing data between threads

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Sharing data between threads

    Hello everyone,

    I'm using QT4.4.1 and have the following situation:

    We have 'C' code with which we want to add a Graphical User Interface to, so I created the GUI using QT4 and built it as a static library. I then create a new thread in our multi-threaded 'C' application and execute the GUI. I was able to do with no problems at all, but now I want to be able to send data back and forth between the C-main function and the QT-main function (QT GUI Library).

    I wasn't sure how to do this because the QApplication::exec() is necessary to start the GUI and has it's own event loop that processes different events.

    Can anyone provide any help on this subject? Creating a separate thread in QT (QThreads) and running the C application is not an option because I will not have access to manipulate the C code, only the QT GUI library.


    Regards,
    BB
    Last edited by bbui210; 15th October 2008 at 01:39. Reason: More relevent title

Similar Threads

  1. Loading library from application
    By mourad in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd April 2008, 15:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.