原创 Qt:QFileSystemModel 使用記錄

QFileSystemModel類:Qt幫助中的介紹爲: The QFileSystemModel class provides a data model for the local filesystem. This class

原创 報錯:gnutls_handshake() failed: Decryption has failed.

git clone 時報錯 參考鏈接: https://blog.csdn.net/dean_yanqing/article/details/30239405 報錯如標題: gnutls_handshake() failed:

原创 Tools:Linux下局域網通訊工具:信使(iptux)

rpm 格式安裝命令: sudo yum install iptux deb 格式安裝命令: sudo apt install iptux 安裝完成,啓動後應用界面: 在上面顯示的好友處,右鍵,可以選擇修改好友信息,添加

原创 C++:通過time(0)計算當前時間

time(0)函數返回自格林尼治標準時間1970年1月1日00:00:00至當前時刻所流逝的秒數。 通過下面程序,可以通過time(0)得到的時間,計算出當前的小時、分、秒。 #include <iostream> #includ

原创 C++:int long float double 類型範圍

程序: #include <iostream> #include <climits> #include <cfloat> using namespace std; int main() { cout << "IN

原创 Qt:加載目錄下文件到 tableWidget 並 設置某一列背景爲灰

QStringList header; header << tr("Name") << tr("Size") << tr("Description") << tr("Path"); ui->tableWidget

原创 Qt:getOpenFileNames使用

Qt 官方幫助文檔中調用方式爲: QStringList files = QFileDialog::getOpenFileNames( this,

原创 VIM:配置

" 設置行號 set nu "設置把tab自動換成空格 set expandtab " 設置tab鍵的寬度 set tabstop=4 " 設置 命令行顯示輸入的命令 set showcmd " 設置命令行顯示當前的模式

原创 Linux:date命令格式

參考鏈接: https://www.cnblogs.com/qmfsun/p/4598650.html date 命令幫助: adams@adams-pc:~$ date --help 用法:date [選項]... [+格式]

原创 Error:Qt調用gtk報錯: gtk+-2.0 development package not found

使用: CONFIG += c++11 link_pkgconfig PKGCONFIG += gtk+-2.0 在qt工程中加載gtk函數,報錯: gtk+-2.0 development package not found

原创 Error:'emit' was not declared in this scope

Qt編譯時報錯: error: ‘emit’ was not declared in this scope; did you mean ‘exit’? 9 | emit Button->clicked();

原创 Linux:通過autotools工具,自動生成Makefile

參考鏈接: https://blog.csdn.net/kongshuai19900505/article/month/2018/01 https://www.cnblogs.com/jrglinux/p/6964169.html

原创 Linux:VirtualBox無法識別USB設備

參考鏈接: https://blog.csdn.net/shooke/article/details/54971466 一、把當前用戶加入到vbox所在的用戶組 按照上述參考鏈接中方法: sudo usermod -a -G v

原创 Error:E: 您必須在 sources.list 中指定代碼源(deb-src) URI

使用apt-get source 命令時,無法下載源碼的問題。 參考鏈接: https://blog.csdn.net/Zhanganliu/article/details/86592524 sudo software-pro

原创 Python:一個四行四列的小網格繪製的程序

在看Think Python 第三章 函數章節時,有個練習是:寫一個四行四列的小網格繪製的程序。 官方例程爲:http://thinkpython2.com/code/grid.py 上面例程中的代碼爲: """This mod