C++ (Qt)progressBar = ...;QWidget * emptyWidget = new QWidget; progressBar->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );emptyWidget->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred ); QWidget * widget = new QWidget;QHBoxLayout * layout = new QHBoxLayout( widget );layout->addWidget( progressBar );layout->addWidget( emptyWidget ); table->setCellWidget( row, column, widget );