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

QDesktopServices::openUrl() causes access vioaltion

XMLWordPrintable

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes