Qt: add a file selection field on the form (QLineEdit and “browse” button)
问题 I need to display QLineEdit with "Browse" button at my form. When user clicks button, QFileDialog should be opened, and so on. This is pretty common thing, but I can't find ready-made solution for that. I expected in Qt Designer some widget like QFileSelect , or something like that, but found nothing similar. Should I implement it by hand? Or, what is the correct way to do this? 回答1: Should I implement it by hand? Or, what is the correct way to do this? Yes, I agree with you that it is a