[Qt-interest] runtime compilation impossible in Qt???
Prashanth Udupa
prashanthudupa at yahoo.com
Mon Aug 17 06:30:55 CEST 2009
Hi,
If you have defined the widget in Qt Designer, then you can load using QFormBuilder.
If you have a hand written (or custom generated) UserDefinedWidget.h and .cpp for a user defined widget class then you will need to have a forked process compile the widget into a plugin of somekind and then load the plugin into your app.
Thanks,
Prashanth
________________________________
From: "ri at eeda.denso.co.jp" <ri at eeda.denso.co.jp>
To: qt-interest at trolltech.com
Sent: Monday, August 17, 2009 9:37:43 AM
Subject: Re: [Qt-interest] runtime compilation impossible in Qt???
Sorry I forgot to say that when UserDefinedWidget is
created, its parentWidget
must be the QMainWindow. (If not then it would be much
easier..)
________________________________
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of ri at eeda.denso.co.jp
Sent: Monday, August 17, 2009 12:01
PM
To: qt-interest at trolltech.com
Subject: [Qt-interest]
runtime compilation impossible in Qt???
Dear List
I was wondering whether it's possible in
Qt
I am running an applicaiton , say QApplicaion in which
it shows a
QMainWindow. In the QMainWindow I allow the user
to define a widget,
say UserDefinedWidget, and generate the source files for
it. In this example
they are UserDefinedWidget.cpp and UserDefinedWidget.h.
Now the problem is : How can I create a
UserDefinedWidget ,show it in the QMainWindow
while QApplication is still
running??
It looks like a runtime compilation issue and someone
told me that C++ doesn't support that
but Python does. Is that true? Is there anything else I
can do?
I need your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090816/9aa4afae/attachment.html
More information about the Qt-interest-old
mailing list