Home > Back-end >  How to make qlineedit only for some string?
How to make qlineedit only for some string?

Time:05-02

I'm newer for qt. I want to make a lineedit only sell signals for some string,like apple,banana,melon. How can I get it with regex or other method?

CodePudding user response:

Just use QComboBox and check it's editable flag

enter image description here

  • Related