原创 qt的tr()函數
tr("The document has been modified.\n" "Do you w
原创 doxygen的基本使用
http://blog.csdn.net/sunjiajiang/article/details/7390821 http://blog.csdn.net/setsail_wu/article/details/23432273 htt
原创 fcntl函數
http://man7.org/linux/man-pages/man2/fcntl.2.html int fcntl(int fd, int cmd, ... /* arg */ ); fcntl函數是一個複雜功能強大的函數,關於文件
原创 c++ 構造函數執行順序
1.若有基類,先執行基類的構造函數。 2.類中若有對象成員,則再執行該隊形的構造函數,多個對象,按定義先後。 3.若是派生類,則最後執行派生類的構造函數。 #include<iostream> using namespace std;
原创 ubuntu11.10下madplay移植出現audio: /dev/dsp: No such file or directory
ubuntu11.10下madplay移植出現audio: /dev/dsp: No such file or directory 分類: linux 內核 2013-01-27 13:23 1270人閱讀 評論(3) 收藏 舉報 這
原创 Linux 創建快捷方式
root@ubuntu:/home/jia/桌面# ln -s ../eclipse/eclipse eclipse-link 點擊打開鏈接
原创 c++ 虛析構函數
class Base1 { public: Base1() { cout << "Base1::Base1 1"<<endl; }; Base1(int i, int j) :i(i), j(j) { cout << "Base1
原创 Qtablewidget 無法獲取單元格的值
#include "dialog.h" #include "ui_dialog.h" #include <QTableWidget> Dialog::Dialog(QWidget *parent) : QDialog(paren
原创 delphi 數組 for循環
program Project2; {$APPTYPE CONSOLE} uses SysUtils; //interface implementation 怎麼用暫不清楚 var str:str
原创 svn: SSL is not supported
This message: [ Message body ] [ More options ]Related messages: [ Next message ] [ Previous message ] [ In reply t
原创 Qt Qpushbutton設置背景色的問題
今天發現一個問題,Qt Qpushbutton設置背景色只能用代碼如下設置,StyleSheet在qt creator中居然只能設置前景色!!! pushbutton->setStyleSheet("ba
原创 Delphi
n1 := StrToIntDef({'0x'+}'11',921); //11 str1 := Format('%.3d',[n1]); // '011' n1 := StrToIn
原创 qt qtabbar qss
QString tabWidgetStyle1 = "QTabWidget::pane {border-top: 2px solid #c2c7cb;}\ QTabWidget::tab-bar {left:5px}\
原创 auto_ptr 源碼解析
就是acclerated c++中所說的 通用句柄類,具體見註釋! #define _THROW0() noexcept template<class _Ty> class auto_ptr; template<class _Ty>
原创 QLineF
QLineF line1; QPointF p1(10.0,20.0); QPointF p2(30.0,20.0); line1.setPoints(p1,p2); line1.setLength