evergreen
10th June 2011, 16:23
Hello,
I’ve created my own class that inherits from QWidget. This widget is centered on my QMainWindow and countains several widget like some QSpinBox and QLineEdit.
The problem is that when a QSpinBox or a QLineEdit at the bottom of the widget is right-clicked, the widget automaticly moves up to make the right-clicked menu visible on the mainWindow.
I would like to know if there’s a way to forbidde that either by making the widget unmovable or defining some properties for this menu that would avoid that move.
Thanks
I’ve created my own class that inherits from QWidget. This widget is centered on my QMainWindow and countains several widget like some QSpinBox and QLineEdit.
The problem is that when a QSpinBox or a QLineEdit at the bottom of the widget is right-clicked, the widget automaticly moves up to make the right-clicked menu visible on the mainWindow.
I would like to know if there’s a way to forbidde that either by making the widget unmovable or defining some properties for this menu that would avoid that move.
Thanks