Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 如何修改qmake 属性
Forum Updated to NodeBB v4.3 + New Features

如何修改qmake 属性

Scheduled Pinned Locked Moved Chinese
3 Posts 2 Posters 4.5k 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.
  • R Offline
    R Offline
    remme123
    wrote on last edited by
    #1

    我用qmake -set 设置属性,可发现qmake -query返回的还是安装时内置的参数值,要怎样才能修改成我需要的值。
    不想重新编译,希望大家指教。
    不修改这个参数qt creator中无法使用qt

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted487
      wrote on last edited by
      #2

      qmake -set也是在生成Makefile时生效的吧?
      Makefile改了的话,就需要重新编译了吧

      1 Reply Last reply
      0
      • R Offline
        R Offline
        remme123
        wrote on last edited by
        #3

        谢谢关注,该问题已经找到了解决办法,是在国外的一个论坛上有位大神提到的。
        QT中有个配置,叫做 “qt.conf”,该文件的具体格式qt官方有解释。在该文件中,我们可以对qmake的各项参数进行设置,qmake 优先加载该配置文件中参数。
        添加好该文件后再使用 qmake -query,你就会发现参数发生了变化。

        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