PDA

View Full Version : QCalendarWidget - height rows



pease
12th April 2010, 18:53
hi
i am trying to set row height in QCalendarWidget
example. i want to have 3rd week of month size bigger than other. any ideas ... how can it be done ?

pease
15th April 2010, 18:31
i try this code:




QCalendarWidgetMy(QWidget *parent=0) : QCalendarWidget (parent)
{

view2 = qFindChild<QTableView *>(this);

}

mycalendar = new QCalendarWidgetMy(this);
mycalendar->view2->resizeColumnsToContents();

mycalendar->view2->verticalHeader()->setDefaultSectionSize(51);
//mycalendar->view2->setShowGrid(true); // works


mycalendar->view2->setRowHeight ( 2, 51 );





but this not working