Hello!
I'm using an example called sreader from QSerialDevice in my project to get some SerialCommunication going with a microcontroller. I've managed to implement the reader with good functionality but when I try to add a send-function I get in trouble.

I'm using the sreader.h-file (almost) as is from the example where a Reader class is defined. When I try to call the write function like so:

bw = MyDevice->write(ba);

I get the information that MyDevice isn't declared in this scope. Fair enough, but when I try Reader::MyDevice it says that Reader is not a class or type.
So how do I do this? Am I barking up the wrong tree or is it just a syntax error?

Thanks a lot!
/Tottish (Very much C++ newbie)