PDA

View Full Version : Right Click On HeaderView



.:saeed:.
1st February 2011, 05:47
Hello my friends,
i have a table view and some columns in it. when right clicking on its horizontal header view, i want to display a context menu containing my model columns. i want it to let users to change showed columns and for example to hide unnecessary columns . like windows se7en. Must i subclass QHeaderView an re implement its mousePressEvent? thanks;)