lineEdit button setDefault
-
Hi.
I want to setDefault for button when i use a specific lineEdit. How can i do that?
When i setDefault button i still cant use that button when i press 'Enter'.@fornakter said in lineEdit button setDefault:
want to setDefault for button when i use a specific lineEdit. How can i do that?
Line edits do not have default buttons. Dialogs do. So what button are you talking about?
I can only think by catching focus in & out on that line edit and changing/restoring what the default button is as these occur.
When i setDefault button i still cant use that button when i press 'Enter'.
Press Enter where? If you mean when the focus is in a
QLineEditI believe that "swallows" the Enter. UseQLineEdit::returnPressedsignal, e.g. https://stackoverflow.com/questions/15561608/detecting-enter-on-a-qlineedit-or-qpushbutton ?