How to force QML to use direct paths?



  • SwipeView {
            anchors.top: header1.bottom
            anchors.bottom: appWindow.bottom
            anchors.left: appWindow.left
            anchors.right: appWindow.right
    
            //        readonly property url path:
            //            ["C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\SocketPage.qml",
            //            "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\SchedulePage.qml",
            //            "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\TimerPage.qml",
            //            "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\ModesPage.qml"]
    
    
            model: model1
        }
    
        ListModel {
            id: model1
            ListElement {
                title: qsTr("Socket")
                preload: true
                source: "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\SocketPage.qml"
            }
            ListElement {
                title: qsTr("Schedule")
                source: "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\SchedulePage.qml"
            }
            ListElement {
                title: qsTr("Timer")
                source: "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\TimerPage.qml"
            }
            ListElement {
                title: qsTr("Modes")
                source: "C:\dev\r4s\R4S_Sim\qml\UI\RSP\Pages\ModesPage.qml"
            }
        }
    

    direct paths in soure property makes QML nuts
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated c:dev%0D4sR4S_SimqmlUIRSPPagesSocketPage.qml: Network error c:dev%0D4sR4S_SimqmlUIRSPPagesSchedulePage.qml: Network error c:dev%0D4sR4S_SimqmlUIRSPPagesTimerPage.qml: Network error c:dev%0D4sR4S_SimqmlUIRSPPagesModesPage.qml: Network error


  • Moderators

    Hi @Kofr The paths should begin with file://.


Log in to reply
 

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