QT_Screen的汇编问题
Compilation issue with qt_screen
我在Ubuntu OS上安装了QT5.5。
编译程序时,我要低于错误 -
这就是我为错误
../../work/mainwindow.cpp: In constructor 'MainWindow(QWidget)':
../../work/mainwindow.cpp:63:31:
error: 'qt_screen' was not declared in this scope ui->stackedWidget-
>resize(qt_screen->deviceWidth(),qt_screeb->deviceHeight());
这是我的代码的一部分
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setipUi(this);
setWindowFlags(Qt::CustomizeWindowHint);
ui->stackedWidget->resize(qt_screen->deviceWidth().qt_screen->deviceHeight());
ui->stackedWidget->setCurrentWidget(ui->stackedWidgetPageMain);
initPageMain();
touch=new Touch();
powerButton=new PowerButton();
auxButton=new AuxButton();
usbOtg=new UsbOtg();
battery=new Battery();
panel=new Panel();
lan=new Lan();
hPattern= new HPattern();
lodLog=new LodLog();
record=new Record();
led=new Led();
lightsensor=new LightSensor();
}
我是否想念任何东西?
顺便说一句,我确定我已经将QScreen包含在其中。
我是否有可能在代码上设置错误?
QSCREEN类已从QT4和QT5发生了显着变化,实际上是如此之多,以至于它在QT5中被认为是新的。
QT4 QSCREEN具有称为QScreen::instance()
的静态方法,该方法返回了QScreen实例指针。回到QT4中,如果我没记错的话,该指针取自全局变量qt_screen
。所有这些都已更改,因此只需删除访问QT_Screen的所有代码,并通过正确访问公共API来修复它。
相关文章:
- 警告处理为错误这里有什么问题
- 最小硬币更换问题(自上而下方法)
- 为"adjacent"变量赋值时出现问题
- 我的神经网络不起作用 [XOR 问题]
- 在Ubuntu 16.04上安装Cilk时出现问题
- C++我的数学有什么问题,为什么我的代码不能正确循环
- 汇编问题试图使用qobject_cast进行const指针
- 类向量上的C 汇编问题
- 关于Visual Studio 2017中有关ConstexPR表达式的汇编问题
- QT_Screen的汇编问题
- C 汇编器转换问题
- c IPERF3的汇编问题
- vs 2017 C 汇编问题
- C 汇编问题:找不到对象文件
- .cpp中.o文件的调用函数的汇编问题
- C/C++汇编.在处理项目的简单生成文件时遇到问题
- 我的汇编代码有什么问题
- DirectX输入汇编阶段问题
- 关于反汇编输出的问题
- 汇编偏移到c++代码的问题