Make the code compile with both Qt4 and Qt5.
Write Qt settings to lxqt.conf instead of the deprecated Trolltech.conf in Qt5.
Show cursors by using raw xcb calls since Qt5 does not support creating QCursor based on native cursor handle.