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. QtQuick Controls TextField bug
Qt 6.11 is out! See what's new in the release blog

QtQuick Controls TextField bug

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 1.9k 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
    Firefell
    wrote on last edited by
    #1

    Hello,

    I have a problem when I use the TextField qml component with a big font size.
    In my example, font.pointsize = 34 and when I edite the text, the characters are outside the TextField.

    !http://imageshack.com/a/img901/1296/c6PLjI.jpg(Screenshot Bug)!

    I have not done style modification in my TextField component. If I reduce the font.pointsize to 16, it's work fine.
    My application run on Android 4.4 with Qt 5.3 or Qt 5.4 beta (same problem).

    The code:
    @import QtQuick 2.3
    import QtQuick.Controls 1.2

    TextField {
    property string color: "dark"
    property int colorFactor: 87

    function isEmpty(){
        if( text === "" ){
            return true;
        }
        else{
            return false;
        }
    }
    
    textColor : Qt.darker(color, colorFactor)
    font.pointSize: 34
    

    }
    @

    It's really a bug ? Have you this problem ?

    Thank you for your help.

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

      Hi,

      Something's not clear here, does it happen only when editing or all the time ?

      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
      • F Offline
        F Offline
        Firefell
        wrote on last edited by
        #3

        During edition.

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

          You should take a look at the "bug report system":http://bugreports.qt-project.org to see if it's something know, if not, please consider opening a new report providing a minimal compilable example showing the behavior

          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
          • F Offline
            F Offline
            Firefell
            wrote on last edited by
            #5

            I create an issue :
            https://bugreports.qt-project.org/browse/QTBUG-42203

            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