Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View: Trajectory number #167

Open
hmoenck opened this issue May 29, 2018 · 0 comments
Open

View: Trajectory number #167

hmoenck opened this issue May 29, 2018 · 0 comments
Assignees

Comments

@hmoenck
Copy link
Contributor

hmoenck commented May 29, 2018

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));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants