Qt 6.11 is out! See what's new in the release
blog
Open a character device
General and Desktop
7
Posts
2
Posters
3.7k
Views
1
Watching
-
Hai, We created character device in dev/ folder.
from normal c application to open device in this folder we use open() system call, read the data from that using read().
my question is from Qt how can I open the device and read the data from that device?
I tired using QFile, but it is not opened.
can any one give some example regarding this
Thanks in advance -
@
QFile *file = new QFile("/dev/fp");
if(!file->open(QFile::ReadWrite))
{
qDebug()<<"file not opened\n";
}
@this is tested on desktop, but my application is in embedded development board
-
its not readable.
-
we have already root privileges in dev folder. but when i open from qt its not opened that file any thing different?