Qt Creator新手咨询:如何移除侧边栏非当前项目(不删除)
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
.proor.cmakeextension). - 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
Xicon will pop up next to its name. Click thatXto 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




