void LCDRange::resizeEvent( QResizeEvent * ) { sBar->setGeometry( 0, height() - 16, width(), 16 ); lcd->resize( width(), sBar->y() - 5 ); }