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. QlineEdit problem.... cursor to be at first position
Forum Updated to NodeBB v4.3 + New Features

QlineEdit problem.... cursor to be at first position

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.0k 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.
  • K Offline
    K Offline
    karti gesar
    wrote on last edited by
    #1

    when i click the lineedit cursor pointer comes to first ..so that we can type..

    1 Reply Last reply
    0
    • K Offline
      K Offline
      karti gesar
      wrote on last edited by
      #2

      i am creating lineedit at runtime..
      width->setInputMask("0000");
      when i use above code run it ...when i click the lineedit mouse cursor is at foourth position....

      the_T 1 Reply Last reply
      0
      • K Offline
        K Offline
        karti gesar
        wrote on last edited by
        #3

        I can use the back arrow key to go to the left hand side and begin typing even though the field is limited to 4 characters.

        1 Reply Last reply
        0
        • K karti gesar

          i am creating lineedit at runtime..
          width->setInputMask("0000");
          when i use above code run it ...when i click the lineedit mouse cursor is at foourth position....

          the_T Offline
          the_T Offline
          the_
          wrote on last edited by
          #4

          @karti-gesar
          Just have a look at http://doc.qt.io/qt-5/qlineedit.html#cursorPosition-prop

          -- No support in PM --

          1 Reply Last reply
          0
          • K Offline
            K Offline
            karti gesar
            wrote on last edited by
            #5

            i used Qvalidator to solve that problem....

            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