i think u didn't see my last post but any way here's the snippets u asked for
{
ui.setupUi(this);
setAcceptDrops(true);
setDropIndicatorShown(true);
m_table = (CMyTable*)parent;
}
CHeader::CHeader(QWidget *parent)
: QHeaderView(Qt::Horizontal,parent)
{
ui.setupUi(this);
setAcceptDrops(true);
setDropIndicatorShown(true);
m_table = (CMyTable*)parent;
}
To copy to clipboard, switch view to plain text mode
and here i associate this header to my custom table view
CCustomColumnTableView
::CCustomColumnTableView(QWidget *parent
){
CHeader * temp = new CHeader(this);
setHorizontalHeader(temp);
.
.
}
CCustomColumnTableView::CCustomColumnTableView(QWidget *parent)
: QTableView(parent)
{
CHeader * temp = new CHeader(this);
setHorizontalHeader(temp);
.
.
}
To copy to clipboard, switch view to plain text mode
Bookmarks