Add TreeWidget item from another dialog
Solved
General and Desktop
-
Hello everyone and merry christmas!
I have a dialog with a QLineEdit.
And i have a Mainwindow with a QTreeWidgetSo, 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,Thanks,
Henrik -
Hi
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.
Sample:
code:
https://www.dropbox.com/s/hf944ilyk12swvi/ex2.zip?dl=0 -
Thanks, mrjj!
That's it!Merry christmas