QT QTreeView computer disk branch and style

1 Add controls to the ui interface

Insert picture description here

2 Code editing

/**
 * @brief MyDir::showTreeView
 * 展示TreeView
 */
void MyDir::showTreeView()
{
   
    
    
    QModelIndex index;              

Guess you like

Origin blog.csdn.net/qq_45646951/article/details/113180627