แสดงบทความที่มีป้ายกำกับ Command Line แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Command Line แสดงบทความทั้งหมด

วันจันทร์ที่ 3 เมษายน พ.ศ. 2560

Qt จาก Command Line

1. สร้างโฟลเดอร์ HelloQt

2. สร้างไฟล์ hello.cpp 
nano hello.cpp

3. พิมพ์โค้ด
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[]){
  QApplication app(argc, argv);
  QPushButton *button = new QPushButton("Quit");
  QObject::connect(button, SIGNAL(clicked()), &app, SLOT(quit()));
  button->show();
  return app.exec();
}

Gtk4 ตอนที่ 6 Defining a Child object

Defining a Child object A Very Simple Editor ในบทความที่ผ่านมาเราสร้างโปรแกรมอ่านไฟล์ชนิดข้อความ และในบทความนี้ก็จะมาปรับแต่งโปรแกรมกันสักหน...