Results 1 to 2 of 2

Thread: setFont doesn't work

  1. #1
    Join Date
    Jul 2008
    Location
    NanJing China
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy setFont doesn't work

    In order to support chinese translation, I use "wenquanyi:*:*" as font parameter when configure. The function "setFont" in code seems not working, and even if I change the font size in qpe.conf. But it actually works correct when I use the default font "dejavu_sans_condensed:*:*". Why?

  2. #2
    Join Date
    Jul 2008
    Location
    NanJing China
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Talking Re: setFont doesn't work

    I find the reson. That's because the font "wenquanyi" is specified in pixels. So it should use setPixelSize() instead of setPointSize().

Similar Threads

  1. Qt4 : QPainter::setRedirected doesn't work
    By Ankitha Varsha in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2008, 17:52
  2. Copy / Paste doesn't work with LineEdit
    By ia32 in forum Qt Tools
    Replies: 2
    Last Post: 5th May 2008, 21:44
  3. QActions don't work with menubar hidden
    By Pepe in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2007, 01:04
  4. Change work area OS
    By pakulo in forum Qt Programming
    Replies: 15
    Last Post: 15th May 2007, 07:20

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.