Communication b/w Dialog and MainWindow
-
Hey I was making a text editor! wanted add a find option in it! so i created a new dialog which pops up when someone clicks on find action! this dialog has a QlineEdit which takes in the word to searched! now i want this lineEdit text to update a QString which is declared in MainWindow.h!
but it doesn't work gives some token related error! is there an other way to do this?
~thanks! :) -
Hi,
What's the exact error ?
You can also use "QInputDialog::getText":http://qt-project.org/doc/qt-4.8/qinputdialog.html#getText