How to use IOCTL calls with QT?
Hi ,
I Wanna open a I2C device in my Qt program using IOCTL Open() Function. But this open() call gives me error. It tries to look for the function in the class.
"error: no matching function for call to ‘MainMenu::open(const char [11], int)’
/usr/local/Trolltech/Qt-4.5.0/include/QtGui/qdialog.h:99: note: candidates are: void QDialog::open()"
Is there any specific way of accesing devices in qt and getting a file descriptor for them. please advise me
Re: How to use IOCTL calls with QT?
this has nothing to do with Qt.
qualify your open call:
Code:
::open(...)
std::open(...)
depending on what headers you include.
Re: How to use IOCTL calls with QT?
Quote:
Originally Posted by
caduel
this has nothing to do with Qt.
qualify your open call:
Code:
::open(...)
std::open(...)
depending on what headers you include.
can you help me call ‘ioctl’ on QT:
Quote:
../Bto/main.cpp: In function ‘int main()’:
../Bto/main.cpp:26: error: ‘ioctl’ was not declared in this scope
../Bto/main.cpp:32: error: ‘ioctl’ was not declared in this scope
Re: How to use IOCTL calls with QT?
Again, nothing to do with Qt.
Which headers are you including ? Do you include ioctl.h ?