MantisBT - VTK | |||||
View Issue Details | |||||
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 | ||||
Project | TBD | ||||
Type | incorrect functionality | ||||
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(); } | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | qt, VTK | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|