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

Strange behavior of cursor icon on QSplitter handle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.3.0 RC1
    • 5.1.1
    • None
    • Mac OS X 10.8.4 + Qt 5.1.1
    • 9e6f0f16ab9d6c5fca1ded90dd6b3feb953712e1

      On Mac OS X mouse cursor won't change its icon when moved over QSplitter handle if winId() of a widget placed in the splitter is accessed.

      testsplitter
      #include <QtWidgets>
      
      int main(int argc, char * argv[])
      {
          QApplication app(argc, argv);
          
          QMainWindow mainWindow;
          
          QSplitter *splitter = new QSplitter;
          
          QWidget *widget1 = new QWidget;
          
          // removing the next line will fix the issue!
          WId winId = widget1->winId();
          
          splitter->addWidget(widget1);
          splitter->addWidget(new QWidget);
          
          mainWindow.setCentralWidget(splitter);
          mainWindow.show();
          
          return app.exec();
      }
      

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

            sorvig Morten Sørvig
            mentalmushroom Pugach Yaroslav
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes