The book of qt 4 the art of building qt applications - phần 2

Cơ sở Thư viện QtCore QtCore là một thư viện một phần yêu cầu của tất cả các chương trình Qt. Trong số những thứ khác, nó làm cho sẵn sau đây: loại dữ liệu cơ bản, chẳng hạn như QString và dữ liệu cấu trúc cơ bản QByteArray | 1 Basics Tools and First Code include QtGui However these library header files are very long which considerably increases the length of the compiling process. This won t be a problem if the compiler supports precompiled header files but only the more recent compilers do such as with GCC from version on . The Base Library QtCore QtCore is a partial library required by every Qt program. Among other things it makes available the following Basic data types such as QString and QByteArray Basic data structures such as QList QVector and QHash Input output classes such as QIODevice QTextStream and QFile Classes with which multiple threads can be programmed including QWaitCon-dition and QThread The classes QObject and QCoreApplication the base class for QApplication None of these classes depends on GUI components. This separation from the GUI allows Qt applications such as command-line programs to be written that do not implement a GUI In nongraphical programs the QCoreApplication class takes on the role of the QAp-plication class in GUI applications It makes an event loop available. This is useful if you require asynchronous communication whether between different threads or via network The GUI Library QtGui The QtGui library contains all classes that are necessary for programming graphical user interfaces including the following The QWidget class and classes derived from it such as QLabel and QPushButton The layout classes including QVBoxLayout QHBoxLayout and QGridLayout Classes such as QMainWindow and QMenu which are needed if you want to add menus to an application 11 QtCore does not contain any network classes but the QtNetwork library can be used with QtCore if networking is required. I 44 Qt at a Glance I Classes for drawing such as QPainter QPen and QBrush Classes providing ready-to-use dialogs including QFileDialog and QPrintDialog The QApplication class QtGui requires the QtCore library. The Network Library QtNetwork The partial library .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.