/// Создание полосы загрузки файлов
void TLV::createProgressBar()
{
dockProgress = new QDockWidget(this);
dockProgress -> setFeatures(QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetMovable);
dockProgress -> setAllowedAreas(Qt::BottomDockWidgetArea);
dockProgress -> setGeometry(x(), height() - 40, width() - 20, 80);
h_layout = new QHBoxLayout(dockWidget);
h_layout -> setSpacing(6);
h_layout -> setMargin(11);
h_layout -> setContentsMargins(0, 0, 0, 0);
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(dockProgress -> sizePolicy().hasHeightForWidth());
progressBar = new QProgressBar(dockProgress);
progressBar -> setSizePolicy(sizePolicy);
progressBar -> setBaseSize(QSize(dockProgress -> width(), 23));
h_layout -> addWidget(progressBar);
//progressBar -> setGeometry(5, 30, dockProgress -> width(), 23);
}
сможете помочь?