-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
The trajectory numbers position / color / size / transparency can't yet be adjusted in the GUI. Right now, only transparency is possible and this is connected to the trackpoints transparency.
Something like this:
QFont font = painter->font();
/* twice the size than the current font size */
font.setPointSize(font.pointSize() * 3);
/* set the modified font to the painter */
painter->setFont(font);
QPen penHText(QColor("#00ff00"));
painter->setPen(penHText);
QRectF r = this->boundingRect();
r.moveLeft(10);
painter->drawText(r, Qt::AlignCenter, QString::number(m_id));