Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › QtQuick.Controls import breaks the code

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #22827

    Łukasz

    Hello There,

    I am trying to integrate the FileDialog into my application. The problem is that as soon as I import the QtQuick.Controls into the project, the NavigationStack component stops compiling:

    qrc:/qml/VPlayApps/navigation/NavigationStack.qml:656:5: Unable to assign [undefined] to bool
    
    qrc:/qml/VPlayApps/navigation/NavigationStack.qml:642:5: Unable to assign [undefined] to QQuickItem*

     

    Are there any known bugs regarding this? Here is the exemplary project code:

     

    import Felgo 3.0
    import QtQuick 2.7
    import QtQuick.Controls 2.1
    import "pages"
    import "helper"
    
    App
    {
    	NavigationStack
    	{
    		initialPage: theMainPage;
    
    		Page
    		{
    			id: theMainPage;
    
    			title: qsTr("Test");
    		}
    	}
    }

     

    #22831

    Alex
    Felgo Team

    Hi,

    put the Felgo import after the Controls import, or use a qualified import with “as XYZ”. The controls module also has a component named Page, the order of imports defines from which module it is taken.

    Cheers,
    Alex

    #22835

    Łukasz

    Now it works, thank you. As for the Page, that’s some bad coincidental name :P.

    #22842

    Łukasz

    Although, the problem with FileDialog is not solved… After importing the Controls, the FileDialog type is not visible. On the other hand when importing  Qt.labs.platform 1.0, the FileDialog is visible but the code doesnt compile:

    module "Qt.labs.platform" is not installed

    Do you know how can this be solved?

    #22843

    Alex
    Felgo Team
    #22844

    Łukasz

    Alex,

    Ok, I will check this out. Thank you for your assistance.

    #22845

    Łukasz

    Hi Again Alex,

    I was able to start the Application in live server mode. The only problem I have left is that this only compiles (links actually) with MinGW compiler and does no with MSVC. Here is the Issues screeshoot.

    Also when running the app compiled with MinGW I get a plugin error:

    ERROR: Invalid license key set for plugin: "VPlay" "2.0"

    How to generate a key for this plugin? COuldnt find it in the plugins list.

    Is it that there are some precompiled libs compatible only with MinGW and not MSVC?

    #22873

    Alex
    Felgo Team

    Hi,

    what MSVC version are you using?

    The plugin “VPlay” is the general Feglo module (previously named V-Play). This refers to the general license key, which needs to match the app identifier and version. If the app starts correct, you can ignore this error. It only appears when using the Live Client Module right?

    Cheers,
    Alex

    #22875

    Łukasz

    Hi Alex,

    I am using MSVC 15.9.28307.770

    Yes, the app starts normally. and yes only with live client. Thank you.

Viewing 9 posts - 1 through 9 (of 9 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded