QAccelerometer QML communication with ADXL346

i have an embedded linux running Debian on the iMx6. The Qt version is 5.5.1 open source.
I want to use an acceleromter to give display roll information.
All of this is already implemented on QAccelerometer, but how do i add my I2C driver so that Qt "finds" the acceleromter.
Do i have to load it as "module" on the kernel?