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

App crashed when use QMimeData

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.0.0, 5.15
    • Core: Plugins
    • None
    • 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

            thiago Thiago Macieira
            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