Results 1 to 2 of 2

Thread: How to increase font size in arm target

  1. #1
    Join Date
    Jul 2009
    Posts
    49
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Smile How to increase font size in arm target

    Hi all,

    I have designed my application using qt-4.4.3 and deployed to arm9 board.

    But the font size is very small in the target how to increase its size.

    Any help or suggestions

    Thanks & Regards,
    Soumya

  2. #2
    Join Date
    Jul 2008
    Posts
    139
    Thanks
    9
    Thanked 18 Times in 15 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to increase font size in arm target

    Hi,
    Your app uses a default font. You can change that font and it's property, somewhere in main.cpp before the program starts do this. Where XX is the font size.
    I imagine you may be able to change it from the command line also.

    Qt Code:
    1. QApplication app(argc,argv, QApplication::GuiServer);
    2. QFont sysFont(app.font());
    3. sysFont.font().setPointSize(XX);
    4. app.setFont(systemFont);
    5.  
    6. OR to retrieve a pointer to the application
    7.  
    8. QFont systemFont(qApp->font())
    9. systemFont.setPointSize(XX);
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Font size in QGraphicsTextItem
    By rippa in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2008, 19:11
  2. Font size of a spinbox
    By SailinShoes in forum Qt Programming
    Replies: 6
    Last Post: 5th May 2008, 14:29
  3. Font size calculation when painting in a QImage
    By Ishark in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2007, 22:22
  4. Replies: 3
    Last Post: 30th January 2007, 07:35
  5. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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.