Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QPainter Vs QPaintDevice; which one to choose?

QPainter Vs QPaintDevice; which one to choose?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 338 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Swati777999S Offline
    Swati777999S Offline
    Swati777999
    wrote on last edited by
    #1

    Hi All,

    Hope you're doing well.

    I was going through the book Fundamentals of Qt Programming where in Ch.6, it's written both QPainter and QPaintDevice can be used for painting. Apart from the difference in member functions of these classes, is there any difference in the performance of the objects of these classes?

    Thanks

    “ In order to be irreplaceable, one must always be different” – Coco Chanel

    eyllanescE 1 Reply Last reply
    0
    • Swati777999S Swati777999

      Hi All,

      Hope you're doing well.

      I was going through the book Fundamentals of Qt Programming where in Ch.6, it's written both QPainter and QPaintDevice can be used for painting. Apart from the difference in member functions of these classes, is there any difference in the performance of the objects of these classes?

      Thanks

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by eyllanesc
      #2

      @Swati777999 What you point out is wrong. QPaintDevice is a class that is painted using QPainter, and from that class QWidget, QImage, QPixmap, etc. inherit.

      Please read the docs: https://doc.qt.io/qt-5/qpaintdevice.html

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved