×

Multiple-Choice Questions

Which is the correct code statement to create canvas in PyQt?

20. Which is the correct code statement to create canvas in PyQt?

  1. self.image = QImage(self.size(), QImage.Format_RGB32)
  2. self.image = QImage()
  3. self.image = QImage(QImage.Format_RGB32, self.size())
  4. None of the above

Answer

The correct answer is: A) self.image = QImage(self.size(), QImage.Format_RGB32)

Explanation

The correct code statement to create canvas in PyQt is:

self.image = QImage(self.size(), QImage.Format_RGB32)

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.