Qt hello世界示例不在LCD上显示任何内容
Qt hello world example does not display anything on LCD
我有带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
相关文章:
- 比较并显示使用最小值(a,b)和最大值(a、b)升序排列的4个数字
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 字符串-C++后显示的随机字符
- 继承期间显示未知行为的子类
- 仅使用绝对值对数组进行排序,并在C++中显示实际值
- 程序崩溃并显示"std::out_of_range"错误
- 如何在C++中用std::cout正确显示带十六进制的字符串文本
- 为什么在C的循环中使用printf的Rust代码不显示输出,而在C++的循环中显示std::cout
- 从数据库实时显示QT c++中的数据
- 当使用比格式支持的精度更高的精度来显示数字时,会写出什么数据
- 显示错误输出的简单数组排序程序
- Qt自定义QPush按钮未显示在布局上
- C++射线示踪剂ppm表示没有足够的数据来显示图像
- 显示基于用户输入的整数的字符
- Arduino LCD 显示屏显示混乱的字母
- 如何使用TouchGFX在LCD屏幕上显示ADC值
- Qt hello世界示例不在LCD上显示任何内容
- 在LCD上显示整数
- Arduino(C/C++)代码在LCD上显示阵列的内容
- Arduino 代码异常 - LCD 出现故障并显示多个 'if' 语句