Hi, guys.
Need some help...
The task is following: I need to place into QGroupBox some number of widgets - for example, QLabel. After filling this QGroupBox scrollbar must appear.
Code is next:
Qt Code:
groupBox->setLayout(extGroupLayout); extGroupLayout->addWidget(scrollArea); scrollArea->setLayout(groupBoxLayout); for(i=0;i<20;i++) { // Let's make our checkboxes... groupBoxLayout->addWidget(IDCheckbox[i]); }To copy to clipboard, switch view to plain text mode
After executing, checkboxes get minimal possible height, ignoring value, set by setMinimalHeight method; last of them are hiding behind the edge of scroll area, but scrolling is still impossible
Where is my problem? Don't say it is in my head
Bookmarks