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

Generate the qputenv calls from .qmproject when updating cmakefiles.txt

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • QDS 2.3
    • All Other Issues
    • None
    • QDS Berlin - 2021 Week 49/51, QDS Berlin- 2021 Week 51/52

      The .qmlproject file usually defines an enviroment like this:

        Environment {
              QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf"
              QT_AUTO_SCREEN_SCALE_FACTOR: "1"
              QT_LOGGING_RULES: "qt.qml.connections=false"
              QT_ENABLE_HIGHDPI_SCALING: "0"
              /* Useful for debugging
             QSG_VISUALIZE=batches
             QSG_VISUALIZE=clip
             QSG_VISUALIZE=changes
             QSG_VISUALIZE=overdraw
             */
          }
      

      This envoirment should also be defined in main.cpp/import_qml_plugins.h

      I suggest adding a function to import_qml_plugins.h that is called in main.cpp.
      The function would contain the qputenv calls like this:

      qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
      qputenv("QT_LOGGING_RULES", "qt.qml.connections=false");

      This way main.cpp itself does not have to be touched.

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

            tapani.mattila Tapani Mattila
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes