[Mono-list] Qtcsharp / Windows.Forms

Chris Hynes lists-chrish@assistedsolutions.com
Wed, 27 Mar 2002 18:44:08 -0500


>>For instance, QComboBox would map onto a WinComboBox or whatever the
Windows.Forms combo box control is called. Then would it be possible to
map standard Window.Forms methods onto the Qt equivalents in a code
generator? QComboBox.insertItem(String item, int index) must have an
equivalent Windows method with a different name. So you could generate a
'WinComboBox.myInsertMethod()' which would call
QComboBox.insertItem().<<
This really won't work. Windows.Forms, at least from what I've seen of
it, is rather different then Qt. For example, Windows comboboxes inherit
from System.Windows.Forms.ListControl where the real work is done. They
also don't have any insertItem like methods. Instead, they have an Items
collection. As far as I know, some custom coding is going to be required
to map the objects. You might be able to create a script that will
create an outline of what needs to be done, but you really need to do
some custom coding.

Chris