QHeaderView
Supports the box model. The sections of the header view are styled using the ::section sub control. The section Sub-control supports the :middle, :first, :last, :only-one, :next-selected, :previous-selected, :selected, and :checked pseudo states.
Sort indicator in can be styled using the ::up-arrow and the ::down-arrow Sub-control.
See Customizing QHeaderView for an example.
- C/C++ code
m_pMyTable = new QTableWidget(3, 3, this);QHeaderView* headerView = m_m_pMyTable->horizontalHeader();headerView->setObjectName ("MyTableHeaderName");
:middle, :first, :last,这几个参数如何用它?
------解决方案--------------------