Qt4 QWidget version in development
Refactored