Results 1 to 6 of 6

Thread: Reverse engineering of ui-file

  1. #1
    Join Date
    Nov 2007
    Posts
    27
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Thumbs down Reverse engineering of ui-file

    e.g.:
    demo.h and demo.cpp is generated from a demo.ui file.

    if you want to make changes to generated files, you either change
    the ui and regenerate, or you start changing the files directly
    and get rid of the ui entirely.

    I wonder if this process is reversible.
    ( to create an ui-file from given cpp and h)

    cheers wally

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Reverse engineering of ui-file

    One might ask, why on the earth would you get rid of .ui files? Whenever you change an .ui file, the corresponding header is automatically re-generated thanks to makefile rules created by qmake. Very simple, isn't it? No handiwork needed at all.
    J-P Nurmi

  3. #3
    Join Date
    Nov 2007
    Posts
    27
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Reverse engineering of ui-file

    jpn

    i wrote :
    "either change the ui and regenerate"

    thats exactly what you describe.

    or:
    you start changing the files directly
    and (get rid of the ui entirely)*.

    * maybe for better understandeing:

    ... and you do not need the ui file anymore if you do not want so

    But the question was:
    Is a this process reversible ?
    Can i make a ui-file from the former created and maybe
    changed cpp and h files ?

    cheers wallly

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Reverse engineering of ui-file

    Quote Originally Posted by wallyqt View Post
    Is a this process reversible ?
    Can i make a ui-file from the former created and maybe
    changed cpp and h files ?
    Try searching Google for "UI Recovery Toolkit" (or "uirtk").
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    wallyqt (17th November 2007)

  6. #5
    Join Date
    Nov 2007
    Posts
    27
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Reverse engineering of ui-file

    Can not find it anymore.

    "UI Recovery Toolkit" (or "uirtk").

  7. #6
    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: Reverse engineering of ui-file

    Quote Originally Posted by wallyqt View Post
    Can not find it anymore.
    Maybe that means the process is irreversible?

    wallyqt: If it was possible, it would only be for veeery simple widgets. If you have a complex widget with modifications to the uic generated code, forget about reversing the process. You should have never deleted the ui file... And you should have never changed the generated c++ files - it's even mentioned in the files themselves...

Similar Threads

  1. Reverse engineering tools
    By vvbkumar in forum General Programming
    Replies: 4
    Last Post: 29th September 2010, 17:48
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

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.