biotracker_core icon indicating copy to clipboard operation
biotracker_core copied to clipboard

View: Trajectory number

Open hmoenck opened this issue 7 years ago • 0 comments

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

hmoenck avatar May 29 '18 10:05 hmoenck