How to open a node

Sushant
Hello,
In the Qt app How to open a /dev/XXX node in read or write mode