QtQuick.Controls 2.0 import issue



  • I have already asked this question here but I encountered the same issue at the second time.
    I am developing under Windows on Qt 5.7.0 with MSVC x64 compiler.
    In my project I want to use a Menu control to implement a context menu that opens by right mouse button click.
    I placed import QtQuick.Controls 2.0 to the header of a QML file.
    But here comes a magic -- QQmlApplicationEngine is able to resolve this import statement only in a DEBUG build.
    When I try to make a release build, it builds without errors and perfectly loads and displays QML files with import QtQuick.Controls 1.4 until the application execuiton flow reaches the import statement mentioned above. If application is launched from console then that will be shown in STDOUT: ?????? ?QtQuick.Controls? ?????? 2.0 ?? ??????????. It is very unintelligible message, I suspect these question marks appeared because of lack of debug symbols but I am not quite sure.

    I had the same issue when I used to build with MinGW toolchain.

    GitHub repository with the project


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.