导读:
1. 加入槽:
slotInput()
…
slotSave()
2. 加入函数:
init()
traverse_tree(QListViewItem* pItem, QStringList & qsl)
…
RefreshList()
注:UI文件中 定义 引用参数。
3.加入头文件
CUserDefineDlg.ui.h
注:make时,若没有头文件定义, .ui.h文件不会加入到make中。
4.关联槽
leGoodsName
returnPressed()
CUserDefineDlg
slotGoodsNameReturn()
注:可使用QAccel
#include
staticQAccel *a
a->connectItem(a->insertItem(Key_Down),this,SLOT(slotKeyDown()))
5. UI文件中汉字存储为UTF8,可直接以UTF8字体编辑UI文件中的汉字
本文转自
http://xinsync.xju.edu.cn/index.php/archives/2201
1. 加入槽:
slotInput()
…
slotSave()
2. 加入函数:
init()
traverse_tree(QListViewItem* pItem, QStringList & qsl)
…
RefreshList()
注:UI文件中 定义 引用参数。
3.加入头文件
CUserDefineDlg.ui.h
注:make时,若没有头文件定义, .ui.h文件不会加入到make中。
4.关联槽
leGoodsName
returnPressed()
CUserDefineDlg
slotGoodsNameReturn()
注:可使用QAccel
#include
staticQAccel *a
a->connectItem(a->insertItem(Key_Down),this,SLOT(slotKeyDown()))
5. UI文件中汉字存储为UTF8,可直接以UTF8字体编辑UI文件中的汉字
本文转自
http://xinsync.xju.edu.cn/index.php/archives/2201