Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 QRegion 和 mouseMove 事件实现了自动隐藏功能。现在我有另一个问题。我需要在运行时更改 QRegion 的几何形状,但找不到任何合适的命令。你能帮我解决这个问题吗?
只需为其分配另一个 QRegion。例子:
QRegion myRegion(/* ... */); // Change myRegion myRegion = QRegion(/* ... */);