You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Qt Creator新手咨询:如何移除侧边栏非当前项目(不删除)

How to Clean Up Qt Creator Sidebar: Remove (Not Delete) Non-Current Projects

Hey there! I remember how cluttered Qt Creator's sidebar can feel when you've got multiple projects open at once—let me walk you through simple, safe ways to tidy it up without losing any of your work.

Quick Trick: Keep Only Your Active Project

If you just want to strip the sidebar down to your current working project, this one-click method is perfect:

  • First, make sure your target project is selected (highlighted) in the sidebar.
  • Head to the top menu bar, click File > Close All Projects Except Current.
    That’s it! All other projects will disappear from the sidebar immediately, but none of their files are deleted—you can reopen them anytime you need to.

General Method: Remove Specific Projects

If you only want to take out a few projects instead of all, use one of these two straightforward approaches:

Right-Click Shortcut

  • Find the project you want to remove in the sidebar.
  • Right-click on its project name (the one with the .pro or .cmake extension).
  • Select the option labeled Close "[YourProjectName].pro" (the exact text will match your project file). This removes it from the sidebar right away.

Using the Projects Mode

  • Switch to the Projects mode by clicking the wrench icon on the left-hand sidebar.
  • At the top of this view, you’ll see a horizontal list of all open projects.
  • Hover over the project you want to remove, and a small X icon will pop up next to its name. Click that X to close the project (and remove it from the sidebar).

Critical Note

All these actions only close the project within Qt Creator—they do NOT delete any files from your computer. Your projects are still saved in their original folders, and you can reopen them anytime via File > Open File or Project.

内容的提问来源于stack exchange,提问作者user10172241

火山引擎 最新活动