Without knowing about the declaration/assignment of the plotpage variable nobody can tell you if your code is correct. IMO the only reasonable situation where your cast makes sense is something like this:
As long as you don't have rtti disabled don't use static_casts for situations like this.Qt Code:
// ...To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks