Pass the initial value as the 5th parameter of QInputDialog::getText method.
QtRuby InputDialog with default text
题
With QtRuby, is it possible to create an input dialog that already has a value in the text box?
解决方案
不隶属于 StackOverflow
题
With QtRuby, is it possible to create an input dialog that already has a value in the text box?
解决方案
Pass the initial value as the 5th parameter of QInputDialog::getText method.