View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015013 | VTK | (No Category) | public | 2014-09-29 09:47 | 2016-08-12 09:55 | ||||
Reporter | B3nni | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | 6.0.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015013: QMainMenu behaves weirdly if QVTKWidget is the central widget of QMainWindow | ||||||||
Description | As already posted to http://stackoverflow.com/questions/25797486/qmainmenu-behaves-weirdly-if-qvtkwidget-is-the-central-widget-of-qmainwindow [^] (without any outcome). Qt Version: 5.3.1 vtk Version: 6.1.0 The main menu in my Qt/vtk application is behaving weirdly if the central widget is QVTKWidget. Errornous clicking behaviour on the menu is as follows: First click: pop down Second click: pop up Third click: does nothing Fourth click: pop down again Now this wouldn't be that bad, but the problem is that the states are remembered. So if the user clicks the menu twice -- i.e., closes it manually -- the next click on the menu bar will not do anything, even if he used other GUI element in between. This leads to an annoying user experience. I created a minimal failing example: #include <QAction> #include <QApplication> #include <QLabel> #include <QMainWindow> #include <QMenu> #include <QMenuBar> #include <QVTKWidget.h> int main(int argc, char** argv) { QApplication app(argc, argv); QMainWindow mainWindow; QMenu *menu = mainWindow.menuBar()->addMenu("TestMenu"); QAction *action = menu->addAction("TestAction"); // Setting the central widget to QVTKWidget, produces a weirdly // behaving menu bar: // First click: pop down // Second click: pop up // Third click: does nothing // Fourth click: pop down again mainWindow.setCentralWidget(new QVTKWidget()); // Setting the central widget to any other QWidget, like QLabel, produces a // normally behaving menu bar: // First click: pop down // Second click: pop up // Third click: pop down again // mainWindow.setCentralWidget(new QLabel("TestLabel")); mainWindow.show(); return app.exec(); } | ||||||||
Tags | qt, VTK | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0034328) B3nni (reporter) 2015-03-26 23:59 |
The bug does not occur any more in vtk 6.2.0 with Qt 5.4.1. Close? |
(0037342) Kitware Robot (administrator) 2016-08-12 09:55 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-09-29 09:47 | B3nni | New Issue | |
2014-09-29 09:48 | B3nni | Tag Attached: qt | |
2014-09-29 09:48 | B3nni | Tag Attached: VTK | |
2015-03-26 23:59 | B3nni | Note Added: 0034328 | |
2016-07-06 16:47 | Berk Geveci | Status | backlog => expired |
2016-08-12 09:55 | Kitware Robot | Note Added: 0037342 | |
2016-08-12 09:55 | Kitware Robot | Status | expired => closed |
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved |
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |