SIGSEGV - segmentation fault
-
This post is deleted!
-
Hi and welcome to devnet,
From the looks of that line nothing. Are you sure it's this one ? is serial valid ?
-
There are no compiling problems, this is how I declared in header's sheet: "QSerialPort *serial;"
And I've already used it in other application, I don't what I did wrong this time.
Should I post the entire code? -
You won't have compiler error with the old signal slot syntax. You can use the new since you are using Qt 5.
Are you initializing serial properly ?
-
Thanks for the help SGaist, it was missing "serial = new QSerialPort(this);" inside the constructor block.
-
You're welcome !
Since you have it working now, please update the thread title prepending [solved] so other forums users may know a solution has been found :)
1/6