Results 1 to 3 of 3

Thread: " #define " Where can i find words?

  1. #1

    Default " #define " Where can i find words?

    Hello,

    I uses Qt3.3.3 Qt designer in Linux.

    I wrote code "#define NUM 10" in *.ui file.

    I thought "where is it?" so I had found codes in folder ".moc , .ui " at ".cpp, .h" .

    However I can't . Where can i see codes "#define"?


    thanks.

  2. #2
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: " #define " Where can i find words?

    You should not write code in a *.ui file because they are used by the Qt designer, write your code in a *.ccp or .h file

  3. #3
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: " #define " Where can i find words?

    And don't write them in the ui_* files either, they will be regenerated by moc. And don't use defines like that, use const int NUM = 10;
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

Similar Threads

  1. Replies: 0
    Last Post: 13th March 2009, 16:38
  2. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 10:06
  3. odd double widgets
    By jhearon in forum Qt Programming
    Replies: 1
    Last Post: 23rd February 2008, 19:18
  4. GCC can't find QSqlDatabase!!
    By brevleq in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2007, 08:05
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15

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.