Qpushbutton word wrap issue
I am using one Qtablewidget,,in the Qtablewidget i add a one button,,if i type button->settext("sample") means,, in the button it displays only "samp",,,In here word wrap is not working,,,so please help this issue,,
QPushButton doesn't support multi-line text
Either you create your own button or you use a extension libraries which provide such a button:
- "wwWidgets":http://www.wysota.eu.org/wwwidgets/ (QwwRichTextButton)
- "libQxt ":http://dev.libqxt.org/libqxt/wiki/Home(Qt4 only) ("QxtPushButton":http://dev.libqxt.org/libqxt/src/696423b68972fc9edae318558b8ce26dc187cc40/src/widgets/qxtpushbutton.cpp?at=master)
Usually the size of the button (or other input control) will grow to accommodate the text. Is your push button size locked down or forced into an area that doesn't allow it to grow?
as i said QPushButtons size calculation just doesn't support multi-line text ... fact.