Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41954

QDesktopServices::openUrl() causes access vioaltion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.3.2
    • Core: URL Handling
    • None
    • Windows 7 SP 1 64bit, MSVC 2013 x64

    Description

      Switched from Qt 4.8.5 32bit to Qt 5.3.2 64bit.

      Input: QUrl with QString as parameter.

      Scenario:

      QString file = QDir::toNativeSeparators("C:/Users/eroeoes/Pictures/rk.png");
      QString mailto = "mailto:user@foo.com?subject=Just a test&attachment=\"" + file + "\"";
      QDesktopServices::openUrl(QUrl(mailto));
      

      Expected result: Code opens standard mail client.

      Given result: Access violation in qdesktopservice.cpp on row 196.

      Attachments

        1. access_violation_qdesktopservices.PNG
          49 kB
          Erek Röös
        2. main.cpp
          0.4 kB
          Erek Röös
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            peekaboo42 Erek Röös
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes