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. Error when using QFileDialog::getOpenFileNames
Forum Updated to NodeBB v4.3 + New Features

Error when using QFileDialog::getOpenFileNames

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 996 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.
  • Please_Help_me_DP Offline
    Please_Help_me_DP Offline
    Please_Help_me_D
    wrote on last edited by
    #1

    Hi,

    I try to implement file dialogue in a way to allow picking multiple files. So as in the example from the documentation I use the code:

        QStringList segyFiles = QFileDialog::getOpenFileNames(
                                this,
                                "Select one or more SEGY files to open",
                                "/home",
                                "SEGY (*.seg *.sgy *.segy)");
    

    And in debug mode I get an error:
    : -1: warning: an error occurred in the debugger: Exception at 0x7ffb06daa839, code: 0x6ba: RPC server unavailable, flags = 0x1 (execution cannot be continued) (first chance)

    I use Windows 10, Qt 5.14.1, MSVC 2017 x64

    1 Reply Last reply
    0
    • Please_Help_me_DP Please_Help_me_D

      By the way, this error occurs only in debug mode

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #3

      @Please_Help_me_D
      I think you will find this is an ignorable error/warning message, hence only seen in debug mode. These types of messages do crop up, not just from Qt. At a guess, behind the scenes the dialog is considering whether it can get at the network. This is probably harmless/intended error, but from debugger you sometimes see things like first-chance exceptions reported which you wouldn't see normally and can ignore.

      Also

      On Windows, and macOS, this static function will use the native file dialog and not a QFileDialog.

      If that's you, the exception may be occurring in native-dialog code.

      Please_Help_me_DP 1 Reply Last reply
      2
      • Please_Help_me_DP Offline
        Please_Help_me_DP Offline
        Please_Help_me_D
        wrote on last edited by
        #2

        By the way, this error occurs only in debug mode

        JonBJ 1 Reply Last reply
        0
        • Please_Help_me_DP Please_Help_me_D

          By the way, this error occurs only in debug mode

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by JonB
          #3

          @Please_Help_me_D
          I think you will find this is an ignorable error/warning message, hence only seen in debug mode. These types of messages do crop up, not just from Qt. At a guess, behind the scenes the dialog is considering whether it can get at the network. This is probably harmless/intended error, but from debugger you sometimes see things like first-chance exceptions reported which you wouldn't see normally and can ignore.

          Also

          On Windows, and macOS, this static function will use the native file dialog and not a QFileDialog.

          If that's you, the exception may be occurring in native-dialog code.

          Please_Help_me_DP 1 Reply Last reply
          2
          • JonBJ JonB

            @Please_Help_me_D
            I think you will find this is an ignorable error/warning message, hence only seen in debug mode. These types of messages do crop up, not just from Qt. At a guess, behind the scenes the dialog is considering whether it can get at the network. This is probably harmless/intended error, but from debugger you sometimes see things like first-chance exceptions reported which you wouldn't see normally and can ignore.

            Also

            On Windows, and macOS, this static function will use the native file dialog and not a QFileDialog.

            If that's you, the exception may be occurring in native-dialog code.

            Please_Help_me_DP Offline
            Please_Help_me_DP Offline
            Please_Help_me_D
            wrote on last edited by
            #4

            @JonB Thank you!
            I will just ignore it. Probably this is just Windows and macOS thing as you cited from documentation

            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