QtSharp
QtSharp copied to clipboard
Unable to use QTreeWidget
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.
up, I got the problem too
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.