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
I'm trying to add more strings in QtCore.QStringList but constructor only allows one string as parameter.
We need this implementation:
QtCore.QStringList( IEnumerable<string> stringList); // and then use it like // new QtCore.QStringList( new string[] { "text1", "text2"} );
Problem is when I try to generate ie. QTreeWidget:
var tree = new QTreeWidget(); var headers = new QtCore.QStringList( new string[] { "text1", "text2" } ); tree.ColumnCount = 2; tree.SetHeaderLabels( headers );
This is example I found for Qt
QStringList headerLabels; headerLabels.push_back(tr("text1")); headerLabels.push_back(tr("text2")); headerLabels.push_back(tr("text3")); headerLabels.push_back(tr("textN")); treeWidget->setColumnCount(headerLabels.count()); treeWidget->setHeaderLabels(headerLabels);
Current workaround
var tree = new QTreeWidget(); tree.ColumnCount = 2; var name = new QtCore.QStringList( "name" ); tree.SetHeaderLabels( name ); tree.HeaderItem.SetText( 1, "description" );
The text was updated successfully, but these errors were encountered:
This constructor requires support for templates which is not complete yet. I'll let you know.
Sorry, something went wrong.
No branches or pull requests
I'm trying to add more strings in QtCore.QStringList but constructor only allows one string as parameter.
We need this implementation:
Problem is when I try to generate ie. QTreeWidget:
This is example I found for Qt
Current workaround
The text was updated successfully, but these errors were encountered: