Results 1 to 2 of 2

Thread: where should i put #define in QtDesigner?

  1. #1
    Join Date
    Jul 2006
    Posts
    79
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default where should i put #define in QtDesigner?

    a self-explanatory question
    I tried typing some #defines under 'forward declarations' but it didn't work.
    any ideas?
    nass

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: where should i put #define in QtDesigner?

    You can place it in an .ui.h file if you use one. If not, put it into a separate header file and include the file into the proper class header using Designer. Or you can do it the "proper" way - subclass the class created by Designer+uic and put your define statement in the subclass.

Similar Threads

  1. Replies: 2
    Last Post: 17th October 2006, 19:25
  2. QtDesigner Layout Help
    By mentat in forum Qt Tools
    Replies: 5
    Last Post: 13th July 2006, 14:55
  3. Define compiler in qmake
    By philski in forum Newbie
    Replies: 3
    Last Post: 24th April 2006, 21:47
  4. QtSingleApplication
    By mule in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 19:21
  5. define column in designer QT4.1.1
    By raphaelf in forum Qt Tools
    Replies: 2
    Last Post: 26th February 2006, 20:30

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.