Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] how to use fixqt4header.pl

[solved] how to use fixqt4header.pl

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • S Offline
    S Offline
    SherifOmran
    wrote on last edited by SherifOmran
    #1

    hi there
    i wonder what is the sysntax for fixqt4header.pl
    it keeps on asking about many environment parameters. I recently installed Qt5.9.1 to port an application written by qt4.8.7

    Also, inside the fixqt4header.pl, it is written, this is part of qt porting tools?
    where are these tools?

    thanks in advance

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! A good general porting guide can be found on our wiki. To answer your specific question, fixqt4headers.pl automatically migrates #include directives from Qt4 names to their corresponding Qt5 ones. Let's say you have a directory /home/omran/myproject/src containing files for a Qt4-based project.

      • open a terminal
      • cd into said directory
      • run fixqt4headers.pl with the parameter --qtdir=XXX, where XXX points to your Qt5 installation, something like /opt/Qt5/.....

      If everything went well, it will print something like: Done. Modified 23 of 42 file(s).

      1 Reply Last reply
      2
      • S Offline
        S Offline
        SherifOmran
        wrote on last edited by
        #3

        thank you, thats fine. I have another problem with sql static call and made another thread for it. I would appreciate if you help, thank you.

        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