
在.pro文件里添加:
LIBS += -L /etc/ -l*
在.cpp引用的时候,还需要把相关的头文件包含进去
通过qt的信号和曹函数实现,如下:int test_value = 0
QComboBox cbtest
connect( cbtest, SIGNAL(activated(int)),SLOT(ChangeValue(int)) )
void ChangeValue( int value )
{
test_value = value
}
重载QTableView从QAbstractItemView继承来的静态函数就kyle按你的要去i,下面2个都可以
void activated ( const QModelIndex &index )
void clicked ( const QModelIndex &index )
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)