C++ flag bit usage: check, add, delete

Original link: https://ifmet.cn/posts/65a4931a/

Brief description: When using C++ / Qt , you will occasionally encounter some properties that need to be set. Record them here for the convenience of the next time.

 // C++ 标志位flages & WS_POPUP // 检查一个标志位flages |= WS_POPUP // 设置一个标志位flages &= ~ ( WS_POPUP | WS_SYSMENU ) // 除去多个标志位// QT 标志位, 除了上面之外,还可用此函数setWindowFlags ( Qt :: FramelessWindowHint , true ) ; // 开启此属性setWindowFlags ( Qt :: FramelessWindowHint , false ) ; // 关闭此属性

This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously.

This article is reproduced from: https://ifmet.cn/posts/65a4931a/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment