Qt-interest Archive, October 2007
Qt Jambi
Message 1 in thread
- Subject: Qt Jambi
- From: Marco Bnà <bna.marco@xxxxxxxxx>
- Date: Thu, 25 Oct 2007 14:30:54 +0200
- Delivered-to: qt-interest@trolltech.com
- Disposition-notification-to: Marco Bnà <bna.marco@gmail.com>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:return-receipt-to:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:content-language:disposition-notification-to; bh=pnu9GWKZrzUZBi7d/OQPmPMF6Mgzfw6yDAOw06PqSVI=; b=WbMHYYuD2DYJmRuOwW5oMv/xtp9RBKXD9TWO5OWKlTt6VrhVBgOzKwPImnPKhYZ3DP0ih223FXEvERkE2uAfccke9OR/Hs5BdIu1TdNentaYowEG1FgwP/Wga8/O75GKT8ejcuS6FiYK7bp9bSJGquBQmy0Ba1Nbik7UkjGmSJQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:return-receipt-to:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:content-language:disposition-notification-to; b=P1rWW7ujD2kmSlBQdVZzH/hmzMsZWe0D8NPTaBsHRWgdeKzsk1CCzXGcGPae//mF3+9ApbxngDMnVNHcdBumzGdijD4xsXap7PjZQHiw6saGLZfP/tzPLOiJlG9Um1xqjLWsyq5IsQrkQuPEX9TIavtf3NlBhmCB11B2zGqxWA8=
- List-help: <mailto:qt-interest-request@trolltech.com?subject=help>
- List-post: <mailto:qt-interest@trolltech.com>
- List-subscribe: <mailto:qt-interest-request@trolltech.com?subject=subscribe>
- List-unsubscribe: <mailto:qt-interest-request@trolltech.com?subject=unsubscribe>
- Resent-from: qt-interest@xxxxxxxxxxxxx
- Resent-message-id: <9HbzqD.A.INC.XyIIHB@esparsett>
- Resent-sender: qt-interest-request@xxxxxxxxxxxxx
- Thread-index: AcgXAuLuOvLGg5ofRGKIds1nzCcVkw==
- To: <qt-interest@xxxxxxxxxxxxx>
Hi all. I?m going to realize a multithreaded application in Java. Knowing
that Qt are very useful and having realized a previous app that should
become usefull, written in c++ using qt, I would ask if QCoreApplication
thread should conflict with other threads launched inside the app?
I?m not very experienced so I ask?
Thank you very much.
Best regards,
Marco
Message 2 in thread
Marco Bnà wrote:
> Hi all. I’m going to realize a multithreaded application in Java. Knowing
> that Qt are very useful and having realized a previous app that should
> become usefull, written in c++ using qt, I would ask if QCoreApplication
> thread should conflict with other threads launched inside the app?
>
Hi, Marco.
It is quite possible to write a multithreaded application using Qt Jambi
using the existing threading API available in Java.
Whenever threads are involved, there is the possibility of conflicts,
which means that you will have to take care when you are programming the
application. This is true for Qt Jambi applications as well. There are,
however, some helpful features in Qt and Qt Jambi which might make it
easier: Objects of class QObject have thread affinity, meaning they can
only be used from the thread they belong to. There is also thread safety
built into the signal/slot mechanism, which means you can easily
communicate between application components without worrying about thread
issues.
I hope this was helpful, please get back to me if I misunderstood your
question.
Also, could I ask you to direct future questions to the Qt Jambi
Interest mailing list (qt-jambi-interest@xxxxxxxxxxxxx)? That is the
list dedicated to questions about Qt Jambi, and you're more likely to
get a useful response there (as Qt Jambi developers as well as other Qt
Jambi users regularly monitor that list.)
-- Eskil
--
[ signature omitted ]