1664 views|1 replies

164

Posts

0

Resources
The OP
 

Xunwei 4412 development board cross-compiles Qt application code [Copy link]

Step 1:
Layout the QT program, and then add the code to automatically set the screen size in the constructor. The code is as follows:
After setting it up, copy the QT code to Ubuntu.
#include
#include
#include
QDesktopWidget *deskTopWidget = QApplication::desktop();
QRect deskRect = deskTopWidget->availableGeometry();
int appH = deskRect.height();
int appW = deskRect.width();
this->setFixedSize(appW, appH);
setGeometry(0, 0, appW, appH);
The addition is completed as shown in Figure 62.3.4.1:

Step 2:
Enter the project folder directory to be compiled, and directly use the qmake under the qt source code we compiled on Ubuntu to generate the Makefile, enter: /opt/qt5.7.0/bin/qmake

Step 3:
After successfully generating the Makefile, you can directly use make to compile it. After the compilation is successful, the executable file obtained can be run on the development board.

As shown in the figure

Xunwei 4412 development board:

This post is from ARM Technology

Latest reply

What compilation software do you use? No need to set before compiling? Re-upload the picture and take a closer look   Details Published on 2021-3-19 14:18
 

6555

Posts

0

Resources
2
 

What compilation software do you use?

No need to set before compiling?

Re-upload the picture and take a closer look

This post is from ARM Technology
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list