Results 1 to 4 of 4

Thread: NOT to wrap the text

  1. #1
    Join Date
    Dec 2023
    Posts
    2
    Qt products
    Platforms
    Unix/X11

    Default NOT to wrap the text

    Hi,
    When I create QTextTable and fill it with data, text with spaces is sometimes wrapped into lines - even when there is still horizontal room to contain all cells in row without word-wrapping. How to persuade the widget (maybe QTextCursor or another class?) NOT to wrap the text?
    Or maybe it's possible to replace spaces in text to a kind of non-breaking spaces, which will be understood by widget/cursor ?
    Any solution is needed.
    regards

  2. #2
    Join Date
    Dec 2023
    Posts
    2
    Qt products
    Platforms
    Unix/X11

    Default Re: NOT to wrap the text

    Any idea?

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    507
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: NOT to wrap the text


  4. #4
    Join Date
    Apr 2024
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    MacOS X

    Default Re: NOT to wrap the text

    Can you provide an illustration so I can understand your problem better?
    Crystal Davenport

Similar Threads

  1. How to wrap the text in QPainter
    By duck88 in forum Qt Programming
    Replies: 4
    Last Post: 29th July 2014, 14:25
  2. How to Wrap the text in QTableView
    By mythili in forum Qt Programming
    Replies: 10
    Last Post: 8th May 2013, 13:15
  3. Replies: 2
    Last Post: 9th April 2013, 06:26
  4. text indent with wrap
    By linuxsong in forum Qt Quick
    Replies: 1
    Last Post: 26th July 2011, 14:14
  5. Wrap Text in PUSHBUTTON
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2009, 13:54

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.