How to use QT Creator to create a sidebar and implement close-buttons for tabs?
Greeting!
How do I add a sidebar using the Designer in QT Creator?
Also, how do I add close-buttons to the tabs using the Designer?
I’m new to Qt, and want to convert my Balsamique mockup into Qt before anything else!
Please tell me how I can do these two things using QT Creator.
Thank you,
Alec Taylor
10 replies
Check the CLTab component [projects.forum.nokia.com] included on Colibri [projects.forum.nokia.com]
Hey, I want to use QT (QuickTime) with Qt… :-P
Back in topic:
Greeting!
How do I add a sidebar using the Designer in QT Creator?Also, how do I add close-buttons to the tabs using the Designer?
A sidebar is probably a QDockWidget inside a QMainWindow; to add close buttons just set the QTabWidget “tabsClosable” property in the property editor.
Thanks everyone for your helpful replies, especially;
Hey, I want to use QT (QuickTime) with Qt… :-PBack in topic:
Greeting!
How do I add a sidebar using the Designer in QT Creator?Also, how do I add close-buttons to the tabs using the Designer?
A sidebar is probably a QDockWidget inside a QMainWindow; to add close buttons just set the QTabWidget “tabsClosable” property in the property editor.
Check the CLTab component [projects.forum.nokia.com] included on Colibri [projects.forum.nokia.com]
AlecTaylor, Can you please clarify what do you mean by SideBar, usually Side bar is commonly considered as a Desktop widget on right side which can hose several other widget like calendar, weather ,close, notes etc, This comes by default with Windows Vista (atleast) and Google also has sidebar if you download Google Desktop search.
By any chance do you want to do that?? Is this possible for you to attach some kind of immage which can give us some clear picture what exactly are you referring to.

When minimized I’d like it to go to the very left of the window, with the active-file directory [ie; /Calendar/DailyTasks] as it’s text, and an expand button.
I am currently in the process of collating classes best-suited for my project into a list. Please help me complete population of the following;
- QTextStream
- QTextEdit
- QTreeWidget
- QTabBar ⊕ CLTab
- QDockWidget
- QTreeView
- QDirModel
You must log in to post a reply. Not a member yet? Register here!







