As you can find in previous answers, there is no way to do that using current version of Qt. You need to use platform-specific methods, which means -So It should use the QT functionalities to perform this. Any help to find the bus type.
NO WAY TO FIND THE BUS TYPE IN QT, USE PLATFORM SPECIFIC API TO DO THIS
Correct. This means that you need to use something like:If i use windows.h. It will not run on the linux machine.
or something similiar to distinguish between different operating systems you want to support.Qt Code:
#ifdef _WIN_32_ #include "my_bus_type_win.h" #else #include "my_bus_type_lin.h" #endifTo copy to clipboard, switch view to plain text mode
Again - you need to implement this on your own. No Qt.
Bookmarks