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. QFileDialog being slow when clicking on "My Computer"
Forum Updated to NodeBB v4.3 + New Features

QFileDialog being slow when clicking on "My Computer"

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.5k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    Psychoboy
    wrote on last edited by
    #1

    I am trying to use the QFileDialog to allow a user to choose a folder. When I use the code down below no matter what computer I test it on when the user selects "My Computer" It hangs for 5-10 seconds. Currently been testing in Windows 7.

    Thanks ahead

    @QFileDialog fileDialog(this,"Choose folder",QDir().currentPath());
    fileDialog.setFileMode(QFileDialog::Directory);
    if(fileDialog.exec() == QDialog::Accepted)
    {
    //Do Something
    }@

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      Does opening up "My Computer" take a long time on these machines outside of Qt? In Windows Explorer for example or some other application? In general Windows sucks if it has slow network links to domain controllers or domain members to which you have mapped drives.

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Psychoboy
        wrote on last edited by
        #3

        Nope, These are regular home computers. Opening my computer normally is instant.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #4

          OK then. Which version of Qt are you using? I suggest that your get yourself a debug build of Qt 4.7.2 and build a simple test application againt it which reproduces the problem. Then run it in the debugger and step into the QFileDialog call that is beign slow and see which part of the code in Qt is leading to the delay.

          Good hunting!

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Psychoboy
            wrote on last edited by
            #5

            ya I could try that I guess. Running 4.7.2. I am compiling it with minigw not sure if thats related.

            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