Hi all
I am changing the font size of lcdnumber but it is not changing. i am using code

Qt Code:
  1. QFont font_date_time("Verdana", 18);
  2. font_date_time.setBold(true);
  3. font_date_time.setItalic(true);
  4.  
  5. lcd->setFont(font_date_time);
To copy to clipboard, switch view to plain text mode 
and when i am trying to change its textcolor it is not working if i pass rgb value but if i am giving qt default color it is working fine.

Qt Code:
  1. lcd->setAutoFillBackground(true);// see the different if you comment that line out.
  2. QPalette Pal = lcd->palette();
  3. Pal.setColor(QPalette::Normal, QPalette::WindowText, Qt::greeen); //it is working
  4. //Pal.setColor(QPalette::Normal, QPalette::WindowText, QColor(200,1,140)); //it is not working
  5. lcd->setPalette(Pal);
To copy to clipboard, switch view to plain text mode