Despite explicit discouragement from jcw, Bill Saunder remarkably used Critcl to script a successful model Qt application with a functional button. That's pure-Tcl (once one assumes Critcl). Impressive! http://groups.google.de/groups?th=b2a1ba41312c9ae5
CL collects more Qt references at http://phaseit.net/claird/comp.windows.misc/Qt.html .
TS - It seems that a Qt binding already exists, but it's not yet available... http://groups.google.de/groups?selm=5e97e053.0305200357.2f4ac182%40posting.google.com
Dmitry Mironov (dmmiet(AT)hotmail.com): > ... regarding control of Qt from Tcl - it took > three or so weeks for me to make a complete Tcl toolkit, > allowing to dynamically build Qt GUI from Tcl console, ... > Cross-platform (visit http://www.dmitrymironov.com/projects.htm) > > I am thinking to make it public domain, because it still has > some garbage in it and, as usual, short of time, need to make a living.-More from Mr. Mironov appears at http://www.dmitrymironov.com/qt_tcl_under_gpl.htmhttp://sourceforge.net/projects/tcl-qt Use [info commands Q*] to list the new ones.An additional qt binding (relatively recent, November 2005): http://sourceforge.net/projects/qtcl/
Tq [3] is a remarkable-looking commercial product which bridges the Qt and Tk worlds in at least a couple of distinct ways.
Houssem BDIOUI - I made a Qt widget (QTextEdit-based) that emulates a Tcl console => QTclConsole Any one interested can email at : houssem dot bdioui at gmail dot comIt has many features : basically the ones of QTextEdit + redirection of stdout/stderr + colorized result (red, blue) + customization of the prompt + support of any Tcl command (custom ones defined through Tcl_Interp as well) + history + ...I'm also thinking of providing a whole QTcl package.Come on! Noone interested?The whole project is now under: http://sourceforge.net/projects/qconsoleIn fact, the console is now reeingeneered to support any scripted language (by inheritance). Tcl is just a specialization.
LV It sounds like it would be useful to have available. However, I'm using a GNOME desktop, and am not in a situation where experimenting with Qt is possible. If my situation changes so that I have more disgression, then I'd be interested in exploring the option.
CAU I own a Zaurus SL-5500, have done for a while. The Z runs a version of Qt under which all applications run. It really would be a boon to write apps with a GUI in Tcl. As it is, Tk is not supported on the Z and I haven't come across a way of using Qt direct from Tcl. Why has this been possible with Python but not with Tcl?Anyone fancy the challenge?
Houssem BDIOUI - A new QConsole version (v1.1) has been released under http://sourceforge.net/projects/qconsoleIt has the following Changes:- commandsManager class:
* The getInstance() method can take an already created Tcl_Interp parameter
* removed the registerCommand() method
* New unregisterFunction()
* New set of registerVariable() methods to register C++ vars as Tcl ones
* Added support for "help messages" for functions and methods (accessible
through the new 'help' command)- QConsole: * Fixed a bug previously allowing inserting text outside of the
edition zone: Bug that can happen when holding the mouse button
pressed outside the edition zone and typing something
* Possibility to select words outside of the edition zone using double clicks
* Overridden paste() removed : handled by the previous bug fix
* Disabled the popup menu
* New public execCommand(QString) method that executes a Tcl command
and dislpays back its result in the console
* New saveScript() method that saves succeeded commands to a file
* New completeCommand() method that gives suggestions to complete the current command- QtclConsole:* Redesigned into a singleton pattern * Implemented completeCommand() based on [ info commands ] * New Tcl saveScript command- New TclCallBack class that allows registring/unregistring C++ methods as Tcl Callbacks:
* Used for SetPrompt() and ShowHistory() in QtclConsoleFeedbacks are welcome on : houssem dot bdioui at gmail dot com :)
Category GUI
