Now I convert the WPF program to Qt, because the project need cross-platform. In WPF program, the layout(Panel, Grid, StackPanel...) is also control, so it also can receive the mouse event. but in Qt, the layout(QLayout, QGridLayout...) isn't derived by QWidget, so i want to know if the layout class can receive the mouse event. I write a simple sample, derived a class from QVBoxLayout, find I can't receive the mousePressEvent when I press the mouse in the layout. thanks.
Bookmarks