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. Bottom-aligned QPlainTextEdit
QtWS25 Last Chance

Bottom-aligned QPlainTextEdit

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.0k 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.
  • S Offline
    S Offline
    Si_Haswell
    wrote on last edited by
    #1

    Hi there,

    I'm new to Qt and I'm attempting to sub-class QPlainTextEdit in order to create a bottom-aligned text widget.

    I'm a little unsure how or where to make the changes to override the default text placement. From my reading of the help notes I thought I needed to create a corresponding layout class (derived from
    QPlainTextDocumentLayout) to do this. However, I run into obvious problems gaining access QPlainTextDocumentLayoutPrivate members/methods, so I am doubting this is the correct approach.

    I did think this would be a relatively straight-forward task. Am I in the right area or should I be looking at the scroll-area stuff instead?

    Any suggestions/advice much appreciated.

    Thanks.

    Simon

    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