View Full Version : Wrap Text in PUSHBUTTON
BalaQT
16th September 2009, 12:39
hi,
how to wrap the text in QPUSHBUTTON?
Thanks
Bala
pheyx
16th September 2009, 13:22
try this:
QPushButton("123\n456")
BalaQT
16th September 2009, 13:54
thanks,
it works
i coded manually. but is there anyother ways to do it automatically?
int wrapLen=30;
if(strCaption.length()>wrapLen)
{
strCaption=strCaption.left(wrapLen)+"\n"+strCaption.mid(wrapLen,strCaption.length()-wrapLen+1);
}
Thnks
Bala
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.