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

QTreeView auto expand doesn't work on Mac

    XMLWordPrintable

Details

    • macOS

    Description

      QTreeWidget auto expand doesn't work on Mac. QTreeWidget::setAutoExpandDelay() documentation says that settings delay it enables auto expanding for drag and drop. Try to drag file and hover on below application treeview and nothing happens on Mac. On Windows it expands item under mouse fine.

      #include <QtWidgets>
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          QFileSystemModel filemodel;
          filemodel.setRootPath(QDir::currentPath());
          QTreeView treeView;
          treeView.setModel(&filemodel);
          treeView.setAcceptDrops(true);
          treeView.setAutoExpandDelay(500);
          treeView.show();
          return app.exec();
      }
      

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes