PDA

View Full Version : RTQI : Run-Time Qt Informations ?



fullmetalcoder
9th July 2006, 21:26
I'm wondering if there's a way to know informations on Qt libraries on run-time...
I know that the class QLibraryInfo provides some basic info but they are too *basic*...

As an examples how can I know if the available libs are a commercial or an open source edition ?

wysota
18th July 2006, 12:01
I'm wondering if there's a way to know informations on Qt libraries on run-time...
I know that the class QLibraryInfo provides some basic info but they are too *basic*...
Are they?


As an examples how can I know if the available libs are a commercial or an open source edition ?


#include <QLibraryInfo>

int main(){
qDebug(qPrintable(QLibraryInfo::licensee()));
qDebug(qPrintable(QLibraryInfo::licensedProducts() ));
qDebug(qPrintable(QLibraryInfo::buildKey()));
return 0;
}
In my case gives:

Open Source
OpenSource
i686 Linux g++-4 full-config