Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Help Using UIC3 To Port QT3 .ui Files

    Tools
    2
    2
    4420
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kwikness last edited by

      Hi, I'm trying to port some .ui files from QT3 to QT4.

      I'm running the following operations on my .ui files:

      uic3 frmmain.ui > frmmain.h

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

      uic3 -subdecl frmMain frmmain.h frmmain.ui > frmmainsub.h

      uic3 -subimpl frmMain frmmainsub.h frmmain.ui > frmmainsub.cpp

      However, my frmmainsub.cpp file contains empty implementations:
      @
      void frmMain::fileNew()
      {
      qWarning( "frmMain::fileNew() not yet implemented!" );
      }
      @

      How can I get the code out of the functions that are in the .ui file? I think I've tried all the command line options that uic3 has, but I'm not able to export the code that was in the functions within the old .ui file.

      1 Reply Last reply Reply Quote 0
      • G
        goetz last edited by

        The easiest way would be to port the .ui files to the new Qt 4 format and processing them with uic (from Qt 4) in the future. See "Using a Designer UI File in Your Application":http://doc.qt.nokia.com/4.7/designer-using-a-ui-file.html in the Qt docs for the new approach.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • First post
          Last post