PDA

View Full Version : graphical line



eleanor
3rd July 2008, 03:39
Hi:

http://shrani.si/f/3d/10D/4FlojTDl/qt1.png

1) I would like to know how to make the line under the file,edit....menubar?


2) what's the name of the widget that's named "sidebar" and has maximize and close buttons at the top right corner?

3) how is the new tab implemented (the plus sign).
- every time the "new tab" is clicked, a new right-content-layout is created and saved into an vector?

mooreaa
3rd July 2008, 04:23
You can add the _ around the menu item by placeing an & in front of the letter. You can look up accelerators. Its also in the tutorial if you follow the documentation.

jonman364
3rd July 2008, 07:13
2) QDockWidget, have a look at the Dock Widgets Example (http://doc.trolltech.com/latest/mainwindows-dockwidgets.html)
3) QTabWidget::setCornerWidget and QTabWidget::addTab

lyuts
3rd July 2008, 11:09
Hi:

1) I would like to know how to make the line under the file,edit....menubar?



This line appears automatically when you add a toolbar (in order to distinguish it from menubar).