Results 1 to 5 of 5

Thread: QDevelop .ui files

  1. #1
    Join Date
    Jun 2008
    Location
    UK
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QDevelop .ui files

    Hi,

    If i create a new dialog for my project in QDevelop, and edit it in QtDesigner all i have is the .ui file in my project directory.

    I was wondering how i go about generating .h/cpp files for this ui file, I know i can do it manually by running uic mydlg.ui, but can qdevelop do this for me? It does it automatically for a new projects UI, so i was wondering if it can be done for additional new UIs, or do i have to generate it manually for each UI and update it each time i change something.

    Thanks,

    Jack

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDevelop .ui files

    I don't think that You manually compile all Yours project. So define a rule for UI files in Yours enviroment.

  3. #3
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDevelop .ui files

    So, you created the UI files outside of QDevelop and want QDevelop to handle them?
    What happens when you execute Project->Add Existing Files?

  4. #4
    Join Date
    Jun 2008
    Location
    UK
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QDevelop .ui files

    Thanks for the replies, I create the files in qdevelop, i.e add a new dialog, then qdevelop launches qdesigner, and i get left with the .ui file in my project files window of the IDE.

    What im wondering is if QDevelop can be told to generate the .h from the .ui using qmake/uic, or do i have to do it outside the IDE, and add the .h as an existing file?

    Thanks again
    Jack

    EDIT: I just found out that i just #include "ui_name_of_ui.h" and it generates it for me *me feels silly*, thanks for the help guys.
    Last edited by tntcoda; 21st June 2008 at 19:38.

  5. #5
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDevelop .ui files

    Next time, right click the form, and see what the option "Dialog Subclassing" does...

Similar Threads

  1. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05
  2. QDevelop auto-complete function and Qt4
    By degs2k4 in forum Qt-based Software
    Replies: 8
    Last Post: 6th May 2008, 18:43
  3. QDevelop - current development
    By ghorwin in forum Qt-based Software
    Replies: 2
    Last Post: 30th March 2007, 14:54
  4. Replies: 5
    Last Post: 22nd September 2006, 08:04
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.