Qt: improve preferences dialog visual
Qt: fix recently introduced bugs
Qt: improve config
Qt: fix UI bugs
Qt: format Python
Qt: PEP-8