We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I add a QListWidgetItem to a QListWidget, it's initially visible in the list, but soon disappears.
listWidget := ui.NewListWidget() item := ui.NewListWidgetItem() item.SetText("some text") listWidget.AddItem(item)
It seems that it's garbage collected, and that results in it disappearing from the list.
If I deliberately make sure that a reference to the item is kept, it doesn't disappear.
time.AfterFunc(time.Hour*10000, func() { fmt.Println(item) })
Is this expected behaviour? If it is, what's the recommended way of dealing with it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I add a QListWidgetItem to a QListWidget, it's initially visible in the list, but soon disappears.
It seems that it's garbage collected, and that results in it disappearing from the list.
If I deliberately make sure that a reference to the item is kept, it doesn't disappear.
Is this expected behaviour? If it is, what's the recommended way of dealing with it?
The text was updated successfully, but these errors were encountered: