經安全檢測,此網站為安全網站,請放心前往原始網址!

Thread: How to declare global variable outside a class? - Qt Centre

Use extern keyword to avoid allocating some memory for yours global variables every time you include your header globalvar.h in multiple files.

www.qtcentre.org

網址安全性掃描由 google 提供