Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16259

Run Environment variables aren't passed to Boot to Qt application

    XMLWordPrintable

Details

    • 47d5100c99e77fa5c7cc24070ae18525a93e84b9

    Description

      I'm trying to set QT_SCALE_FACTOR to 2 via Projects > Run > Run Environment, but it doesn't get propagated to the application. I have to call qputenv("QT_SCALE_FACTOR", "2") in C++ instead.

      Some info in the Qt Versions tab of the Options dialog:

      Name:
      Qt 5.7.0 (qt5.7-n6-debug)
      ABI:
      arm-linux-generic-elf-32bit
      Source:
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local
      mkspec:
      devices/linux-imx6-g++-b2qt
      qmake:
      /home/mitch/dev/qt5.7-n6-debug/hostbin/bin/qmake
      Default:
      debug
      Version:
      5.7.0
      QMAKE_SPEC
      linux-g++
      QMAKE_VERSION
      3.0
      QMAKE_XSPEC
      devices/linux-imx6-g++-b2qt
      QT_HOST_BINS
      /home/mitch/dev/qt5.7-n6-debug/hostbin/bin
      QT_HOST_DATA
      /home/mitch/dev/qt5.7-n6-debug/hostbin
      QT_HOST_LIBS
      /home/mitch/dev/qt5.7-n6-debug/hostbin/lib
      QT_HOST_PREFIX
      /home/mitch/dev/qt5.7-n6-debug/hostbin
      QT_INSTALL_ARCHDATA
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local
      QT_INSTALL_BINS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/bin
      QT_INSTALL_CONFIGURATION
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/etc/xdg
      QT_INSTALL_DATA
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local
      QT_INSTALL_DEMOS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/examples
      QT_INSTALL_DOCS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/doc
      QT_INSTALL_EXAMPLES
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/examples
      QT_INSTALL_HEADERS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/include
      QT_INSTALL_IMPORTS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/imports
      QT_INSTALL_LIBEXECS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/libexec
      QT_INSTALL_LIBS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/lib
      QT_INSTALL_PLUGINS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/plugins
      QT_INSTALL_PREFIX
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local
      QT_INSTALL_QML
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/qml
      QT_INSTALL_TESTS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/tests
      QT_INSTALL_TRANSLATIONS
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/local/translations
      QT_SYSROOT
      /home/mitch/dev/qt-enterprise/5.5/Boot2Qt/nitrogen6x-eLinux/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
      QT_VERSION
      5.7.0
      

      Application output:

      Starting remote application."FB_MULTI_BUFFER" "2"
      "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
      "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=mfw_v4lsrc,v4l2src"
      "QT_IM_MODULE" "qtvirtualkeyboard"
      "QT_QUICK_CONTROLS_STYLE" "Flat"
      "/opt/untitled/bin/untitled" ()
      QML debugging is enabled. Only use this in a safe environment.
      Unable to query physical screen size, defaulting to 100 dpi.
      To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
      

      I've attached a screenshot of the Boot to Qt kit configuration in Creator.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes