Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The target platform uses Qt v5.6.3 with tslib via LinuxFB n the v4.14 linux kernel built with yocto rocko
Qt 6.11 is out! See what's new in the release blog

The target platform uses Qt v5.6.3 with tslib via LinuxFB n the v4.14 linux kernel built with yocto rocko

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 293 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.
  • R Offline
    R Offline
    Rachuluri
    wrote on last edited by Rachuluri
    #1

    Hi
    white-space:nowrap, text-overflow: ellipsis work in html donot work with qt in QTableView with html model data.
    But able to see results in Online html editor. here is the example

    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>

    <h2>Styling Tables</h2>

    <table>
    <tr>
    <td style=width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;>John John John John John John John John John</td>
    </tr>
    </table>

    </body>
    </html>

    , How to make css properties : white-space:nowrap, text-overflow: ellipsis work in html table in qt? Appreciate for the suggestions in this regard.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      QTableView does not have a full html rendering engine behind it. At best you will have the support provided by Qt's rich text capabilities.

      If you need more then you should search for custom QStyledItemDelegate with html support.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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