[Qt-interest] QTreeWidget header information

Marek Bronowicki marek at cyberdeus.pl
Sun May 30 16:55:41 CEST 2010


Found a solution:
m_ui->treeWidget->headerItem()->text(m_ui->treeWidget->indexAt(pos).column());
based on string comparison menu is just what I need :)

W dniu 2010-05-30 16:09, Marek Bronowicki pisze:
> Hello
>
> I need some simple solution for custom context menu.
> there is QTreeWidget::itemAt(QPoint) to gather item information, but I
> need to get concrete header column.
> What I need is a context menu depending on what column header has been
> clicked.
>
> Regards,
> Marek Bronowicki
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>    




More information about the Qt-interest-old mailing list