Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User pigling's Avatar
    Join Date
    Dec 2009
    Posts
    73
    If I use QPushButton but not QMaemo5ValueButton as latter only provides two text labels, how can I control the text size and color used in pushbutton components? Just as the common manipulation for general Qt text component? Thanks.

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Like you do it for any other widget
    Code:
    application->setStyleSheet("QPushButton { font-size: 12px, color: red }");

  3. #3
    Registered User pigling's Avatar
    Join Date
    Dec 2009
    Posts
    73
    Quote Originally Posted by divanov View Post
    Like you do it for any other widget
    Code:
    application->setStyleSheet("QPushButton { font-size: 12px, color: red }");
    Thanks for your reply.
    It seems that default font style in Fremantle will only fall into "Nokia Sans" catagory but the font size can be modified.

  4. #4
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Yes, the font choice is rather limited.

  5. #5
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You can ship and install fonts with your package.

  6. #6
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    This has been said, but I've never heard anyone claim they've succeeded with doing so on Qt/Symbian.

  7. #7
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    On Maemo that would be rather simple. Cannot say about Symbian.

  8. #8
    Registered User pigling's Avatar
    Join Date
    Dec 2009
    Posts
    73
    Quote Originally Posted by divanov View Post
    You can ship and install fonts with your package.
    So I can customize the font style in my application without affecting system default?

  9. #9
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by pigling View Post
    So I can customize the font style in my application without affecting system default?
    Sure you can.

Similar Threads

  1. how to chage font color depending on back ground skin color
    By srinivasr in forum Symbian User Interface
    Replies: 4
    Last Post: 2012-06-13, 13:09
  2. PLS HELP!! 2323 Sms font size Issue
    By Areidamar in forum Feedback - Nokia Developer Services
    Replies: 1
    Last Post: 2009-11-13, 15:28
  3. S60 default font size and adjusting font for N95
    By miohtama in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2009-07-10, 09:52
  4. Problem in Setting the font color and size in editor!
    By manish.agarw in forum Symbian C++
    Replies: 15
    Last Post: 2009-04-29, 10:46
  5. Font family and font size on Opera Mini under Series 60
    By xavel in forum Mobile Web Site Development
    Replies: 4
    Last Post: 2008-10-31, 16:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved