User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:common:development:qt_set_up_on_cubieboard [2014/07/12 16:36]
tutorials:common:development:qt_set_up_on_cubieboard [2014/07/12 17:08] (current)
Line 48: Line 48:
 After compiled ,enter ''​examples/​widgets/​wiggly/'',​there is some sample code you can use .Like below After compiled ,enter ''​examples/​widgets/​wiggly/'',​there is some sample code you can use .Like below
Line 56: Line 53:
 {{:​tutorials:​common:​3.png?​300|}} {{:​tutorials:​common:​3.png?​300|}}
 +6.set up the environment variables ​
 +add two line in the end of file ''/​etc/​profile''​
 +export PATH
 +===== programme hello world  ===== a directory named hello ,create a new file named  hello.cpp in it .
-==== Headline ====+<​code>​ 
 +#include <​QApplication>​ 
 +#include <​QLabel>​ 
 +int main (int argc, char *argv []) 
 +QApplication app (argc, argv); 
 +QLabel *label ​new QLabel ("​Hello Qt!"​);​ 
 +label->​show (); 
 +return app. exec (); 
 +2. compile the hello.cpp
-===== Headline =====+<​code>​ 
 +qmake -project 
 +In current directory create a executable file,run it as like below
-=== See Also ===+  
 <WRAP noprint> <WRAP noprint>
 {{tag>​Cubieboard Cubietruck}} {{tag>​Cubieboard Cubietruck}}
 </​WRAP>​ </​WRAP>​
tutorials/common/development/qt_set_up_on_cubieboard.1405154169.txt.gz · Last modified: 2014/07/12 16:36 by allen