Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62854

QuickControls 2 TextField and TextArea background styling problem when disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.9.0, 5.9.1
    • Quick: Controls 2
    • None
    • 391cba9a1e7fc6b2c8a26e4fbcab90a2bf670e78

    Description

      I wanted to style QuickControls 2 TextFields for an application of mine. Like described here, for this the background item should be changed.

      But the problem here is, that when the item is disabled, the item gets grayed out not by the background but by some other way. Although greying out is Ok as default behaviour, i can't change that by replacing the background Rectangle (and I also didn't find any other way). For Buttons and other controls it is possible to define how the look even if they are disabled, but TextFields and TextAreas are greyed out no matter what i do with the background.

      So if i want my TextfField with a solid border when disabled for example, i can't do it. Because even if i set the border.color of the Rectangle to solid "#000" it will not be black but grey.

      The attached example shows the difference of Items with "same styling applied" for enabled and disabled TextFields, TextAreas and Buttons. As you clearly can see, the TextFields and TextAreas are still looking different when disabled while the Buttons look the same, like it should be by my opinion.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            markus_s Markus Steinhilber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes