<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] ## 概述 通用數據操作 ``` text(int column) setText(int column, const QString &text) icon(int column) setIcon(int column, const QIcon &icon) checkState(int column) // 復選框 setCheckState(int column, Qt::CheckState state) ... ``` 常用函數 ``` QTreeWidgetItem(int type = Type) // 基本用不到 QTreeWidgetItem(const QStringList & strings, int type = Type) QTreeWidgetItem(const QTreeWidgetItem & other) //復制時除了 type()、treeWidget()、parent(),其他的都復制,是深拷貝,與本條目(包括子孫節點)不共享內存 // 查看父節點 QTreeWidgetItem * QTreeWidgetItem::?parent() const //常量,子節點不能改父節點指針 // 操作/添加子節點 void addChild(QTreeWidgetItem * child) //添加一個子節點到末尾 void addChildren(const QList<QTreeWidgetItem *> & children) //添加多個子節點末尾 void insertChild(int index, QTreeWidgetItem * child) //插入子節點序號 index 序號位置 void insertChildren(int index, const QList<QTreeWidgetItem *> & children)//插入多個子節點到 index 位置 int childCount() const //直接子節點的計數(與孫輩或更低輩分的節點數目無關) // 查找 QTreeWidgetItem * child(int index) const //根據序號獲取直接子節點的指針使用函數 int indexOfChild(QTreeWidgetItem * child) const //根據子節點指針查序號的函數如下 // 移除子節點使用如下函數 void removeChild(QTreeWidgetItem * child) //根據子節點指針解除父子關系 QTreeWidgetItem * takeChild(int index) //根據子節點序號解除父子 關系,返回卸下后的自由節點指針 QList<QTreeWidgetItem *> takeChildren() //卸下所有子節點 // 注意這幾個函數只是解除父子關系,卸下的子節點還存在內存中, // 如果要完全刪除需要手動 delete 每個節點 // 獲取item所在的 QTreeWidget QTreeWidget * QTreeWidgetItem::?treeWidget() const // 設置 flags Qt::ItemFlags QTreeWidgetItem::?flags() const void QTreeWidgetItem::?setFlags(Qt::ItemFlags flags) // 使用 item->setFlags( (item->flags()) | Qt::ItemIsEditable ); //雙擊條目會自動 開啟文本編輯器 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看