cpsmusic
13th June 2011, 13:27
Hi,
I'm currently developing a custom widget (a meter that displays realtime input). I need to draw a scale on the meter. So far I've used the following:
QFont font("Times", 8, QFont::Normal, true);
setFont(font);
for(unsigned int i = 0; i < 11; ++i) {
painter.drawLine(15, 20*i, 19, 20*i);
painter.drawText(3, 20*i + 3, QString::number(i*6));
}
I'm not happy with the font - how can I work out what fonts are available?
I'm currently developing a custom widget (a meter that displays realtime input). I need to draw a scale on the meter. So far I've used the following:
QFont font("Times", 8, QFont::Normal, true);
setFont(font);
for(unsigned int i = 0; i < 11; ++i) {
painter.drawLine(15, 20*i, 19, 20*i);
painter.drawText(3, 20*i + 3, QString::number(i*6));
}
I'm not happy with the font - how can I work out what fonts are available?