this is not bad idea. bad idea it's using of private Qt's files.
but if you find all vars and add to your class then your class will work fine if you move to next version of Qt, but if you still want to use private Qt's file then ther is no guaranty that you code will work on next version of Qt. I had such situation.
btw, this is from one of Qt's private headers.
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//





Reply With Quote
Bookmarks