일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- Programming
- agile
- Software Engineering
- Spain
- hbase
- Malaysia
- Kuala Lumpur
- programming_book
- QT
- Linux
- UK
- management
- Italy
- France
- RFID
- history
- erlang
- Book
- psychology
- hadoop
- web
- Python
- comic agile
- ubuntu
- Book review
- leadership
- Java
- MySQL
- django
- program
- Today
- Total
목록Programming/C++/Qt (9)
Subclassing QDialog Our first example is a Find dialog written entirely in C++. We will implement the dialog as a class in its own right. By doing so, we make it an independent, self-contained component, with its own signals and slots. 우리의 첫 번째 예제는 완전하게 C++로 작성된 Find 다이알로그이다. 우리는 다이알로그를 클래스로서 구현할 것이다. 그렇게 함으로서, 자신의 시그널과 슬롯을 가지고, 우리는 독립적이고, 자체적으로 컴포넌트를 포함하는 것을 만든다. Figure 2.1. The Find dialog The..
Chapter 2. Creating Dialogs Subclassing QDialog Signals and Slots in Depth Rapid Dialog Design Shape-Changing Dialogs Dynamic Dialogs Built-in Widget and Dialog Classes 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 b..
Using the Reference Documentation Qt's reference documentation is an essential tool for any Qt developer, since it covers every class and function in Qt. This book makes use of many Qt classes and functions, but it does not cover all of them, nor does it provide every detail of those that are mentioned. To get the most benefit from Qt, you should familiarize yourself with the Qt reference docume..
Laying Out Widgets In this section, we will create a small example application that demonstrates how to use layouts to manage the geometry of widgets in a window and how to use signals and slots to synchronize two widgets. The application asks for the user's age, which the user can enter by manipulating either a spin box or a slider. 이 부분에서, 우리는 윈도우에서 위젯의 위치 구조를 관리할 레이아웃을 어떻게 사용하고 두 개의 위젯을 동기화시키..
Making Connections The second example shows how to respond to user actions. The application consists of a button that the user can click to quit. The source code is very similar to Hello, except that we are using a QPushButton instead of a QLabel as our main widget, and we are connecting a user action (clicking a button) to a piece of code. 두 번째 예제는 사용자의 동작에 어떻게 반응하는지 보여줄 것이다. 어플리케이션은 사용자가 종료를 위..
Hello Qt Let's start with a very simple Qt program. We will first study it line by line, then we will see how to compile and run it. 매우 간단한 Qt 프로그램을 시작하자. 우리는 우선 행별로 공부하고, 그 다음에 어떻게 컴파일하고 실행하는지 볼 것이다. 1 #include 2 #include 3 int main(int argc, char *argv[]) 4 { 5 QApplication app(argc, argv); 6 QLabel *label = new QLabel("Hello Qt!"); 7 label->show(); 8 return app.exec(); 9 } Lines 1 and 2 inclu..
Chapter 1. Getting Started Hello Qt Making Connections Laying Out Widgets Using the Reference Documentation This chapter shows how to combine basic C++ with the functionality provided by Qt to create a few small graphical user interface (GUI) applications. This chapter also introduces two key Qt ideas: "signals and slots" and layouts. In Chapter 2, we will go into more depth, and in Chapter 3, w..
자료: C++ GUI Programming with Qt 4 전자책(Qt version 4.1.1) 설치버전 및 환경: Qt 4.4.0, MinGw 3.4.5 on Windows XP
download URL: http://trolltech.com/downloads/opensource 사용 버전: Qt Open Source Edition for C++ Developers: Windows Download MinGW가 필요하므로 미리 설치하거나(http://www.mingw.org), 아니면 설치시 옵션 선택을 통해 같이 설치해야 한다 설치 경로에 공백을 허용하지 않아 Program Files에 설치할 수가 없었다(default c:\Qt\4.4.0) 설치 후 환경 변수 설정의 Path 부분에 설치 경로의 bin directory 추가 cmd 창에서 qmake를 입력했을 때 정상 동작을 하면 끝