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

[regression] Some cursor types fall back to native x11 bitmap version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.0.0 Beta 1
    • GUI: Look'n'Feel
    • None
    • Ubuntu 12.04, 64bit

    Description

      1) Compile and run the example code.
      2) Start a drag from an applications window.

      – Results –
      Expected: Themed cursor (at least that is how it works when compiled with Qt4.8.x)
      Actual: native x11 bitmap - some call it ugly

      class MyWidget : public QLabel
      {
          Q_OBJECT
      public:
          MyWidget()
              : QLabel(0) {
              setMinimumSize(QSize(200, 200));
              setAcceptDrops(true);
          }
      
      protected:
          virtual void mouseMoveEvent(QMouseEvent*) {
              QDrag* drag = new QDrag(this);
              QMimeData* mimeData = new QMimeData;
      
              mimeData->setText(text());
              drag->setMimeData(mimeData);
              drag->exec();
          }
      };
      
      int main( int argc, char ** argv )
      {
          QApplication app(argc, argv);
          MyWidget w1;
          w1.setGeometry(300,300,400,400);
          w1.setText("Test widget");
          w1.show();
      
          return app.exec();
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              jolind Jorgen Lind
              paeglis Gatis Paeglis
              Votes:
              2 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes