Part I: Basic Qt – Ch02. Creating Dialogs 본문

Programming/C++/Qt

Part I: Basic Qt – Ch02. Creating Dialogs

halatha 2008. 7. 31. 12:23

Chapter 2. Creating Dialogs

This chapter will teach you how to create dialog boxes using Qt. Dialog boxes present users with options and choices, and allow them to set the options to their preferred values and to make their choices. They are called dialog boxes, or simply "dialogs", because they provide a means by which users and applications can "talk to" each other.

이 장에서는 Qt를 이용해 어떻게 다이알로그 박스들을 만드는지 가르칠 것이다. 다이알로그 박스들은 사용자들에게 선택사항들을 보여주고, 원하는 값으로 선택사항을 설정하거나 원하는 일을 하게 한다. 그것들이 다이알로그 박스이고, 간단히 "다이알로그"로 불리는데, 왜냐하면 그것들은 사용자들과 어플리케이션들이 서로 "이야기할 수 있게"하는 수단을 제공하기 때문이다.

Most GUI applications consist of a main window with a menu bar and toolbar, along with dozens of dialogs that complement the main window. It is also possible to create dialog applications that respond directly to the user's choices by performing the appropriate actions (for example, a calculator application).

대부분의 GUI 어플리케이션들은 메뉴바와 툴바를 갖는 주 윈도우와, 주 윈도우를 보충하는 여러 개의 다이알로그들로 구성된다. 적절한 동작을 수행해 사용자의 선택 사항에 직접 반응하는 다이알로그 어플리케이션을 작성하는 것이 가능하다(예를 들어, 계산기 어플리케이션).

We will create our first dialog purely by writing code to show how it is done. Then we will see how to build dialogs using Qt Designer, Qt's visual design tool. Using Qt Designer is a lot faster than hand-coding and makes it easy to test different designs and to change designs later.

우리는 코드를 어떻게 되는지 보여주기 위해 순수하게 코드를 작성하는 것 만으로 첫 번째 다이알로그를 만들 것이다. 그 다음에 우리는 Qt의 시각 설계 도구인, Qt 설계자를 이용해 어떻게 다이알로그를 만드는지 볼 것이다. Qt 설계자를 이용하는 것은 손으로 코드를 만드는 것보다 훨씬 빠르고 다른 설계를 시험하거나 나중에 설계를 바꾸는 것을 쉽게 만든다.

Comments