QtSharp icon indicating copy to clipboard operation
QtSharp copied to clipboard

Unable to use QTreeWidget

Open tezine opened this issue 7 years ago • 2 comments

Hi, It seems QTreeWidgetItem is not working. The following code throws an exception: "System.MissingMethodException: Constructor of type 'QtWidgets.QTreeWidgetItem' not found".

var treeWidget = new QTreeWidget(); treeWidget.ColumnCount = 1; treeWidget.ItemClicked += (widgetItem, i) => Debug.WriteLine("hi"); QTreeWidgetItem item = new QTreeWidgetItem(); item.SetText(0, "Main"); treeWidget.AddTopLevelItem(item);

The problems seems to be related to the line treeWidget.ItemClicked. The event ItemSelectionChanged works perfectly.

tezine avatar May 16 '17 16:05 tezine

up, I got the problem too

hezhaowei avatar Jun 14 '17 12:06 hezhaowei

Hello @tezine @hezhaowei I've been extremely busy with support for templates, I'll let you know as soon as I can check this one out.

ddobrev avatar Jun 14 '17 13:06 ddobrev