Thanks again. I used the mapping and I did it.
But this success led me to another different problem. I will continue to this thread.
Part of configdilog.h
private:
QLineEdit *ebmFloodImage,
*ebmFloodImage20,
*ebmCrystalEnergies,
*ebmIMat,
*ebmJMat;
QPushButton *psbFloodImage,
*psbFloodImage20,
*psbCrystalEnergies,
*psbIMat,
*psbJMat;
private slots:
private:
QLineEdit *ebmFloodImage,*ebmFloodImage20, *ebmCrystalEnergies, *ebmIMat, *ebmJMat;
QPushButton *psbFloodImage,*psbFloodImage20, *psbCrystalEnergies, *psbIMat, *psbJMat;
QString fl, fl20, ec, im, jm;
QSignalMapper *sm;
private slots:
void selectFile(const QString &);
To copy to clipboard, switch view to plain text mode
And at the constructor I implement everything you see here. I connect the pushbuttons with the slot selectFile. But when I go to the slot and select a new file, I cannot "print" the new name to the lineEdits (from the slot routine, at the constructor I can set the Text). The following runtime error appears.
Program received signal SIGSEGV, Segmentation fault.
0x00007f7a0331b6f0 in
QLineEdit::setText () from
/usr
/lib
/libQtGui.
so.4
Program received signal SIGSEGV, Segmentation fault.
0x00007f7a0331b6f0 in QLineEdit::setText () from /usr/lib/libQtGui.so.4
To copy to clipboard, switch view to plain text mode
Do have any idea where this comes from??
Bookmarks