[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Threading in KDE-programs
From: Rik Hemsley <rik () kde ! org>
Date: 2000-05-18 20:29:27
[Download RAW message or body]
#if Kris Gijbels
> Question from a beginning KDE programmer :)
>
> I've never written programs with a GUI before. I've been trying out
> Java+Swing a bit, but after finding out that this tends to eat huge
> amounts of memory, I decided to try out KDE.
>
> My question: in Java you use subclasses of class Thread to make well,
> threads. How do I do this with Qt/KDE? I have a book on Qt but it
> doesn't seem to mention this. And I can't find anything about it on
> the kde development documentation page. Is there something similar in
> KDE, or do I just use fork or the pthread-library or whatever? :)
You can hack qpthread (not related to Qt) to use GNU Pth and use that.
This allows you do inherit from QpThread, much like Java does it.
I tried it, seems to work, but haven't tested it much. We had a discussion
about it a while back but nothing concrete has been done about it yet.
Rik
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic