Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to display front characters in QLineEdit in case of long text

How to display front characters in QLineEdit in case of long text

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 937 Views 2 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #1

    Dear All,
    I have one situation. There is one QLineEdit widget. When ever I call setText with long text then only the last characters are visible in the QLIneEdit. Is there any way of displaying the front characters without using setCursorPosition(0).

    Please provide your inputs over this.

    Thanks

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

      Hi,

      I'm not aware of such an option in QLineEdit, except using the home method

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        I'm not aware of such an option in QLineEdit, except using the home method

        S Offline
        S Offline
        Sidii
        wrote on last edited by
        #3

        @SGaist

        Dear @SGaist, thanks for your reply. For time being i am using setCursorPosition function to display the front characters.

        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