Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
57 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 57

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SMTube : new version on OS4Depot

Subject: Re: SMTube : new version on OS4Depot
by LiveForIt on 2014/6/6 19:42:46

Quote:

If I replace 
QMessageBox::warning(this, tr("Error"), error);
by 
QMessageBox::warning(this, tr("Error"),error + " " ) ;

it works (notices the more than 50 space character after "error + "

If I replace "error" by a constant string, it's the same, this QMessageBox want a string that is at least more than xx characters (too lazy to count)


this will always make the string 50 chars long.

QMessageBox::warning(this, tr("Error"),error.leftJustified(50, ' '));

http://qt-project.org/doc/qt-4.8/qstring.html#leftJustified

I'm assuming error object is declared using QString class.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project