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. Cursor's vertical alignment

Cursor's vertical alignment

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 601 Views 1 Watching
  • 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.
  • W Offline
    W Offline
    Wolosocu
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Similar but what are the differences ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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