Signature from Visual Studio qFindChildren
I load all ui QLineEdit QComboBox on a array qlist objekt & vars
but to make enable on visual studio is there a signature define?
and on pro file?
mac, linux , libstatic.a mingw (all make libstatic.a ) and Microsoft Special Church say libstatic.lib .... religious doctrine? ... hare krishna ?
Code:
#if defined Q_WS_WIN
#if defined VISUAL_STUDIO_ABBERATION??
qFindChildren
#endif
#else
findChildren
#endif
Code:
Setting_Gui
::Setting_Gui( QWidget* parent
){
setupUi( this );
qlineconfigs.clear(); /* QStringList */
qboxsconfigs.clear(); /* QStringList */
setWindowTitle(tr("Settaggio & Preferenze"));
textList= this->findChildren<QLineEdit *>();
boxList= this->findChildren<QComboBox *>();
/* QList<QLineEdit*> textList = qFindChildren<QLineEdit*> ( this ); */
for (int i=0;i<textList.size();i++){
connect(textList[i], SIGNAL(textChanged(const QString&)),this, SLOT(WakeUp()));
}
for (int x=0;x<boxList.size();x++){
connect(boxList[x], SIGNAL(currentIndexChanged(const QString&)),this, SLOT(WakeUp()));
}
connect(okButton, SIGNAL(clicked()), this , SLOT(acceptconfig()));
if (is_file(APPLICATION_SETTING)) {
ReadConfig();
}
}
Re: Signature from Visual Studio qFindChildren
There is a define _MSC_VER.
msvc2005: _MSC_VER=1400
msvc.net: _MSC_VER=1300
msvc: _MSC_VER=1200
For more compiler defines, check out mkspecs\*\qmake.conf.