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
-
It's Qt and not QT .
-
Check the "CLTab component":https://projects.forum.nokia.com/colibri/wiki/CLTab included on "Colibri":https://projects.forum.nokia.com/colibri
-
[quote author="VCsala" date="1292616848"]And what about QTableWidget? :) (Sorry guys we should have concentrate on the question, my apology)[/quote]
Well checking for word match should do. So in that case QTableWidget won't be affected on QT will be replaced with Qt.
-
Hey, I want to use QT (QuickTime) with Qt... :-P
Back in topic:
[quote author="AlecTaylor" date="1292591806"]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?
[/quote]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;
[quote author="peppe" date="1292759065"]Hey, I want to use QT (QuickTime) with Qt... :-P
Back in topic:
[quote author="AlecTaylor" date="1292591806"]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?
[/quote]A sidebar is probably a QDockWidget inside a QMainWindow; to add close buttons just set the QTabWidget "tabsClosable" property in the property editor.
[/quote][quote author="paulo" date="1292615517"]Check the "CLTab component":https://projects.forum.nokia.com/colibri/wiki/CLTab included on "Colibri":https://projects.forum.nokia.com/colibri[/quote]
-
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. -
!http://i51.tinypic.com/zyhllk.png(Mockup of a Text Editor)!
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