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 ?

Qt Code:
  1. #if defined Q_WS_WIN
  2. #if defined VISUAL_STUDIO_ABBERATION??
  3. qFindChildren
  4. #endif
  5. #else
  6. findChildren
  7. #endif
To copy to clipboard, switch view to plain text mode 


Qt Code:
  1. Setting_Gui::Setting_Gui( QWidget* parent )
  2. : QDialog( parent )
  3. {
  4. setupUi( this );
  5. qlineconfigs.clear(); /* QStringList */
  6. qboxsconfigs.clear(); /* QStringList */
  7. setWindowTitle(tr("Settaggio & Preferenze"));
  8. textList= this->findChildren<QLineEdit *>();
  9. boxList= this->findChildren<QComboBox *>();
  10. /* QList<QLineEdit*> textList = qFindChildren<QLineEdit*> ( this ); */
  11. for (int i=0;i<textList.size();i++){
  12. connect(textList[i], SIGNAL(textChanged(const QString&)),this, SLOT(WakeUp()));
  13. }
  14. for (int x=0;x<boxList.size();x++){
  15. connect(boxList[x], SIGNAL(currentIndexChanged(const QString&)),this, SLOT(WakeUp()));
  16. }
  17. connect(okButton, SIGNAL(clicked()), this , SLOT(acceptconfig()));
  18. if (is_file(APPLICATION_SETTING)) {
  19. ReadConfig();
  20. }
  21.  
  22. }
To copy to clipboard, switch view to plain text mode