Non resizable TextField "underline" ?
-
Hello,
After upgrading to Qt5.12, I am experiencing problem with the size of TextField's "underline" (the gray line that is fixed on the bottom of TextField). Before the upgrade this line was exactly the same size as I am giving to TextField. Now when I grab and place a new TextField it has size of width:120 height:43, so the line I am having problem with is always wide:120, no mater what width I am giving to TextField. In my case it comes bigger than i want, both on Qt Creator and the devices I'm deploying. Anyone with idea or fix for this? Thanks!
-
Solution found, still cannot explain why it's happening that way... anyway there it is.
This was added to TextField and now the default underline is gone:
background: Item { width: parent.width height: parent.height Rectangle { color: "#000000" height: 2 width: parent.width anchors.bottom: parent.bottom } }