Results 1 to 6 of 6

Thread: #include from designer

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default #include from designer

    Hi,
    A question: Wich are advantages/disavantages to make incude from QT Desinger (in implementaion/in declaration; eg form a MainForm) instead of other place (ie MainForm.ui.h)
    Thanks
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    India
    Posts
    54
    Thanks
    1
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: #include from designer

    could u plz explain ur question a little bit more...

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: #include from designer

    I created a mainForm from designer; then I insert 10 include file from desinger (some in implementation, other in declaration); then I compile; later I insert other include files
    at the top of file mainform.ui.h because I need them; Was better re-open designer and insert these last include filese from designer? Or is better deleted all include files inserted from desinger and add them all at the top of mainform.ui.h file? (and better for what?)
    Thanks
    Regards

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: #include from designer

    IMO the best way is not to use .ui.h files at all.
    Last edited by jacek; 10th March 2006 at 13:22.

  5. #5
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: #include from designer

    I''m support it too, but what author mean under to make incude from QT Desinger (IMHO it is using .ui.h now) it puzzle
    a life without programming is like an empty bottle

  6. #6
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: #include from designer

    I actually sort of liked the .ui.h files. They allowed you to seperate GUI behaviour (slots that strictly relate to the GUI but aren't already there) from the real purpose of the widget/dialog. Of course, that's still possible, but it would mean subclassing twice. And the .ui file should contain that behaviour.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

Similar Threads

  1. Error: Using Multiple files
    By 3nc31 in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 09:23
  2. Can't create an object : initialisation problem ?
    By Nyphel in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 09:07
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. use button from another Window
    By raphaelf in forum Qt Programming
    Replies: 11
    Last Post: 2nd March 2006, 20:31
  5. [QT4 & XP] QTreeView issue with Designer form
    By incapacitant in forum Newbie
    Replies: 3
    Last Post: 2nd March 2006, 17:42

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.