QList and delete

前端 未结 2 1890
粉色の甜心
粉色の甜心 2021-02-08 03:40

I have a QList with pointers to objects with class type Model. I would like to delete appropriately this QList after it has being used. I

2条回答
  •  你的背包
    2021-02-08 04:32

    As seen from an earlier revision, this was OP's approach:

    QListlstMdls;
    
    get Data(lstMdls);
     /*
      * Do other things
      */
    for(int i=0;i

提交回复
热议问题