Forum
Sign Up

Bug: Incorrect mouse hover/click behavior on QList/QTree in animation

11 months 1 week ago #1 by Frank
Platform: With QTitanRibbon 5.1.0 and Qt 5.13.1, 64bit.
Bug: when there are checkable items in QListView/QTreeView controls, and you hover over or click your mouse on them, you will see the follow scenario:
1: without animation, all behavior are correct.
when you enable the animation:
2: in win7/offfice2007/office2010 style, the behavior are wrong.
3: but in other office 2013/2016/photoshop are correct.

so I change a little in the controlsdemo example, and verify the issue with attached picture.
Attachments:

Please Log in or Create an account to join the conversation.

More
11 months 1 week ago #2 by Frank
and here is my modification on mainwindow.cpp file for ControlsDemo example:

...
#include <QTreeView>
#include <QStandardItemModel>
...

MainWindow::MainWindow(QWidget* parent)
...

emit updateRecentFileActions(files);

// Frank start here
QStandardItemModel* pSourceTreeModel = new QStandardItemModel;
QStringList szHeaderNameList;
szHeaderNameList << "Source/Index" << "Name";
pSourceTreeModel->setHorizontalHeaderLabels(szHeaderNameList);
QStandardItem* pSourceItem = new QStandardItem("Item1");
pSourceItem->setCheckable(true);
pSourceItem->setTristate(false);
pSourceTreeModel->appendRow(pSourceItem);
pSourceItem = new QStandardItem("Item2");
pSourceItem->setCheckable(true);
pSourceItem->setTristate(false);
pSourceTreeModel->appendRow(pSourceItem);
pSourceItem = new QStandardItem("Item3");
pSourceItem->setCheckable(true);
pSourceItem->setTristate(false);
pSourceTreeModel->appendRow(pSourceItem);

QTreeView* treeView = new QTreeView(this);
treeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
treeView->setModel(pSourceTreeModel);
treeView->setColumnWidth(0, 250);
treeView->setColumnWidth(1, 50);

setCentralWidget(treeView);
// Frank End here
}

when you hover the mouse on items, the check state will change or other unexpected response.

Thanks

Please Log in or Create an account to join the conversation.

More
11 months 1 week ago - 11 months 1 week ago #3 by Eduard
Thank you very much for your comment. The error was reproduced and the fix will be available in the next version.

Software Developer
Last edit: 11 months 1 week ago by Eduard.

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer MachinesEduard
Time to create page: 0.165 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )