Results 1 to 4 of 4

Thread: access the source code of the .ui forms

  1. #1
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    1
    Platforms
    Windows

    Default access the source code of the .ui forms

    hi , i am trying to make a simple interface using Qt designer i made a toolbar and i would like to see the source code of what i made , the only files that i can find are the mainwindow.ui , mainwindow.h , mainwindow.c and the main.c & either of them have the source code written on it , so where can i find it ??
    Sorry for being stupid

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: access the source code of the .ui forms

    If you use Qt Creator without changing any settings, all the generated and compiled files will be in the build directory.
    If you have something like widget.ui, the generated source code is most likely in ui_widget.h

  3. The following user says thank you to tbscope for this useful post:

    Hamza217 (4th May 2011)

  4. #3
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    1
    Platforms
    Windows

    Default Re: access the source code of the .ui forms

    thanks for the answer but somehow i cant find it , i remeber when i first doscoverd Qt 1 month ago , i found a similar file using the Qt Creator search option , now .. i cant find it any where
    any way thanks again tbscope

  5. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: access the source code of the .ui forms

    When you create a project with Qt Creator, there will be 2 directories:

    myproject
    myproject-build-desktop

    The first one only contains the written source code and data files.
    The second one, the build dir, contains the executable, the generated libraries, the generated data, the makefile, the generated moc files, the generated source files, etc...

    It is in this second dir that you'll find the source of your ui file.

Similar Threads

  1. Replies: 1
    Last Post: 22nd September 2010, 08:15
  2. Access UI Components from different source files
    By cevou in forum Qt Programming
    Replies: 3
    Last Post: 13th February 2009, 23:44
  3. Source code
    By afflictedd2 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2008, 09:04
  4. source code
    By Colx007 in forum Newbie
    Replies: 5
    Last Post: 19th December 2007, 09:15
  5. Qte source code
    By Gaurav vyas in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st July 2007, 14:11

Tags for this Thread

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.