Results 1 to 5 of 5

Thread: Font size for QwtPlot title?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Font size for QwtPlot title?

    Hi,

    i'm testing this code with the "friedberg" example and latest Qwt version:

    in plot.cpp after line 70 add a qDebug() line

    Qt Code:
    1. setTitle( "Temperature of Friedberg/Germany" );
    2. qDebug() << title().font(); // NEW
    To copy to clipboard, switch view to plain text mode 

    The output is:

    QFont( "MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0" )

    But the font size of the plot title is never 8.25.

    Here
    https://msdn.microsoft.com/de-de/lib...(v=vs.85).aspx
    you can find, that "MS Shell Dlg 2 simply uses the Tahoma font regardless of language.".

    I rebuild the title in Word Pad and the font size must be 14.

    Fontsize.jpg

    What's is going wrong here? Why is the size wrong of the returned font by title().font() ? Guess it is a bug.

    Thx
    Last edited by HappyCoder; 20th January 2016 at 16:27.

Similar Threads

  1. Replies: 2
    Last Post: 4th December 2014, 12:23
  2. qwtPlot legend font size
    By Narciso in forum Qt Programming
    Replies: 2
    Last Post: 27th April 2012, 09:51
  3. Replies: 1
    Last Post: 30th March 2012, 16:46
  4. Title with two different font sizes
    By aloehr in forum Qwt
    Replies: 0
    Last Post: 9th September 2011, 12:25
  5. Font Height and width based on font size
    By Ghufran in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2010, 08:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.