Linux technical support - [email protected]


Qwt 6 set font title size

If you need to change font title size, you should change source code in qwt library:

My directory is – /usr/src/qwt-6.1/src

# nano qwt_plot.cpp 

In 6.1 version it is line number 151:

d_data->titleLabel->setFont( QFont( fontInfo().family(), 14, QFont::Bold ) );

By default font size equal – 14, so you can change it, futher:

# make && make install

and “Rebuild All” your project.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>