Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Horizontal white space in TextBrowser



  • I've tried using &emsp;, <span style="display:inline - block; width: 20; "></span>, and \t in an attempt to get text indented.

    None of them work to put white space at the beginning of a line. Is there some setting of the TextBrowser control I need to set that will make this work?

    Thank you, David



  • &nbsp; sort of works, but is pretty narrow. I need loads of them to create the indent I want.

    Is there a "wide" non-breaking space (like &emsp; but non-breaking?

    I wish HTML had a simple list:

    <sl><li>Text</sl>
    

    resulting in

      Text

    Woohoo! I found what I need:

    <ul style="list-style: none;">
        <li>...</li>
    </ul>
    

    David



  • @Perdrix said in Horizontal white space in TextBrowser:

    &emsp

    I think you will that will not work because it's still breakable, you should need &nbsp;.



  • &nbsp; sort of works, but is pretty narrow. I need loads of them to create the indent I want.

    Is there a "wide" non-breaking space (like &emsp; but non-breaking?

    I wish HTML had a simple list:

    <sl><li>Text</sl>
    

    resulting in

      Text

    Woohoo! I found what I need:

    <ul style="list-style: none;">
        <li>...</li>
    </ul>
    

    David


Log in to reply