Could it be possible to make Qt ready for network transparency ?
Imagine you would add a virtual commandline interpreter to QWidget.
class QWidget : public QObject
{
//<snip>
public slots:
virtual void commandlineInterpreter(QString *command);
//<snip>
public:
signals:
virtual void commandlineResponse(QString *response);
//<snip>
};
Now you could tell every widget what it should do.
Examples:
command = setGeometry(10,10,200,100)
response = ok>
command = setToolTip("hello world")
response = ok>
command = hide()
response = ok>
command = isVisible()
response = true>
command = anUnimplementedFunction("nonsens")
command = not implemented>
...
In our project
http://pvbrowser.org we do something similar but
we can't change QWidget.
Instead we have implemented a global commandline interpreter and
have to code something like the above for each widget by hand.
Of course it would be much easier with an commandline interpreter like the above.
What do you think about such a feature ?
Wouldn't it be great ?