Results 1 to 2 of 2

Thread: Default value for QFont

  1. #1
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Default value for QFont

    Hi..

    I have created a Q3CanvasText object and int the constructor passing it the text,font and the canvas object.. Now i would like to know that what is the default value of QFont.. ie of i do not specify the Font type and its size then what value it would take as default or do i have to explicitly define one..
    the reason why i would like to know is because i have used a Q3CanvasText object and have set font size using the setFont function which is [HTML]QFont font("Times",8,QFont::Normal);[/HTML]
    this is throwing assert when i am executing it on linux saying that the setPointSize cannot be less than 0 whereas it is much greater than that..
    what do i do for it...

    Thanking you...

    with regards,
    Kapil
    All you have to decide is what to do with the time that is given to you

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Default value for QFont

    the default font depends on the window system. It can vary depending on both the window system version and the locale.

    Can we see your code?

Similar Threads

  1. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 09:33
  2. How to open a document with the default application?
    By SkripT in forum Qt Programming
    Replies: 7
    Last Post: 30th April 2006, 08:47
  3. Opening the default mail client
    By munna in forum Newbie
    Replies: 5
    Last Post: 3rd April 2006, 13:58
  4. default contextMenu
    By Naveen in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2006, 14:44
  5. What default constructor?
    By bitChanger in forum General Programming
    Replies: 5
    Last Post: 15th February 2006, 19:50

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.