Cursor's vertical alignment



  • I have a desktop application using Qt 5.9. Here is a screenshot of a control I have.

    0_1510484413147_af745e8a-4917-49c5-932f-aa5a04ef92f8-image.png

    Here I have a multiline control where the cursor aligns at the top with the "N" and extends several pixels below it.

    Compare that to:

    0_1510484279641_95f0bb45-d296-4b61-9e01-e1c28962ae5d-image.png

    Notice here how the cursor is more centered.

    Both controls are a QPlainTextEdit and have similar property settings. What could cause this difference and how can it be fixed?


  • Lifetime Qt Champion

    Hi,

    Similar but what are the differences ?


Log in to reply
 

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