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

QPixmap::toWinHICON() for empty icon does`nt return NULL HICON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • Some future release
    • 4.6.0, 4.6.1
    • Image formats
    • None
    • Windows 7, Lates versions of QT and QT Creator

    Description

      For example this code crashes explorer.exe if I pas the result to ItaskbarList3 Com-interface.

      HICON ITaskBar::iconToHICON(const QIcon &icon) const
      {
      return icon.pixmap(32).toWinHICON();
      }

      when I call with empty icon. like as : ITaskBar::iconToHICON(QIcon());

      But folowing code not crashes.

      HICON ITaskBar::iconToHICON(const QIcon &icon) const
      {
      if (icon.isNull())
      return 0;
      else
      return icon.pixmap(32).toWinHICON();
      }

      It`s normal?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            nguide Vasiliy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes