Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using QT with foxpro?
Message
From
11/10/2015 09:12:40
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01625802
Message ID:
01625813
Views:
86
Likes (1)
If QT GUI is mandatory I'd create it in Python with pyQT for first version and run the vfp part as COM exe from there. If architected well, marshalling will not kill you - think chunky, not chatty - for most of the use cases normally encountered. Optimize any special bottlenecks in second version - before even calculating the needed budget for a direct QT-2-Vfp bridge via C.

Been there, did something similar with WinForms (and partially with WPF) and IronPython, so I know it is NOT a cul-de-sac. It is not even Goldbergian, but clearly has a lot more layers than a pure QT C app, so if portability AND sub-decisecond GUI is needed, you should rethink anything but C IAC ;-)

About a dozen years ago I had to optimize the bridge of an alternative JAVA GUI given to a an additional set of corporate users to a previously VFP only app - which had the benefit of clearly defined and separated layers in the vfp base application. On the HW available then it was workable, but the vfp front end was clearly more snappy than the JAVA one talking to the biz layer of a COM exe, but that was also partly due to the fact that the Java GUI was building itself dynamically from config files - for easier screen changes without programmers by just editing/generating lists. Nothing as sophisticated as XAML, but also conceived well before that approach was known to the public.

Depending on the metapher used you either get better perf from something feeling akin to a _webview running in local net to something 1-3 heartbeats in activity phase (pulse 130+) slower than pure vfp.

regds

thomas

>To try using QT as a GUI for foxpro
>Thanks,
>Steve
>
>>Hi Steve,
>>
>>what is it you want to do with QT?
>>
>>Hank
>>
>>>Hi: Does anyone have experience using the QT GUI (http://www.qt.io/) with foxpro? With python scripts, for instance, one taps into QT or pyQT like this:
>>>
>>>
>>>import sys, os, time
>>>from PyQt4 import QtGui, QtCore
>>>
>>>
>>>Is it possible to do something like this in foxpro? I am used to using createobject to get to another program such as excel or word, but I can't figure out if creatobject exists with QT, or if there are some steps to do and then be able to do a createobject with QT?
>>>
>>>Thanks,
>>>Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform