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. MacOS Ventura 13.5.2 native dialog not working
Forum Updated to NodeBB v4.3 + New Features

MacOS Ventura 13.5.2 native dialog not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 384 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.
  • D Offline
    D Offline
    DeadSo0ul
    wrote on last edited by
    #1

    Hello I have been trying to use QFileDialog to open the macOS dialog from qt with this code

    QString ImagePath = QFileDialog::getOpenFileName(this, tr("Select Image"), QCoreApplication::applicationDirPath(), tr("Image Files (*.jpg *.png)"));
    
    

    which when the code was executed caused the program the crashed.
    I did manage to make the code work by using qt's dialog for files

        QString ImagePath = QFileDialog::getOpenFileName(this, tr("Select Image"), QCoreApplication::applicationDirPath(), tr("Image Files (*.jpg *.png)"), 0, QFileDialog::DontUseNativeDialog);
    

    My question is if I am doing anything wrong and how can I fix this issue

    Thanks!

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

      Hi,

      Which version of Qt is triggering that ?

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Which version of Qt is triggering that ?

        D Offline
        D Offline
        DeadSo0ul
        wrote on last edited by
        #3

        @SGaist
        QT Creatoe: 12.0.1
        Qt: 6.6.0

        SGaistS 1 Reply Last reply
        0
        • D DeadSo0ul

          @SGaist
          QT Creatoe: 12.0.1
          Qt: 6.6.0

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DeadSo0ul Please provide a minimal compilable example that shows the behaviour.

          I have just tested QFileDialog and had no issue with it.

          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