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

QClipboard on windows 7: strange working with images

    XMLWordPrintable

Details

    • a0af0fbcd4a41fb7be6abf558296682182cdffa0

    Description

      #include <QtWidgets/QtWidgets>
      
      int main( int argc, char *argv[] )
      {
      	QApplication a( argc, argv );
      
      	QLabel *l = new QLabel();
      
      	l->setPixmap( QPixmap::fromImage( QApplication::clipboard()->image() ) );
      	l->show();
      
      	return a.exec();
      }
      

      When I copy image to clipboard from paint, opera or another program or use printscreen button, I have a strange image in pixmap: for copied images they are green, for screenshot it's fully black.

      Attachments

        1. Untitled.png
          571 kB
          Nikita Belov

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              zodiac Nikita Belov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes