Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
i have a qstring variable with a variable length content,and i want to complement the qstring in the end with spaces so it will have a constant length of maxlength. what is the proper code?
Hi,
You can create a new QString with the right number of spaces and then append it to your current QString
QString::QString ( int size, QChar ch ) to construct your space string or you can also use QString::fill
Hope it helps