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. Or I need a way to read data from fields outside the context of the menu.
Thanks in advanced...
@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. -
@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. -
@batista said in I need a way to get data from outside of Custom QTextEdit Context Menu to generate a file..:
It doesn't work when MainWindow comes back with the data....
What do you mean by "comes back" ?
@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..
-
@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..