QPlace
6th August 2007, 03: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?
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?