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 and file from a network
Forum Updated to NodeBB v4.3 + New Features

QFileDialog and file from a network

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 4.1k 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.
  • E Offline
    E Offline
    ernestocuzcueta
    wrote on last edited by
    #1

    I'm using the QFileDialog and I can't see the files or folders of the network. I have installed a Windows XP, and I only can see the folders and files of this machine, I can't access to select a network file.
    Someone know how configure the QFileDialog to see this files??
    Mi Code is:
    @
    QFileDialog dialog(this);
    dialog.setFileMode(QFileDialog::AnyFile);
    dialog.setNameFilter(tr("Images (*.png *.xpm *.jpg *.cdr *.psd .bmp *.gif)"));
    dialog.setViewMode(QFileDialog::Detail);
    QStringList fileNames;
    if (dialog.exec())
    fileNames = dialog.selectedFiles();
    @

    Regards Ernesto

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DeVeL-2010
      wrote on last edited by
      #2

      Well, what do you mean with files and folder of the network?
      And are they visible under "explorer"?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        If you use the static functions of QFileDialog, you get the native windows dialog. I think that that one does display your network neighbourhood or whatever it is called these days... You are not setting any properties that can not be set using the static function, so I would recommend you try those.

        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