| ★ wanayoo — archive 1999 http://www.spanware.com/qinputbox/qinputbox.html | Nouvelle recherche | Portail wanayoo |
|
|
QInputBox
Update : QInputBox is now consolidated with QSuperList in one archive. The QInputBox download is in fact the QSuperList archive and vice-versa. QInputBox attempts to mimic the InputBox function in Delphi/C++ Builder. While doing development of SambaLink/Q, I needed a simple way to grab a line of input from a user. Qt does not have this generic functionality. I figured since I was going to writing a lot of Qt apps, I should make my own life easier. The Prototype looks like this QInputBox :: QInputBox(QString caption , QString prompt, QString& defString); If the user clicks OK, defString is modified with the value in the QLineEdit and the value is given back in defString. If the user hits Cancel, defString remains blank. Caption is the caption of the Window. Prompt is the prompt in the QLabel.
Calling QInputBox is simple The above QInputBox was called with these two lines: QString shareName; QInputBox is released under a BSD license. Download here. |