1. 開發環境:
(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Linux OS: Ubuntu10.04.
(4). Toolchains: AndeSight v1.3.3 for Linux.
(5). Embedded Linux2.6.18
2. 目的: 使用Qt Creator內GUI Layouts物件設計webkit.
3. 實驗步驟:
(1). 開啟Qt Creator,〝File->New File or Project…〞.
(2). 選擇〝Qt4 Gui Application〞.
(3). 之後輸入project name後,至下列的歨驟就須勾選〝QtNetwork〞、〝QtWebKit〞,其餘的步驟與之前範例相同.
(4). 加入Layouts物件,〝Push Button〞、〝QWebView〞.
(5). 使用滑鼠拖拉物件如下圖所示,Push Button可以修改名稱.
(6). 選擇〝Push Button〞按滑鼠右鍵後選擇〝Go to slot…〞,再選擇〝clicked()〞設定按鍵方式.
(7). 輸入〝ui->webView->setUrl(QUrl("http://00.00.00.00"));〞,IP address需自行修改,我這裡是輸入IP Cam的IP address.(或是使用Terminal輸入〝ping www.google.com〞會傳回google的IP address,直接瀏覽網頁)
(8). 下載完整程式: http://cid-b01cb9ac20175eaa.skydrive.live.com/self.aspx/Qt%20Creator%5E_lab4/webkit.zip.
(9). 輸入〝Run〞編譯執行結果如下.
(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Linux OS: Ubuntu10.04.
(4). Toolchains: AndeSight v1.3.3 for Linux.
(5). Embedded Linux2.6.18
2. 目的: 使用Qt Creator內GUI Layouts物件設計webkit.
3. 實驗步驟:
(1). 開啟Qt Creator,〝File->New File or Project…〞.
(2). 選擇〝Qt4 Gui Application〞.







(9). 輸入〝Run〞編譯執行結果如下.

沒有留言:
張貼留言