[Qt-interest] Motif and QT
phil prentice
philp.cheer at talktalk.net
Thu Mar 5 11:37:44 CET 2009
Thanks everyone for your responses.
I will read the white paper...but it does not sound good. As I say it
probably would not be to much effort to re-write most of the
applications...however some of them cant justify the time and so I guess they
will probably have to remain as motif...but I will have a read anyway. It
just would have been nice to attack the problem bit by bit...that I could
handle...a massive re-write is a much greater issue.
Thanks again!!!
Phil
On Wednesday 04 March 2009 20:06, you wrote:
>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.
>
> phil prentice wrote:
> > 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