原创 QT開發GIF截屏工具的問題記錄

項目地址:https://github.com/theArcticOcean/Gifer QT log 重定向問題。 描述:在QML中的log print成功輸出所有信息,CPP中的打印不能顯示文件名,行號,函數名 看了幫助文檔中

原创 基於GDbus與QDbus的DBUS小練習

QDbus API:QT 的幫助文檔 任務描述: proxy 獲取 adaptor的數據,修改數據,接收數據修改的信號並查看新的值。 文件結構: ➜ DbusTest git:(master) ✗ tree . ├── Ad

原创 QT SQLite3分頁刪除問題

terminal實驗 場景:我打算在QT SQlite3中使用分頁刪除操作。即delete 搭配limit。 如下的例子使用limit、offet SQL關鍵字來實現分頁查詢。 在terminal中實驗: sqlite> s

原创 algorithm 題集八 (18.03.25)

本文一共12題,均來自《劍指offer》,不復雜。在平時的練習中收集了部分組合而成。 (1)輸入某二叉樹的前序遍歷和中序遍歷的結果,請重建出該二叉樹。假設輸入的前序遍歷和中序遍歷的結果中都不含重複的數字。例如輸入前序遍歷序列{

原创 git add in different HEAD state

假設我們已經有這樣的提交記錄: commit 86765d30e168e7501ce1d837b978bd89fa50c233 (HEAD -> master) :sparkles: update itoa.cpp co

原创 libc system函數的探究

system導致父進程等待 在mac上的在線幫助有對system的如下說明: The system() function hands the argument command to the command interpreter

原创 DBUS入門筆記

DBUS簡介 學習網址:https://dbus.freedesktop.org/doc/dbus-tutorial.html DBUS三層: libdbus,消息分發的守護進程Dbus daemon,應用程序框架的封裝庫或綁定

原创 C++ 泛型算法學習筆記(equal, accumulate, back_iterator, pair)

equal equal是區間比較算法 原型爲: template <class _InputIterator1, class _InputIterator2> inline _LIBCPP_INLINE_VISIBILITY b

原创 QT 關於Driver not loaded 與 結構體的構造函數

QT 關於Driver not loaded 在程序中使用SQLite數據庫,如下的代碼: QSqlDatabase db; QSqlQuery query; db = QSqlDatabase::addD

原创 QT 繪畫Square Shapes & Round Shapes

本文內容翻譯原文來自《Foundations of Qt Development》第7章 DRAWING AND PRINTING,作者:Johan Thelin。 Square Shapes 你可以畫出像圖7-8那樣的方角矩

原创 C++ vector::erase和無參構造函數的調用

vector::erase C++ vector的元素刪除,源碼是這樣的: template <class _Tp, class _Allocator> inline _LIBCPP_INLINE_VISIBILITY typen

原创 C++ 自定義IO操作符

C++ operator >> 與 << 寫一個結構體,需要進行文本的讀取和輸出。需要給結構體定義操作符<<, >>。 如下是結構體的部分內容: typedef struct __wordUnit{ string wor

原创 QT enVocabulary工程打包問題記錄

我用QT自帶的工具*deployqt把工程enVocabulary在mac,windows,ubuntu上打包,出現了一些問題。 下面是一些bug記錄。 SQlite Mysql的依賴問題。 WARNING: Plugi

原创 【VTK】在Mac上學習VTK

MAC OS X上的編譯: https://www.vtk.org/Wiki/VTK/Building/MacOSX 編譯vtk使得QT版本爲5 cmake configure: cmake ./ -G "Unix Makefi

原创 git pull and git rebase

relevant article: 使用git fetch和git rebase處理多人開發同一分支的問題——azureternite 我先update sem.c,但有人update itoa.cpp並且比我先提交。 gir p