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

FileDialog and sidebar visible property



  • Hello, I'm using qt 5.9.7. I need to hide the side bar belonging to the classical FileDialog popup and to accomplish this task I set to false the property sidebarVisible how explained in https://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html , however the sidebar continues to appear.

    FileDialog {
    id: browseDialog
    ...
    }

    The function opening the file dialog is
    function findDatabase()
    {
    browseDialog.sidebarVisible = false; // HERE THE SIDEBAR PROPERTY IS SET TO FALSE
    browseDialog.selectFolder=selectfolder("NAMEDB3")
    browseDialog.nameFilters= filefilters("NAMEDB3")
    browseDialog.folder = "file:///"+inifolder("NAMEDB3")
    browseDialog.selectDb = true
    //browseDialog.folder = "file:///"+dialogRowBrowse.editText//inifolder("PATHDB3")
    //browseDialog.folder = dialogRowSearch.editText==="" ? inifolder("NAMEDB3") : "file:///"+dialogRowBrowse.editText
    browseDialog.textControl="NAMEDB3"
    browseDialog.dialogReference=dialogRowSearch

        console.log("find db */*" + browseDialog.sidebarVisible);
        browseDialog.open()  // OPEN FILE DIALOG
    }
    

    Is there anyone who had the same problem ?


Log in to reply