Results 1 to 2 of 2

Thread: QListWidget line break of content Cell!! how to do this !

  1. #1
    Join Date
    Feb 2017
    Posts
    9
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Lightbulb QListWidget line break of content Cell!! how to do this !

    I want to use QListWidget to display my content. But some of the content is quite long and I want to make the text continue on a second LINE in the same cell, of course, instead of showing a horizontal scrollbar.

    I use Qt Creator and I can't seem to find any options in the design view.

    line break.jpg


    PLEASE SOMEONE HELP ME!

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QListWidget line break of content Cell!! how to do this !

    I do not know if QListWidget supports it, but you could try creating your contents with Rich Text Format, a subset of HTML, and insert your own line breaks.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QXmlQuery::evaluateTo(QString) adds a line break
    By mentalmushroom in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2018, 00:45
  2. QPrinter print QWebView content without any any page break.
    By Cupidvogel in forum Qt Programming
    Replies: 6
    Last Post: 21st May 2018, 01:51
  3. Replies: 0
    Last Post: 29th December 2016, 19:27
  4. QML-Get tableview cell content
    By neda in forum Qt Quick
    Replies: 2
    Last Post: 4th April 2016, 11:15
  5. Replies: 1
    Last Post: 21st November 2009, 09:29

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.