Kontron KTAM3874-pITX Manual de usuario Pagina 210

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 293
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 209
KTD-S0057-I Page 206 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
void Dialog::showTime ()
{
QTime time = QTime::currentTime ();
QString text = time.toString ("hh:mm");
// realizes blinking ':' for seconds ticking
if (! (time.second () % 2))
text[2] = ' ';
ui->lcdNumber->display (text);
}
int main (int argc, char *argv[])
{
QApplication app (argc, argv);
Dialog *dialog = new Dialog;
dialog->show ();
return app.exec ();
}
If you run the program with user or root rights you will experience a surprise - the appearance differs
strongly between the modes (without
QtConfig and with the standard theme Adwaita).
The use of QtConfig can minimize the differences. Load this tool on the target hardware with
sudo apt-get install qt4-qtconfig
After call of qtconfig you see for example the following screen:
Vista de pagina 209
1 2 ... 205 206 207 208 209 210 211 212 213 214 215 ... 292 293

Comentarios a estos manuales

Sin comentarios