Sir,
I modified the code. Now i have onely three lines in my code:
class ConnectWidget
: public QWidget{
public:
ConnectWidget
( QWidget *parent
=0,
const char *name
=0 );
private:
QextSerialPort *m_note;
};
ConnectWidget
::ConnectWidget( QWidget *parent,
const char *name
) : QWidget( parent, name
),m_note
(NULL) {
setMinimumSize(640,480 );
m_note= new QextSerialPort("/dev/ttyS0");
printf("\n serialport openned \n");
}
class ConnectWidget : public QWidget
{
public:
ConnectWidget( QWidget *parent=0, const char *name=0 );
private:
QextSerialPort *m_note;
};
ConnectWidget::ConnectWidget( QWidget *parent, const char *name )
: QWidget( parent, name),m_note(NULL)
{
setMinimumSize(640,480 );
m_note= new QextSerialPort("/dev/ttyS0");
printf("\n serialport openned \n");
}
To copy to clipboard, switch view to plain text mode
I have not added the settings of the serial port.As i found that starting from this line the error pops up. the following is the error message:
suse:/home/qtprograms/roughserial # ./roughserial -qws
Connected to VFB server: 640 x 480 x 32
Segmentation fault
suse:/home/qtprograms/roughserial #
Bookmarks