So It should use the QT functionalities to perform this. Any help to find the bus type.
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 -

NO WAY TO FIND THE BUS TYPE IN QT, USE PLATFORM SPECIFIC API TO DO THIS

If i use windows.h. It will not run on the linux machine.
Correct. This means that you need to use something like:
Qt Code:
  1. #ifdef _WIN_32_
  2. #include "my_bus_type_win.h"
  3. #else
  4. #include "my_bus_type_lin.h"
  5. #endif
To copy to clipboard, switch view to plain text mode 
or something similiar to distinguish between different operating systems you want to support.
Again - you need to implement this on your own. No Qt.