1. 程式人生 > >Qtablewiget及comboBox 使用方法(總結,未完成)

Qtablewiget及comboBox 使用方法(總結,未完成)

 item_selected=self.tableWidget_serpre.currentItem().text()#選中item的文字值

self.tableWidget_serpre.item(0,0).text取得第一個item的值,直接在Qt幫助中,搜尋tableWidget類,然後在

List of all members, including inherited members連結中,找以item,檢視具體使用說明。

comboBox:

comboBox.addItems()   #可以加元組,列表

comboBox.addItem()   #可以加字串

QT的QDtae類

獲取系統時間: