July 23, 2011

vijayakumar vedavalli vijayakumar vedavalli
Lab Rat
2 posts

to run our own event loop in Qt/Embedded

 

Hi,
1. on Qt/Embedded without calling QApp::exec(), if i use processEvents() in a while loop which has some widget creation and deletion also it gives segmentationfault. is it bcoz QEventLoop object is not yet created(may be in exec() call it could be created).

2. if I create my own eventloop object as a public member of MyApplication which inherits QApllication, still same problem is persisting. Is it bcoz QThreadData object is not created??

3. In the same context, i want to know whether all QTreads are managed with in Qt’s own scheduling time at the OS level??

please help me about these issues

2 replies

July 23, 2011

ZapB ZapB
Ant Farmer
1426 posts

Why do you want/need to run your own event loop? You may want to take a look at QAbstractEventDispatcher if you wish to customise event handling.

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

July 26, 2011

vijayakumar vedavalli vijayakumar vedavalli
Lab Rat
2 posts

why bcoz i dont want to receive any user invoked events from QWS instaed i receive from another process. I want to block wait on that particular message queue instaed of aboutToBlock() emission by QAbstarctEventDispatcher. As per the information received on message queue i want to create/delete/chage state of objects.——-simply i want to use Qt/Embedded(which has good documentation and user base compared to other Display servers) like Display server only rather than GUI server.

 
  ‹‹ QtQuick, multiple string concatenation and embedded devices      Arabic Language Representation ››

You must log in to post a reply. Not a member yet? Register here!