Results 1 to 3 of 3

Thread: Qt white font on Nokia N8, block screen orientation

  1. #1
    Join Date
    Mar 2012
    Posts
    9
    Platforms
    Windows Symbian S60

    Question Qt white font on Nokia N8, block screen orientation

    Hello!

    I have collided with font problem, in my programm i have few QLabel's. test1=new QLabel("Test"); grid1->addWidget(test1,0,1); Wheen I run my programm for PC build, text appear's in black color, and it's readable. But when I build my programm for Symbian Belle and run it on my Nokia N8, text color become's white and it impossible to read it, one of solution I used is test1->setText("<b><font color=red>test1</font></b>"); But it's complicated when I have a numerous "if cases" for my QLabel's. Another question is how to lock albom screen orientation, so when I willl run my programm on N8, it will be opened only in album orientation, and portrait will be locked? I code with out any forms, I use Layout's. Thanks for your answers!
    Last edited by Asus_G72GX; 23rd December 2012 at 11:18.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qt white font on Nokia N8, block screen orientation

    For your color problem have a look at QPalette. For the locking the screen see http://www.developer.nokia.com/Commu...entation_in_Qt

  3. #3
    Join Date
    Mar 2012
    Posts
    9
    Platforms
    Windows Symbian S60

    Default Re: Qt white font on Nokia N8, block screen orientation

    Thanks for help!
    setAttribute(Qt::WA_LockLandscapeOrientation,true) ; checked works on N8, for QLabel I used label2->setStyleSheet("color: black"); Strange that by default my app on N8 view white font instead black as on PC. By the way does anyone know on which e-mail I should write in order to get UID and certificate, I want to publish my app to Nokia Store, PublishToOvi.Support@nokia.com not work's anymore. Thanks again!

Similar Threads

  1. Windows Mobile VGA Screen font size problem
    By LordG in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th November 2010, 09:13
  2. Screen orientation
    By Tomasz in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 31st August 2010, 09:47
  3. Qt GUI application appears as white in Nokia 5800
    By biswajithit in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 1st February 2010, 09:34
  4. Displaying Text on Black and White Screen
    By Stobie in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 8th December 2009, 01:03
  5. Screen get white on minimize?
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 11th August 2008, 21:22

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.