Results 1 to 4 of 4

Thread: how to port from qt3 to qt4

  1. #1
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question how to port from qt3 to qt4

    i used uic3 for converting to qt4 from qt3 but i am unable to change .ui file i.e GUI(forms).
    please help me in details steps how to convert from qt3 to qt4

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: how to port from qt3 to qt4

    This should help Porting to Qt 4
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: how to port from qt3 to qt4

    i used following commands

    uic3 FORM.ui > FORM.h
    uic3 -impl FORM.h FORM.ui > FORM.cpp

    uic3 -convert FORM.ui > FORM4.ui

    qt3to4 PROJECT.pro

    after doing this what is the use of FORM.h, FORM.cpp, FORM4.ui, i am unable to use these files in project. Suppose i want to change some widgets how can i change (through designer it's fine ), even if i changed through designer , if that .ui file is added in my project i am errors.

    please help

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to port from qt3 to qt4

    Doing this:
    Qt Code:
    1. uic3 FORM.ui > FORM.h
    2. uic3 -impl FORM.h FORM.ui > FORM.cpp
    To copy to clipboard, switch view to plain text mode 
    or this
    Qt Code:
    1. uic3 -convert FORM.ui > FORM4.ui
    To copy to clipboard, switch view to plain text mode 
    are two separate approaches to the same problem. The second approach is the neatest. List the new ui file in your Qt4 project's PRO file FORMS variable. Then create the QWidget-derived wrapper class to use the form as described in the docs Santosh linked to. It is not magic, not completely automatic, not devoid of required understanding, and it is not without a level of effort on your part.

    Once you have done that... if you strike problems then ask an intelligent question containing some information on what you have actually done, actually seen, and expected.

Similar Threads

  1. how to port from qt3 to qt4
    By narlapavan in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2013, 08:17
  2. Replies: 1
    Last Post: 13th March 2013, 08:44
  3. Com Port
    By bismitapadhy in forum Qt Programming
    Replies: 4
    Last Post: 6th June 2009, 12:17
  4. MFC DLL port to Linux
    By steg90 in forum General Programming
    Replies: 1
    Last Post: 12th July 2007, 18:57

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
  •  
Qt is a trademark of The Qt Company.