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

App crashed when use QMimeData

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15, 6.0.0
    • Fix Version/s: None
    • Component/s: Core: Plugins
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      When I use QMimeData to set the clipboard data, the program crashes.

      crash code:

      QClipboard *c = QApplication::clipboard(); 
      QMimeData d;
      d.setText("aaaaaaaaa");
      c->setMimeData(&d);
      

       

       

      normal code:

      QMimeData *d = new QMimeData;
      d->setText("aaaaaaaaa");
      c->setMimeData(d);
      

       

      Can QMimeData only use the new form?

       

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            kingderzhang kingderzhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes