Qt Direct Connection

Posted by user152508 on Stack Overflow See other posts from Stack Overflow or by user152508
Published on 2010-06-13T10:24:22Z Indexed on 2010/06/13 10:32 UTC
Read the original article Hit count: 226

Filed under:
|

Hello

I have created Qt tree control( and its nodes ) in different thread than the main thread. In the main thread I want to show context menu for the clicked node, so I am connectiong the actions in the menu with appropriate slots in the main thread. The connect function returns true , but slot is never executed. If I explicitly say in connect function that this is Qt :: DirectConnection then everything works fine. Why is this ?

I I create my tree in main thread, everything also works fine , without having to say that this is Qt::DirectConnection .

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4