Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. textfield

    Log in to post
    • All categories
    • H

      Unsolved Can't set focus to ScrollView using Qt.ClickFocus
      QML and Qt Quick • scroll view textfield controls focus focus issue • • HelloWorld2041

      1
      0
      Votes
      1
      Posts
      33
      Views

      No one has replied

    • E

      Unsolved When the enter button is pressed from qml, print textfield to line edit in qwidget
      QML and Qt Quick • textfield qml to qwidget keyboard • • Edanur

      1
      0
      Votes
      1
      Posts
      108
      Views

      No one has replied

    • N

      Unsolved Flickable text input field
      Mobile and Embedded • qml flickable textfield textedit • • navikh333

      2
      0
      Votes
      2
      Posts
      172
      Views

      N

      BUMP !!!!!!!

    • K

      Unsolved How to remove blue focus rectangle getting created on Bluetooth mouse onClick (TextField)
      QML and Qt Quick • qml textfield bluetooth mause onclicked android • • Kuldip Somwanshi

      4
      0
      Votes
      4
      Posts
      475
      Views

      J.Hilk

      @Kuldip-Somwanshi that focus rectangle comes from android directly.

      As far as I know, you can't change that from Qt/Qml code.

      Maybe you could disable it with some java code / styles, but I don't know how exactly 🤷‍♂️

    • J

      Unsolved qtquick settings set default value
      QML and Qt Quick • qtquick qt.lab.settings settings binding loop textfield • • jay mainpy

      4
      0
      Votes
      4
      Posts
      386
      Views

      F

      I just gave a example.You should read what is binding loop.It clearly says you have a binding loop.
      settings.extendExportFile is bound to textfieldId.text
      textfieldId.text is bound to settings.extendExportFile
      Whenever settings.extendExportFile changes which trigger a signal to change textfieldId.text and in turn this trigger a signal to change settings.extendExportFile.This will be happening in a loop, which is known as binding loop.

    • P

      Unsolved "fontSizeMode: Text.Fit" in Textfield
      QML and Qt Quick • qml textfield font • • PawlosCK

      4
      0
      Votes
      4
      Posts
      1319
      Views

      fcarney

      This is how we are sizing and centering text of variable size:

      Text { text: sometext width: somewidth height: someheight font.pointSize: 25 minimumPointSize: 2 fontSizeMode: Text.Fit horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter }
    • L

      Unsolved QML filters in the table header
      QML and Qt Quick • qml tableview hdr filter textfield • • LimarDeWills

      1
      0
      Votes
      1
      Posts
      342
      Views

      No one has replied

    • M

      Solved Make the TextField text to fit the TextField height
      QML and Qt Quick • textfield qml • • Mixlu

      8
      0
      Votes
      8
      Posts
      1605
      Views

      S

      Super ugly widget! I always develop my own text field from scratch and I recommend this to you if it is enough for you. Anyway, the built-in widget is very useful IF it works as expected!

    • D

      Solved TextField selection handles issue
      QML and Qt Quick • virtualkeyboard select all textfield dialog columnlayout • • Deedss

      4
      0
      Votes
      4
      Posts
      467
      Views

      D

      Was able to solve it by outcommenting selectionHandle in the custom keyboard style.qml file.

    • R

      Unsolved How to assign property values temporarily without breaking existing binding in qml?
      QML and Qt Quick • qml textfield binding cancel • • red.green

      2
      0
      Votes
      2
      Posts
      1871
      Views

      sierdzio

      @red.green said in How to assign property values temporarily without breaking existing binding in qml?:

      How do I make sure that the previous binding is kept intact?

      Assigning a value breaks the binding - if it was not this way QML would be horribly broken ;-)

      There are a few ways around it, though. First, most obvious one - set the new value on the binding source. So if you have:

      Text { text: someProperty }

      Assign your temporary value to someProperty. You can add some code that will manage it's temporary nature there (onPropertyChanged or better in some object that holds the value of that property).

      Another way is to set up the binding using Binding element, disable it when Cancel is pressed, then enable it again once your temporary situation changes.

    • S

      Unsolved WebView breaks TextField
      QML and Qt Quick • webview textfield textinput android • • stcorp

      1
      0
      Votes
      1
      Posts
      456
      Views

      No one has replied

    • P

      Unsolved TextField Validation in QML
      QML and Qt Quick • textfield qtquick2 qtquickcontrols • • pra7

      1
      0
      Votes
      1
      Posts
      980
      Views

      No one has replied

    • P

      Solved Time Edit field in QML
      QML and Qt Quick • qtquick2 textfield qtquickcontrol • • pra7

      13
      0
      Votes
      13
      Posts
      5655
      Views

      ODБOï

      @Eeli-K sorry I have read your comment incorrectly :p

    • Qjay

      Unsolved how to pass data from one qml file to another
      General and Desktop • qml textinput textfield • • Qjay

      4
      0
      Votes
      4
      Posts
      10833
      Views

      S

      Hi,

      You need to send property like this:

      var loadwin = component.createObject(root, {someParameter: "Hello!"})

      If you want to send property at any time (not only when your object will create) you need use alias property:

      property alias someParameter: textElement.text Text { id: textElement anchors.centerIn: parent text: "defaultParameter" }

      or signals. But I think alias property will be best way in your case.

      Hope this helps!

    • A

      Unsolved TextField onReturnPressed slot raises twice
      General and Desktop • signal&slot returnpressed textfield • • ars1614

      1
      0
      Votes
      1
      Posts
      461
      Views

      No one has replied

    • guidupas

      Solved Qml TextField inputMethodHints not working on ios
      QML and Qt Quick • qml ios keyboard textfield • • guidupas

      2
      0
      Votes
      2
      Posts
      2269
      Views

      guidupas

      I solved that just removing the validators, but I don't know why it worked without the validator.

      Code below:

      TextField { id: numeroTelefoneTextField anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right width: parent.width * 0.70 height: parent.height * 0.6 placeholderText: qsTr("Seu número") font.bold: true inputMethodHints: Qt.ImhDigitsOnly }
    • G

      Unsolved Qt5.5 Text Input trouble in iOS ( android is OK )
      QML and Qt Quick • qtquick korean input textfield • • Graham.Song

      2
      0
      Votes
      2
      Posts
      936
      Views

      Richard Moe Gustavsen

      This has been fixed for Qt-5.6.1: https://codereview.qt-project.org/#/c/160147/

    • freddy311082

      TextField and Completer
      Mobile and Embedded • qml textfield completer • • freddy311082

      1
      0
      Votes
      1
      Posts
      640
      Views

      No one has replied

    • CharlieG

      How use inputMethodHints property ?
      QML and Qt Quick • inputmethodhint textfield use • • CharlieG

      2
      0
      Votes
      2
      Posts
      3239
      Views

      p3c0

      @CharlieG AFAIK inputMethodHints is related to the virtual keyboard. Depending upon the flags the correspoding keyboard will be invoked(like for eg. numerical keypad only or the both). Use validator instead. In your case for eg:

      TextField { validator: RegExpValidator { regExp: /[a-z]+/ //allow only lowercase alphabets } }