原创 [Android] AsyncTask的使用

/** * Represents an asynchronous login/registration task used to authenticate * the user. */ pub

原创 Qt For Android 如何獲取手機屏幕大小

獲取方法 首先看一段程序代碼: int main(int argc, char *argv[]) { QApplication a(argc, argv); Dialog w; w.show(); ret

原创 MFC Button Control事件獲取的兩種方法

方法一:直接爲每一個Button添加相應函數 [此處前提是你工程已經建立完畢] 1. 在MFC UI設計框中拖入一個 Button ; 2. 修改Button 的ID 選中Button,單擊右鍵,選擇屬性,會看到有一個

原创 QT for Android HelloWorld實現

1 新建工程 打開Qt Creator,文件->新建文件或項目;在出來的對話框裏面,選擇“Android 模板”->Application->Qt Widgets Application 然後點擊“Choose…” 設置完“名稱”和

原创 [QT] SQLite操作

在工程配置文件中加入sql: QT += core sql 先隨意貼一段代碼: #include <QCoreApplication> #include <QtSql/QtSql> #include <error.h> #in