@anda_skoa I didn't mean about loops
int no_of labels = ui->slider->value();
for(int i=1; i<=no_of_labels; i++)
{
// what I have to do here??
}
Suppose if no_of_labels is 5, i have to create 5 labels dynamically label1, label2, label3, label4 & label5 and display images in each label. how to do this?
I have created 8 labels statically and displaying the images according to the no_of_labels. Suppose if the no_of_label is 5, 5 labels are shown with corresponding images, the remaining three labels are left free. I dont want that. so I decided to create labels dynamically depending on the slider value.
Jakr13




Reply With Quote

Bookmarks