Home »
Python »
PyQt MCQs
The getText() and setText() are the methods of ___ module
16. The getText() and setText() are the methods of ___ module.
- QtEditText
- QLineEdit
- QtLineEdit
- QtText
Answer: B) QLineEdit
Explanation:
The getText() and setText() are the methods of QLineEdit module. Where, the setText() is used for setting the text programmatically, and the getText() is used for getting the text.