qlineedit
silently transfer keyPressEvent to one child , and make it focus?
When user types in a QWidget based window, I wanted a QLineEdit to process all input keys, so I tried the following two solution in keyPressEvent() of that QWidget:[详细]
2023-04-11 22:11 分类:问答How can I add a QLineEdit to Menubar
I am attempting to reclaim some screen real estate in my application. I\'ve got a search bar that is a basic QLi开发者_Go百科neEdit and takes up space. In my menu bar, I easily have enough room to fit[详细]
2023-03-29 19:01 分类:问答Using QLineEdit for passwords
How can I 开发者_开发百科make a QLineEdit suitable for entering passwords (i.e. it doesn\'t show what\'s entered), something like the follwing:[详细]
2023-03-01 19:22 分类:问答model/view QCompleter in a QLineEdit
ubuntu 10.04, KDE 4.4.5 python 2.6.4 qt 4.6.2 pyqt 4.6.2 I\'m trying to create a QCompleter, which works fine if I just build the QLineEdit.[详细]
2023-03-01 10:51 分类:问答QLineEdit placeholder text not working in Qt 4.6.3
I am using Qt 4.6.3, and tried to set some placeholder text on a QLineEdit. But these methods didn\'t work:[详细]
2023-02-26 23:23 分类:问答QLineEdit Validation for {[A-Z] [a-z][0-9]} text input
I want to accept a new username fro开发者_JS百科m the user in my application. I want the username string to contain only A-Z or a-z or 0-9, and have a maxLength of 8. So I want to validate the input f[详细]
2023-02-14 21:59 分类:问答Retrieve value of QTableWidget cells which are QLineEdit widgets
I create a QLineEdit,set a val开发者_运维知识库idator and put it on the table with this code:[详细]
2023-02-09 06:40 分类:问答Select text of QLineEdit on focus
I have created a dialog using QtDesigner. There is a QLineEdit object in the dialog with some default content. When the dialog initializes and the focus goes to the QLineEdit,开发者_开发技巧 I want th[详细]
2023-01-10 21:27 分类:问答How to know if a QLineEdit got focus?
I want to be able to know if in the QLineEdit it was a click. So I guess I should reimplement the following function(??):[详细]
2023-01-03 11:42 分类:问答QValidator for hex input
I have a Qt widget which should only accept a hex string as input. It is very simple to restrict the input characters to [0-9A-Fa-f], but I would like to have it display with a delimiter between \"byt[详细]
2022-12-29 04:30 分类:问答