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

Crash in QPixmap(QImage) constructor (Qt 4.6 RC1 regression)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 4.6.1
    • 4.6.0
    • Image formats
    • None
    • bc992c8e40fcfdcfe0015dd88dda77c318c10a55

    Description

      The QPixmap constructor that accepts a QImage argument (Qt3Support) crashes because of a NULL pointer. Seems like the code did not get adapted when QPixmap::init() got rewritten for Qt 4.6. Previously it always had a value, now it is set to NULL because of the arguments passed.

      Simple to reproduce (with QT += qt3support set):

      #include <qapplication.h>
      #include <qpixmap.h>
      #include <qimage.h>

      int main(int argc, char **argv)
      {
      QApplication a(argc, argv);
      QImage img;
      QPixmap pix(img); // <-- will always crash
      }

      Harri.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            porten Harri Porten
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes