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

Can't set custom cursor for child QWidgets when native child windows exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.0
    • 5.0.0, 5.0.1
    • None
    • Microsoft Windows 7 Ultimate 64-bit SP1, Linux XCB
      Qt 5 stable branch
    • QtWayland: ebb7d2cd7d7c4b52dd2ba36a1e702d15b4eb1e16 QtBase: c24a7377dd9cfb503b43ef3f5a2d5cac9a4e1b8c, pixmap cursor cache for speedup: 63faa00066dfdbcca4f7875d18038c3161c542e2

    Description

      Setting a custom cursor for a QWidget using QWidget::setCursor with a custom QCursor loaded from a PNG resource doesn't work in Qt 5. It works fine in Qt 4.

      To reproduce:

      • run qtbug28879 -m, notice custom cursor on main window
      • run qtbug28879 -m -n, enforcing a native central widget (thus all children native), notice custom cursor on main window not working

      Attachments

        1. qtbug28879_diag_qt5_1.patch
          4 kB
        2. qtbug28879_diag_qt5_afterfix.patch
          7 kB
        3. qtbug28879.tar
          30 kB
        4. qtbug28879.zip
          2 kB
        For Gerrit Dashboard: QTBUG-28879
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            net147 Jonathan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes