Results 1 to 3 of 3

Thread: QFont problem.

  1. #1
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default QFont problem.

    hi, every body
    I have a small problem. I want to change font size of my form related to the compiler. If I use x86 , i want it to set to 28 font size, if i use arm compiler for qtopia, i want it to set to 32 font size.
    is it possible ?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFont problem.

    I dont have any idea about compiling on arm compilers, but can suggest the following -

    1) Create a macro based on compiler and use the font as desired

    2) If u wanna do it programatically, try some command which runs either on x86 or arm. In that way u can guess what type compiler it is and use it to set font.

    Hope this helps

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFont problem.

    Q_WS_QWS macro is defined on Qt for Embedded Linux.
    J-P Nurmi

Similar Threads

  1. problem with paint and erase in frame
    By M.A.M in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 20:17
  2. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  3. Simple Problem with QFont (point size)
    By mtrpoland in forum Newbie
    Replies: 4
    Last Post: 31st December 2007, 16:49
  4. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.