Hi all,
Using Qt designer i created a Scroll area, and in run, dynamically adding widgets inside it...
But unfortunately, widgets are added but scroll bar not coming...Because of this only few widgets are visible....
I searched in forum, many r unresolved problems...
Please help me to sort out my problem
this is the code....
void MainWindow::on_pushButton_clicked()
{
label->setText("hello");
ui->verticalLayout->addWidget(label,10);
}
void MainWindow::on_pushButton_clicked()
{
QLabel *label =new QLabel;
label->setText("hello");
ui->verticalLayout->addWidget(label,10);
}
To copy to clipboard, switch view to plain text mode
i set scroll bar policy as always on....
Bookmarks