I need a way to get data from outside of Custom QTextEdit Context Menu to generate a file..
Unsolved
General and Desktop
-
@batista said in I need a way to get data from outside of Custom QTextEdit Context Menu to generate a file..:
I need to receive data from main by sending a command over a signal emitted from the context menu.
Define and emit a signal in MyTextEdit,
and connect your MainWindow to receive that signal. -
@mpergand I mean... I send a signal command to main with some data... And then in main, I get the data in my main form and send it back by emit to my "mytextedit", in a string. The data arrives empty. Although not empty. Because if I use a pushbutton to print the data on the console, it is displayed through qDebug() <<;.
I'm only doing this because I haven't found any other alternative to access this data outside of the context menu..