It is the declaration of a private member variable called "u" that is a pointer to an object of type UserWindow. The type UserWindow must be declared earlier in the file either in full or as a forward declaration (which is all that is required for a pointer). As far as I can see, the code in BalaQt's post does not contain the necessary declaration.
For this to compile you would need to add either:
// include the declaration of the UserWindow class
#include "userwindow.h"
OR
// a forward, incomplete declaration
class UserWindow;
// include the declaration of the UserWindow class
#include "userwindow.h"
OR
// a forward, incomplete declaration
class UserWindow;
To copy to clipboard, switch view to plain text mode
near the top of LoginDialog.h (adjust the names as needed).
Bookmarks