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 crashes for existing files [solved]
Qt 6.11 is out! See what's new in the release blog

QFileDialog crashes for existing files [solved]

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.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.
  • K Offline
    K Offline
    krix
    wrote on last edited by
    #1

    If I select an existing file or I type an existing file name to the input field, the dialog is crashes. Does not react for clicks, does not exiting.
    @ filename = QFileDialog::getSaveFileName(
    this,
    "Save Image",
    "a_" + datetime_string + ".png",
    "image/png (*.png)"
    );@
    What it the problem?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You don't give enough information. What OS are you running ? Which version of Qt are you using ? When exactly does it crash ?

      What does a run through the debugger tell you ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        krix
        wrote on last edited by
        #3

        Hi SGaist,
        A clean and rebuild solve the problem. Thanks the reply!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Running on Windows ? :)

          Anyway, nice you found and and thanks for sharing, can you also please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            krix
            wrote on last edited by
            #5

            No, running on Fedora 18, Qt Creator 2.8.0 based on Qt 4.8.5, QMake version 2.01a. Next time I will update the thread title with [solved] tag immediately.

            Many thanks:)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You're welcome !

              Strange, it's typically the kind of strange crash I have mostly on Windows.

              Anyway, happy coding !

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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