Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qpushbutton word wrap issue

Qpushbutton word wrap issue

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saravanavelu39
    wrote on last edited by
    #1

    Hi friends,,

                      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,,
    

    Thanks,

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      QPushButton doesn't support multi-line text

      Edit:
      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)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rondog
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          as i said QPushButtons size calculation just doesn't support multi-line text ... fact.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved