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

ColorDialog: Implement the ColorInputs.qml component in C++



    • All
    • 261f527b5a (qt/qtdeclarative/dev) b9d7eb0c9a (qt/qtdeclarative/6.4) b9d7eb0c9a (qt/tqtc-qtdeclarative/6.4) 261f527b5a (qt/tqtc-qtdeclarative/dev) b9d7eb0c9a (qt/tqtc-qtdeclarative/6.4.0)


      The ColorDialog will be added to the QtQuick.Dialogs module in 6.4

      The ColorDialog has a few controls (a ComboBox and some TextFields), inside of a layout, that shows the color values of the currently selected color. 
      These TextFields can be edited to modify the currently selected color too.

      In the current state, they are all declared in qml, and use javascript functions as signal handlers. We want to avoid having to do any logic in javascript, which is why I should write most of this logic in C++.

      ColorInputs.qml is also incredibly buggy at the moment. The different items will not always get the correct size that they should.

      With the Imagine style  the ComboBox will get the same size as the TextFields, which is not what we want. The TextFields should get more space allocated to them, than the ComboBox.


        1. ColorDialogBasic640.png
          52 kB
          Oliver Eftevaag
        2. ColorDialogFusion640.png
          37 kB
          Oliver Eftevaag
        3. ColorDialogImagine640.png
          54 kB
          Oliver Eftevaag
        4. ColorDialogMaterial640.png
          49 kB
          Oliver Eftevaag
        5. ColorDialogUniversal640.png
          60 kB
          Oliver Eftevaag
        6. image-2022-05-30-16-32-52-750.png
          3 kB
          Oliver Eftevaag
        7. image-2022-05-30-16-43-49-517.png
          2 kB
          Oliver Eftevaag

        Issue Links

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



              hurlevent Oliver Eftevaag
              hurlevent Oliver Eftevaag
              0 Vote for this issue
              1 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes