Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use QTreeWidget #57

Open
tezine opened this issue May 16, 2017 · 3 comments
Open

Unable to use QTreeWidget #57

tezine opened this issue May 16, 2017 · 3 comments

Comments

@tezine
Copy link

tezine commented May 16, 2017

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.

@hezhaowei
Copy link

up, I got the problem too

@ddobrev
Copy link
Owner

ddobrev commented Jun 14, 2017

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.

@wolfgangmauer
Copy link

Hi,
i would like to try QtSharp. Is this still a problem?
Any VS2022 support? ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants