From: raphael grasset (raphael.grasset++at++imag.fr)
Date: 11/14/2002 07:05:17
Denis Taniguchi wrote:
>Hi all,
>
>As a measure to speed up GUI design, we are trying to use Qt instead of
>Motif.
>Did anyone try this and succeed? Any tips, comments and advises will be
>appreciated.
>Best Regards!
>
>Denis Taniguchi
>Nat. Univ. of Yokohama - Dept. of Information Media and Environment Science.
>
>
Hi,
I try this stuff, but I think with not very optimized idea. I try at
first dealing with multithread with Qt, and have a thread communicate
with Performer, with
no success because, when I test Qt, the multithread can't contain GUI
widget, but just computing code.
So, I just create another sproc where qt run and have his main loop
(sproc on IRIX, and I think probably a pthread on LINUX, not sure). The
communication with Qt and Performer work with special widget that
communicate with variable present in shared area like :
float h;
int main()
{
..
pthread_create(&qtThread, NULL,&qtMainLoop,NULL);
while ()
{
transfo->setRot(h,0.,0.);
}
....
}
void *qtMainLoop(void *)
{
.....
FloatWidget w2;
w2.SetRef(&h);
.....
QObject::connect( slider2, SIGNAL(valueChanged(int)),&w2,
SLOT(SetValue(int)) );
.....
}
where h is define in Performer program. With this you completly seperate
interface from variable program. But I'm not sure that is
bidirectionnal, I don't
try.
That's all.
Raphael.
-- __________________________________________________________________________ Raphaël GRASSET | Doctorant (Phd Student) | iMAGIS-GRAVIR -------------------------------------------------------------------------- actually at the Interactive Media System Group, Vienna. Tel: +43(1)588.01.18878 Fax: +43(1)588.01.18898 Technische Universität Wien Institut für Softwaretechnik und Interaktive Systeme Arbeitsgruppe für Interaktive Mediensysteme Favoritenstrasse 9-11/188/2 A-1040 Vienna, Austria -------------------------------------------------------------------------- raphael.grasset++at++imag.fr http://www-imagis.imag.fr/Membres/Raphael.Grasset Tel:+33(0)4.76.61.55.17 Fax:+33(0)4.76.61.54.40 iMAGIS- Laboratoire GRAVIR INRIA Rhône-Alpes 655, avenue de l'Europe 38330 Saint-Ismier Cedex FRANCE __________________________________________________________________________
This archive was generated by hypermail 2b29 : Thu Nov 14 2002 - 07:09:14 PST