At last. Got window resize working using QScrollArea