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

Qt Code:
  1. QLabel *lab = new QLabel();
  2. lab->setPixmap(QPixmap::fromImage(img));
  3. lab->setMinimumSize(img.size());
  4. m_ui.gridLayout->addWidget(lab, m_currentRow, m_currentColumn);
  5. }
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