Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. QT项目结构
Forum Updated to NodeBB v4.3 + New Features

QT项目结构

Scheduled Pinned Locked Moved Unsolved Chinese
3 Posts 3 Posters 919 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.
  • L Offline
    L Offline
    learnerChen
    wrote on last edited by
    #1

    请问一下大家,QT项目的项目结构可以修改吗?
    默认是如图的项目结构,即文件被划分为 Sources 和 Headers
    aa82f237-3df6-48fd-aeba-bc5fb78fd0f9-image.png
    但希望的是按照逻辑划分结构,而不是按照文件类型,如图
    30bf4785-fded-4989-a478-9724ab2e593f-1649295076(1).png
    可以实现吗?该如何做呢?
    拜托大家!!

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hokori
      wrote on last edited by
      #2

      可以任意修改的,项目结构不是固定的。

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JasonZhang
        wrote on last edited by
        #3

        项目结构可以通过文件夹的方式分类,不过要注意引入头文件的时候也要加上文件夹名称。
        如果不想多一层文件夹,就需要设置INCLUDEPATH。

        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