Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Help Using UIC3 To Port QT3 .ui Files
Qt 6.12 LTS is out! See what's new in the release blog

Help Using UIC3 To Port QT3 .ui Files

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 5.2k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved