Hi Friends,
I have a function that does some calculations(find_other_comets.cpp) and want to update a QTextBrowser widget (in mainwindow.cpp) with text generated in that function. I press a button and my calculation is called, at some times i want to output the progress/data to the Textbrowser. If i understand right i cannot acces the main window from the outside ( find_other_comets.cpp)?! I tried using this in the external cpp:
Qt Code:
ui->textBrowser->setText(str);To copy to clipboard, switch view to plain text mode
My question is what is the right approch to pass Strings to the TextBrowser in mainwindow? if additional code or information is needed im happy to supply it!
Bookmarks