Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Porting Qt3 to Qt4: undefined reference
QtWS25 Last Chance

Porting Qt3 to Qt4: undefined reference

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.2k Views
  • 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.
  • B Offline
    B Offline
    Bobby B
    wrote on last edited by
    #1

    Hello,

    I am having troubles trying to port a program in Qt3 to Qt4. The error messages I am getting are things such as
    @undefined reference to 'PrintPreview::PrintPreview(QWidget*, char const*, bool, QFlagsQt::WindowType)@ I am getting a few of these errors.

    To take the example of the PrintPreview class, the files that are related to it are printpreview.h, printpreview.ui.h, and printpreview.ui.

    The weird thing is that all of the errors I get are related to those that have .ui and .ui.h files.

    I am unsure how to solve this and I couldn't find anything online that refers to this.

    If you guys know what the problem is then please feel free to reply.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      The usage of the generated ui header file has changed from Qt3 to Qt4. You might need to adapt your code for this manually. The docs have a page "Using a Designer UI File in Your Application":http://doc.qt.nokia.com/4.7/designer-using-a-ui-file.html that describes the various methods.

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

      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 Extensions
      • Unsolved