I want to send a signal in a slot.The code like:
void MainQtWidget::GetTextMsg(){
*val = MainTextEdit->toPlainText();//get QLineEdit text
emit this->FromQtToCoreSignal(&val);
}GetTextMsg() is a slot,about this code:
MainTextEdit = new QTextEdit("Waiting for enter!");
connect(MainSureButton, SIGNAL(clicked()), this, SLOT(GetTextMsg()));
It runs' problem:
The program has unexpectedly finished.
debug problem:
The inferior stopped because it received a signal from the Operating System.
Signal name :
SIGSEGV
Signal meaning :
Segmentation fault
How can I do? Could you tell me what mistake I have make?
Thanks very much!
Bookmarks