Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. FileDialog and sidebar visible property

FileDialog and sidebar visible property

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 210 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sacinieri
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved