PDA

View Full Version : What's a 'Dock' and...



Patrick Sorcery
27th August 2010, 04:22
Greetings everyone. Glad 2 c this forum for qt users. I'm completely new to GUI, and hope 2 learn a lot from you~ now as a newbie I have 2 very simple questions:

1 What does 'QDockWidget' do? Once I saw a sentence saying that many people prefer 'dock' something in gui, and what does that mean:confused:

2 Now I want 2 make a 'list': after a file is opened, its name will be added to the file list and showed. Which widget will do?

Thanx a lot!

tbscope
27th August 2010, 05:40
1 What does 'QDockWidget' do? Once I saw a sentence saying that many people prefer 'dock' something in gui, and what does that mean:confused:

A dock widget is a window inside another window. It can also be outside the main window. You can drag that window to a corner in the main window and it will stick to that corner (like a toolbar). See the documentation.


2 Now I want 2 make a 'list': after a file is opened, its name will be added to the file list and showed. Which widget will do?
QListWidget

Please read the documentation.