[問題] Qt LineEdit
最近使用Qt4.7結合Python2.7去開發視窗
但是遇到了LineEdit的游標問題一直解不開
我使用程式的方法式建造一個LineEdit在介面上
並設定他可以藉由ClickFocus方式去指定該LineEdit
但是當我編輯完LineEdit1後在指向下一個LineEdit2時
原先停在LineEdit1的游標並不會消失而在LineEdit2上會產生新的游標
導致畫面上出現"兩個游標"會混淆
有嘗試使用ClearFocus去讓游標消除
但似乎沒有任何作用
想請問有人知道應該怎麼解嗎?
謝謝
P.S游標是指鍵盤輸入的閃爍游標 不是滑鼠游標
補上Code並附上畫面圖片(http://imgur.com/gPXJc):

addressLineEdit=QLineEdit()
valueLineEdit=QLineEdit()
addressLineEdit.setFocusPolicy(Qt.ClickFocus)
valueLineEdit.setFocusPolicy(Qt.ClickFocus)
--
http://www.myspace.com/soundtrack0220
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.126.134.33
※ 編輯: b60413 來自: 140.126.134.33 (04/24 20:02)
→
04/24 20:12, , 1F
04/24 20:12, 1F
※ 編輯: b60413 來自: 140.126.134.33 (04/24 20:29)
→
04/24 20:37, , 2F
04/24 20:37, 2F
→
04/24 20:47, , 3F
04/24 20:47, 3F
討論串 (同標題文章)
Python 近期熱門文章
PTT數位生活區 即時熱門文章