Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qrc://scrollbar.qml:-1 No file name specified



  • I have old project, now I tried to update it to Qt 5.8 and QtQuick.Controls 2.1, but I got error

    qrc://scrollbar.qml:-1 No file name specified
    

    this error is produced by code :

    import QtQuick 2.7
    import QtQuick.Controls 2.1
    import QtQuick.Layouts 1.1
    
    Flickable{
            id:flickable
            anchors.fill: parent
            ScrollBar.vertical: ScrollBar { }
        }
    

    I'm running this code on Android phone. What is wrong here ?



  • Problem solved. I forgot that I have the ScrollBar.qml as custom scrollbar already. So, just renaming it solves the problem.



  • @Slv007 It may be a deployment problem. Have you created a new project and copied your code files from the old one or trying to use existing project files, .pro etc.?



  • I'm using existing project, just changed header of QML file and added Scrollbar



  • Problem solved. I forgot that I have the ScrollBar.qml as custom scrollbar already. So, just renaming it solves the problem.


Log in to reply