Improved detection of QPC. Added icon for main windows (GUI).