text wrap in QPushButton

812 views
Skip to first unread message

Vanja Maričić

unread,
May 27, 2015, 7:57:10 AM5/27/15
to qtcon...@googlegroups.com
hi to all members,
for the moment i'm calling QT window from WVT and i need to somehow wrap the text in QPushButton or at least break it in two lines.

for the moment using:
Harbour version: Harbour 3.2.0dev (r1410211457)
GCC version:     MinGW GNU C 4.8.2 (32-bit)
QT version:        5.3.2

Pritpal Bedi

unread,
May 27, 2015, 10:46:27 AM5/27/15
to qtcon...@googlegroups.com, gtv...@gmail.com
Hi Vanja


Try it like ( not tested as not around my development system ):

oPushButton:setText( "First Line" + Chr( 10 ) + "Second Line" )


Pritpal Bedi
a student of software analysis & concepts 

Vanja Maričić

unread,
May 27, 2015, 12:31:50 PM5/27/15
to qtcon...@googlegroups.com, gtv...@gmail.com
hi Pritpal,
this is workig. many thanks
Reply all
Reply to author
Forward
0 new messages