#include #include // Only for Visual studio compliers (detect memory leaks) #ifdef _MSC_VER #define _CRTDBG_MAP_ALLOC #include #include #endif int main(int argc, char *argv[]) { #ifdef _MSC_VER // Work only in debug for Visual Studio // An automatic call to _CrtDumpMemoryLeaks at each exit point _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif QApplication a(argc, argv); QLineEdit le; le.setClearButtonEnabled(true); le.show(); return a.exec(); }