Hi to all,
the following code will explain the problem better than words:
Qt Code:
QFont font; font.setPointSize(14); QInputDialog tSelectFourMonthPeriod; tSelectFourMonthPeriod.setFont(font); tSelectFourMonthPeriod.setWindowTitle(tr("Print Options.")); tSelectFourMonthPeriod.setLabelText(tr("Selection:")); tSelectFourMonthPeriod.setComboBoxItems(prepareFourMonthPerYearPeriod()); int ret = tSelectFourMonthPeriod.exec(); qDebug() << "Selection:" << tSelectFourMonthPeriod.textValue();To copy to clipboard, switch view to plain text mode
and it runs nice but the QListView's font is NOT what I set, it's the default!!!
How can I set the same for the QListView?
Thanks in advance.
P.S.: It happens on Windows 7, Qt 4.8.3 Qt Creator 2.5.2.
Bookmarks