Make Device abstract
More QT fixes