December 17, 2010

AlecTaylor AlecTaylor
Lab Rat
15 posts

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

December 17, 2010

QtK QtK
Lab Rat
1140 posts

It’s Qt and not QT .

December 17, 2010

paulo paulo
Ant Farmer
174 posts

Check the CLTab component [projects.forum.nokia.com] included on Colibri [projects.forum.nokia.com]

December 17, 2010

peppe peppe
Ant Farmer
1029 posts
QtK wrote:
It’s Qt and not QT .

Want to add a s/QT/Qt/g as an automatic filter? :-)

 Signature 

Software Engineer
KDAB (UK) Ltd., a KDAB Group company

December 17, 2010

VCsala VCsala
Lab Rat
339 posts

And what about QTableWidget? :) (Sorry guys we should have concentrate on the question, my apology)

December 19, 2010

QtK QtK
Lab Rat
1140 posts
VCsala wrote:
And what about QTableWidget? :) (Sorry guys we should have concentrate on the question, my apology)

Well checking for word match should do. So in that case QTableWidget won’t be affected on QT will be replaced with Qt.

December 19, 2010

VCsala VCsala
Lab Rat
339 posts

Now we are really going off-topic… (anyway yes this would do :))

December 19, 2010

peppe peppe
Ant Farmer
1029 posts

Hey, I want to use QT (QuickTime) with Qt… :-P

Back in topic:

AlecTaylor wrote:
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.

 Signature 

Software Engineer
KDAB (UK) Ltd., a KDAB Group company

December 24, 2010

AlecTaylor AlecTaylor
Lab Rat
15 posts

Thanks everyone for your helpful replies, especially;

peppe wrote:
Hey, I want to use QT (QuickTime) with Qt… :-P

Back in topic:

AlecTaylor wrote:
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.

paulo wrote:
Check the CLTab component [projects.forum.nokia.com] included on Colibri [projects.forum.nokia.com]

December 24, 2010

Immii Immii
Lab Rat
239 posts

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.

December 24, 2010

AlecTaylor AlecTaylor
Lab Rat
15 posts

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
 
  ‹‹ [Solved] qmake with subdirs      lower case filenames ››

You must log in to post a reply. Not a member yet? Register here!