Results 1 to 2 of 2

Thread: QtControlHost

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QtControlHost

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtControlHost

    Can't you just call control() on the created object?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.