Results 1 to 2 of 2

Thread: Signature from Visual Studio qFindChildren

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default 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 ?

    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 

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default 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.
    J-P Nurmi

Similar Threads

  1. missing qconfig.h during configure
    By hvengel in forum Installation and Deployment
    Replies: 2
    Last Post: 8th May 2006, 07:14
  2. Menu shortcuts in Visual Studio?
    By kw in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2006, 23:30
  3. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40
  4. Where does VS save its inviornment vars?
    By high_flyer in forum Installation and Deployment
    Replies: 5
    Last Post: 4th February 2006, 10:10
  5. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.