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

使用this->size() 初始化的 QPixmap 两者大小不一致

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.14.2
    • GUI: Painting
    • None
    • Linux/X11

    Description

      1. 在类中创建一个 QPixmap 或者 QPixmap*
      2. 在构造函数的初始化列表使用 this->size() 初始化QPixmap 或 QPixmap*
      3. 使用qDebug打印 this.size 和 QPixmap::size()
      4. 可以发现两者大小不一致

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            dragontao 龙涛 张
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes