IGOS Nusantara dan Qt: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
(←Membuat halaman berisi ' == Contoh Non GUI == #include<QtCore> int main(){ qDebug() << "Halo Dunia\n"; } == Contoh Program GUI == #include<QApplication> #include<QLabel> int ma...')
 
Baris 1: Baris 1:
 +
 +
== Pasang ==
 +
#
 +
yum install libxcb libxcb-devel xcb-util xcb-util-devel xcb-util-*-devel libX11-devel libXrender-devel libXi-devel
  
 
== Contoh Non GUI ==
 
== Contoh Non GUI ==

Revisi per 27 Agustus 2014 01.56

Pasang

# 
yum install libxcb libxcb-devel xcb-util xcb-util-devel xcb-util-*-devel libX11-devel libXrender-devel libXi-devel

Contoh Non GUI

#include<QtCore>
int main(){
   qDebug() << "Halo Dunia\n";
}

Contoh Program GUI

#include<QApplication>
#include<QLabel>

int main(int argc, char *argv[]){
   QApplication a(argc, argv);
   QLabel    label;
   label.setText("Hello World");
   label.show();
   a.exec();
}