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

setPixel() fails on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 4.8.3
    • Image formats
    • None
    • Mac OS X 10.7.5
    • macOS

    Description

      Creating a QImage with setPixel() method will crash when using size 256x256 on Mac OS X 10.7.5.

          QImage uvtex( 256, 256, QImage::Format_RGB888);
      
          for (int y=0; y < uvtex.height(); y++)
          {
              for (int x=0; x<uvtex.width(); x++)
              {
                  const int red = 0;
                  const int green = 0;
                  const int blue = 0;
                  uvtex.setPixel(x, y, qRgb(red, green, blue));
              }
          }
      

      The same code works fine on Mac OS X 10.6.8 and Windows 7. It also works if the size is changed to 257x257.

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes