I tend to just go:
Qt Code:
#include "myclass.h" #define DBNAME "MyDatabase"To copy to clipboard, switch view to plain text mode
Not very C++y, but it works and its simple. I don't see any reason to use a static variable instead.
I tend to just go:
Qt Code:
#include "myclass.h" #define DBNAME "MyDatabase"To copy to clipboard, switch view to plain text mode
Not very C++y, but it works and its simple. I don't see any reason to use a static variable instead.
Bookmarks