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

Possible is a bug in QImage constructor when use QImage::Format

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.0, 4.8.1, 4.8.2
    • Image formats
    • None
    • Windows 7

    Description

      When try to use QImage::Format_XX in QImage constructor. Such as ## img = QImage((const unsigned char)(rgb.data), rgb.cols,rgb.rows, rgb.cols*rgb.channels(), QImage::Format_RGB888); ## The app crash immediately. Note: rgb is an OpenCV Mat image.

      • OS: win7 -
      • the qt Versions that could cause the problem:-
        • from 4.8.0 to 4.8.2(msvc10)
        • 4.8.1(mingw g++ 4.6.2), not tested in 4.8.0 and 4.8.2
          ###The same code work fine in 4.7.4 (mingw g++ 4.6.2, not tested in msvc2008 vc++)

      Attachments

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

        Activity

          People

            kkalland Kim Motoyoshi Kalland (Inactive)
            sunny2038 Boxiang Sun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes