Quote Originally Posted by pssss View Post
Then a child widget of MainWindow of class Widget has resizeEvent() reimplemented:


Qt Code:
  1. void Widget::resizeEvent(QResizeEvent *event)
  2. {
  3. nameLabel->setFixedWidth(width()/4);
  4. familyNameLabel->setFixedWidth(width()/4);
  5.  
  6. QWidget::resizeEvent(event);
  7.  
  8. }
To copy to clipboard, switch view to plain text mode 
Why don't you just use layouts? Then you can reimplement resizeEvent() and simply change the font size of your top-level widget. Since the font size is inherited by child widgets, they will adjust and since a layout manages them, their sizes will adjust. It seems to me you are trying to reach to your right ear with your left hand