原创 QML類型說明-FolderListModel

FolderListModel是訪問本地系統中一個文件夾的內容的組件。它能將信息提供給一個視圖或其他數據組件。 注意:在導入Qt.labs.folderlistmodel模塊後,這個組件可用。但Qt.labs.folderlist

原创 Linux網絡設置-方法

vi /etc/network/interfaces auto eth0 iface eth0 inet dhcp auto eth0 iface eth0 inet static address 192.168.12.22

原创 QML所有的元素三

MouseArea 主要是用來判斷鼠標事件的區域 Rectangle{ x: 0; y: 0; width: 100; height:100; Rectangle{ id: mousrect x: 20; y: 20; wid

原创 qml之FileDialog

屬性 fileUrl : url fileUrls : list folder : url modality : Qt::WindowModality nameFilters : list selectExisting : boo

原创 windows lib 引用

在windows 編寫一些demo的時候,爲了方便,我們經常把lib 還有.h文件和源碼放在一個文件夾下面。 一般在sydafx.h 中添加.h和.lib pragma comment(lib,”ZehinCloudP2PPlay

原创 QT Demo 之 window(5) window.qml

在分析了main.cpp、Splash、Qt.quit()以及ScreenInfo之後,我們終於開始了正題:window.qml。 window.qml的主體結構 window.qml主體是一個QtObject,其中包含了4個子元素:p

原创 onvif雲臺巡航控制

1、通過SetPreset將當前設備所處位置設置爲一個預置位消息參數如下:配置文件ProfileToken 預置點name

原创 終端屬性結構體各變量的功能

終端屬性結構體: struct termios { unsigned int c_iflag; /* 輸入模式標誌 */ unsigned int c_oflag; /* 輸出模式標誌 */

原创 QT Demo 之 window(2) Splash

在QT Demo 之 window一章我們學習了在C++層的QQuickWindow的一些知識,這一章我們重點看一下源碼中的Splash.qml文件,該文件給我們演示瞭如何使用splash screen來顯示應用的啓動及界面。 關於應用的

原创 mysql中文問題

set name gbk;

原创 BMP文件格式詳解(BMP file format)

BMP文件格式詳解(BMP file format) BMP文件格式,又稱爲Bitmap(位圖)或是DIB(Device-Independent Device,設備無關位圖),是Windows系統中廣泛使用的圖像文件格式。由於它可以不作任

原创 QML獲取屏幕分辨率大小

width: Screen.desktopAvailableWidth height: Screen.desktopAvailableHeight

原创 SQL Error (1130): Host IP is not allowed to connect to this MySQL server

通過HeidiSQL連接MYSQL數據庫報錯: SQL Error (1130): Host ‘192.168.1.100’ is not allowed to connect to this MySQL server 說明所連接的

原创 QML基本元素集

Item 基本的項元素 在QML中所有可視化的向都繼承他 Rectangle 基本的可視化矩形元素 Gradient

原创 QML設置窗口背景

import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.2 Applicatio