摘要: 可以使用std::list的成员方法splice来实现数据的移动。其声明的一种形式为 void splice( const_iterator pos, list&& other, const_iterator it ); 表示将other中位于it内容切片(取出并插入到)*this的pos之前。(有 阅读全文
posted @ 2023-02-10 16:22 warindy 阅读(146) 评论(0) 推荐(0)
摘要: 我们知道,QML中更上层的MouseArea会阻挡下层的MouseArea接收鼠标信号,我们可以通过设置鼠标穿透来规避这种遮挡。 click事件的遮挡 如果将上层的MouseArea的enable属性设置为false,则不再阻挡鼠标的click事件。 Rectangle { anchors.fill 阅读全文
posted @ 2022-10-13 15:22 warindy 阅读(474) 评论(0) 推荐(0)