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

Quick Controls style is not applied to exported CMake project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • QDS 3.0
    • QDS 2.3
    • other
    • None
    • QDS Berlin- 2021 Week 51/52

    Description

      When using the 'Generate CMakeLists.txt' functionality in QDS under Build menu the produced CMake project doesn't include qtquickcontrols2.

      So when opened, built & ran in Qt Creator the application will use default style for QtQuickControls2 components making the application look very different (and ugly) between QDS and Qt Creator.

      Workaround:

      • Copy qtquickcontrols2.conf under content directory
      • Add RESOURCES qtquickcontrols2.conf in qt6_add_qml_module() in file content/CMakeLists.txt
      • Add qputenv("QT_QUICK_CONTROLS_CONF", "content/qtquickcontrols2.conf"); to main.cpp

      Attachments

        Activity

          People

            tapani.mattila Tapani Mattila
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: