Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Different alignments on the same line in QTextDocument
Qt 6.11 is out! See what's new in the release blog

Different alignments on the same line in QTextDocument

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 839 Views
  • 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.
  • B Offline
    B Offline
    Borty
    wrote on last edited by
    #1

    Hi,
    my problem is that I cannot/don't know how to set different alignments for parts of a text on the same line. Specifically I need to center one part of the line and align right the other part. I don't want to use html because I would have to use it in the entire document (or am I wrong?).

    Is there some way to do it?
    Thanks.

    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