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

QPixmap constructs a pixmap from the file with the given fileName, cause application crash.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.8.0
    • GUI: Painting
    • None
    • windows 10 64bit, visual studio 2015, Qt 5.8.0

    Description

      void ImageBrowser::openButtonClicked()
      {
      QString fileName = QFileDialog::getOpenFileName(this,\
      tr("Open Image"), "../",\
      tr("Image Files (*.png *.jpg *.bmp)"));

      if (!fileName.isEmpty())

      { QPixmap pixmap(fileName); // crash while the image size is bigger(like 1024*768) setPixmap(pixmap); }

      }

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            zjmmlab Jian Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes