how to insert bullet points with text



  • I read this https://forum.qt.io/topic/5111/adding-bullet-points-to-a-qtextedit buy
    I have a few line

    > A 
    > B
    > C
    

    all the lines should show bullets . Can some one guide me how to do that

    let me know what to use that



  • the post you linked clearly explains how to do it in QTextEdit. QPlainTextEdit doesn't have rich text capabilities you can simulate it with:

    QChar bulletChar(0x2022);
    wid.setPlainText(bulletChar + QStringLiteral("  A\n") + bulletChar + QStringLiteral("  B\n") + bulletChar + QStringLiteral("  C\n")); 
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.