Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-8822

color property cannot use conditional operator in QDS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • QDS 4.0
    • QDS 3.9
    • Qt Creator Integration
    • None
    • QDS Berlin - 2023 Week 3/4

    Description

      cannot write the below code in QDS

      property color fontColor1: nightMode ? "#f4f3f7" : "#000000"

      it will be converted into the below automatically

      property color fontColor1:  "#ffffff"

      this can be produced in default new QDS project
      below is fine as a workaround

      property var fontColor1: nightMode ? "#f4f3f7" : "#000000"
      property string fontColor1: nightMode ? "#f4f3f7" : "#000000"
      

       

       

       

      Attachments

        Activity

          People

            henning Henning Gründl
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: