Hello,
i used QtDesigner for placing a QScrollArea into a QWidget and placing a QGridLayout into this QScrollArea. Now i add QLabels into the GridLayout
lab
->setPixmap
(QPixmap::fromImage(img
));
lab->setMinimumSize(img.size());
m_ui.gridLayout->addWidget(lab, m_currentRow, m_currentColumn);
}
QLabel *lab = new QLabel();
lab->setPixmap(QPixmap::fromImage(img));
lab->setMinimumSize(img.size());
m_ui.gridLayout->addWidget(lab, m_currentRow, m_currentColumn);
}
To copy to clipboard, switch view to plain text mode
The Labels are added and displayed correctly, but if i add more labels than my Widget can display, the scrollbars (ScrollbarAlwaysOn) are still grayed out.
What has to be done?
Thanks in advance
Garg
Bookmarks