Hi...

currently I'm using this code:

Qt Code:
  1. /* images - on buttons */
  2. close_icon = QIcon(":/close_image");
  3. send_icon = QIcon(":/send_image");
  4. ok_icon = QIcon(":/ok_image");
  5. notok_icon = QIcon(":/notok_image");
  6.  
  7. /* buttons */
  8. send_button = new QPushButton(send_icon, "Send");
  9. send_button->setDisabled(true);
  10. quit_button = new QPushButton(close_icon, "Quit");
  11. attach_button = new QPushButton(ok_icon, "Attach more files");
  12. validate_button = new QPushButton(ok_icon, "Validate");
  13.  
  14. /* buttons layout */
  15. button_layout = new QHBoxLayout();
  16. button_layout->addWidget(send_button);
  17. button_layout->addWidget(quit_button);
  18.  
  19. /* validate layout */
  20. validate_layout = new QHBoxLayout();
  21. validate_layout->addWidget(attach_button);
  22. validate_layout->addWidget(validate_button);
To copy to clipboard, switch view to plain text mode 

but if I resize the widget, the buttons are not resized with the widget (layout)... I want to resize buttons with application...so that they consume the whole space that is available.

Any ideas how to do that...thank you!