Solved Add TreeWidget item from another dialog
Hello everyone and merry christmas!
I have a dialog with a QLineEdit.
And i have a Mainwindow with a QTreeWidget
So, when i clicked OK in the dialog, then in the QTreeWidget in the Mainwindow should added an item, and the item contains the text from the QLineEdit in the dialog.
But i don't have any idea, how to pass these data...
I hope, someone can help me,
mrjj Lifetime Qt Champion last edited by
merry christmas to you too.
You can define a new signal in dialog
and in mainwindow hook this new signal up to up to a slot.
and in slot simply add the item.