Qt hello世界示例不在LCD上显示任何内容

Qt hello world example does not display anything on LCD

本文关键字:LCD 显示 任何内 hello 世界 Qt      更新时间:2023-10-16

我有带Tegra 2的colibri评估板3.1a。我已经编译了Qt库并复制到板上。我正在尝试简单的hello世界按钮应用程序。程序运行良好(通过插入打印确认),但我在液晶显示器上什么都没得到。

这是我正在尝试的简单代码

QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();

确保使用-qws标志:

./myapp -qws