PDA

View Full Version : QtControlHost



QPlace
6th August 2007, 04:46
Documentation for QtControlHost (part of QtSolutions) states:

If you need to call methods or modify some properties of the hosted control, you must operate directly on the hosted control. Use QtControlHost::control() to get a reference to the hosted control.

method control() returns System::Windows::Forms::Control;

Documentation also suggested to use QtControlHost as:
setControlAssembly("system.windows.forms.dll");
setControlType("System.Windows.Forms.MonthCalendar");

Suppose there is an assembly A.B.C in abc.dll, so above calls will look like:
setControlAssembly("abc.dll");
setControlType("A.B.C");

But how to get the pointer to the "C" in order to call its methods as documentation suggested?
A::B::C ^ control; cannot be even declared, and rightly so. Any suggestions?

wysota
16th August 2007, 16:23
Can't you just call control() on the created object?