[Qt-interest] Motif and QT

ygor at comcast.net ygor at comcast.net
Wed Mar 4 20:13:45 CET 2009


Short Answer: re-write it.  less pain in the long run

Longer Answer: Go to <http://www.ics.com/learning/learning_center_downloads/> and get a copy of the white paper called "Porting Motif Applications to Qt"  (I cannot include a direct link 'cause of the way they have it hidden)

Motif was king in the days before C++.  Motif is written in C.  It is LINEAR.  Motif and C++ do not play nice together.  I speak from first-hand experience.

----- Original Message -----
From: phil prentice <philp.cheer at talktalk.net>
To: qt-interest at trolltech.com
Sent: Wed, 4 Mar 2009 19:11:20 +0000 (UTC)
Subject: [Qt-interest] Motif and QT

Hi

  I have a number of old applications that use Motif and make calls to 
functions like XCreateSimpleWindow(....) and XDefineCursor(..) etc etc etc.

  I would very much like to be able to move these applications over to QT.  I 
have written new QT GUI's from scratch but have not looked at moving whats 
already there over.  Some of these applications I would re-write from scratch 
ripping off the code as necessary.  However some of them are very big and it 
would be nice if I could somehow think about the possibility of substituting 
these functions with QT equivalents and so replace the lower level interface 
from X/motif to QT.  There are many reasons why I would want to do this.  Is 
what I am asking fairly possible or should I be looking at some other better 
method?  I have not even began to think about how I would introduce these QT 
objects into my C code..but thats another story(use new to create them 
somehow or whatever).

  By the way I know that QT does provide a motif extension, which I have not 
looked at yet...but for a number of reasons I am initially wondering if there 
is any point in me considering trapping the calls myself.

Thank you for all your help
  Phil
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list