Skip to content

View: Trajectory number #167

@hmoenck

Description

@hmoenck

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));

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions