void QHeaderView::setResizeMode(ResizeMode mode)
Sets the constraints on how the header can be resized to those described by the given mode.
//設置限制,header如何重大小到那些mode描述的
void QLabel::setBuddy(QWidget * buddy)
Sets this label’s buddy to buddy.
//設置label的buddy爲nuddy
int QDialog::exec()
Shows the dialog as a modal dialog, blocking until the user closes it. The function returns a DialogCode result.
顯示dialog爲模式dialog,直到用戶關閉
QTreeWidgetItem * QTreeWidget::invisibleRootItem() const
Returns the tree widget’s invisible root item.
//返回樹狀不可見的根 item
QSettings
QSettings::QSettings(const QString & organization, const QString & application = QString(), QObject * parent = 0)
Constructs a QSettings object for accessing settings of the application called application from the organization called organization,
and with parent parent.
//構造一個setting對象,爲訪問程序的設置從組織
void QSettings::beginGroup(const QString & prefix)
Appends prefix to the current group.
添加prefix到當前組
QVariant QSettings::value(const QString & key, const QVariant & defaultValue = QVariant()) const
Returns the value for setting key. If the setting doesn’t exist, returns defaultValue.
//返回seeting key的值
QStringList QSettings::childKeys() const
Returns a list of all top-level keys that can be read using the QSettings object.
//返回所有頂層keys的列表,可以使用QSetting對象來讀
void QSettings::endGroup()
Resets the group to what it was before the corresponding beginGroup() call.
//復位組到 調用對應的beginGroup()之前的組
void QTreeView::sortByColumn(int column, Qt::SortOrder order)
Sets the model up for sorting by the values in the given column and order.
設置model 按照給定的列和順序,按值排序