You forgot something:
Qt Code:
  1. class Test
  2. {
  3. public:
  4. static const float KValue;
  5. Test();
  6. };
  7.  
  8. const float Test::KValue=3.0; //<---
To copy to clipboard, switch view to plain text mode