Results 1 to 2 of 2

Thread: Multiline in QPushbutton

  1. #1
    Join Date
    May 2010
    Posts
    17
    Thanks
    6
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Post Multiline in QPushbutton

    Hi to All,
    How to set multi line to QPushButton without using '\n'.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiline in QPushbutton

    If you want wordwrapping then use one of the rich text button classes available around or implement your own button class that will draw the text including wrapping.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    nikhil (25th June 2012)

Similar Threads

  1. Multiline match with QRegExp
    By bender86 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2016, 15:14
  2. Multiline comment with QXmlStreamWriter
    By QtWannabe in forum Qt Programming
    Replies: 2
    Last Post: 30th November 2010, 13:05
  3. Multiline QCombobox
    By tyrdal in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2009, 18:37
  4. Multiline QPushButton
    By uestebanez in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2008, 21:25
  5. QTableView multiline problem
    By ramazangirgin in forum Qt Programming
    Replies: 3
    Last Post: 3rd August 2007, 10:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.