×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    73

    font size and color issue

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: font size and color issue

    Like you do it for any other widget
    Code:
    application->setStyleSheet("QPushButton { font-size: 12px, color: red }");

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    73

    Re: font size and color issue

    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
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: font size and color issue

    Yes, the font choice is rather limited.

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: font size and color issue

    You can ship and install fonts with your package.

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: font size and color issue

    This has been said, but I've never heard anyone claim they've succeeded with doing so on Qt/Symbian.

  7. #7
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: font size and color issue

    On Maemo that would be rather simple. Cannot say about Symbian.

  8. #8
    Registered User
    Join Date
    Dec 2009
    Posts
    73

    Re: font size and color issue

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: font size and color issue

    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 & Infrastructure
    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. Replies: 15
    Last Post: 2009-04-29, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •