Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] TextInput with content on left
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] TextInput with content on left

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 2.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.
  • F Offline
    F Offline
    fmontigny
    wrote on last edited by
    #1

    Hi,

    I have
    @TextInput {
    id: textBrowser
    text: "http://ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
    }@

    But I see only the last letters.
    I wish, when i want, move text to see the characters.

    Thx

    fmontigny

    "time is for all cannot simultaneously"

    [FRANCE]

    1 Reply Last reply
    0
    • D Offline
      D Offline
      digitalsurgeon
      wrote on last edited by
      #2

      I am not exactly sure what you want to accomplish.

      What platform are you using. Try setting width of TextInput.

      more doc on TextInput:

      http://doc.qt.nokia.com/latest/qml-textinput.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlong
        wrote on last edited by
        #3

        Try:

        @
        TextInput {
        id: textBrowser
        autoScroll: false
        ...
        }
        @

        or maybe you can use
        @
        textBrowser.cursorPosition = 0;
        @
        whenever you set your long text.

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fmontigny
          wrote on last edited by
          #4

          Is exactly what I want.

          Thx mlong.

          fmontigny

          "time is for all cannot simultaneously"

          [FRANCE]

          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