KDE 2/Qt Programming Bible

Arthur Griffith

Publisher: IDG, 2001, 753 pages

ISBN: 0-7645-4682-1

Keywords: Programming

Last modified: Jan. 25, 2014, 1:08 a.m.

If KDE 2/Qt can do it, you can do it too…

Packed with lucid explanations, real-world examples, and a complete widget reference, this authoritative guide gives you all the tools you need to master the complex programming architecture of the K Desktop Environment and the Qt toolkit. From widget and window basics to advanced topics such as drag-and-drop objects and inter-process communications, Linux(r) programming expert Arthur Griffith shows you step by step how to build dialogs, events, toolbars, and other interface elements that will bring your applications to life on the Linux desktop.

Inside, you'll find complete coverage of KDE 2/Qt programming

  • Understand in detail how KDE 2, Qt, and the X Window System fit together
  • Discover the programming tips and tricks that will turn you into a widget master
  • Make the most of basic GUI building blocks, from windows to scroll bars
  • Manipulate shapes, colors, and more to customize the look and feel of your GUI
  • Discover how KDE 2 programming differs from GNOME and Windows(r) programming, line by line
  • Find quick reference information on widgets, methods, calls, types, and more
  • Part I: Getting Started
    1. What Is This Thing Called KDE?
      • The Structure of a KDE Application
      • The Software Levels
        • System
        • glib
        • X11
        • C++ API
        • Qt Classes
        • KDE Classes
        • Applications
      • About Qt
        • The QObject Class
        • The MOC Compiler
      • About KDE
      • Events Happen
      • The Names of Things
    2. Creating and Displaying a Window
      • Hello Qt
      • Hello KDE
      • A Simple Window Class
      • Compound Widgets
      • Listening to a Button
      • Defining a Slot for a Signal
    3. Laying Out Widgets in a Window
      • Geometric Widget Placement
      • The Size of a Widget
      • Fixed Grid Widget Placement
      • Stretched Grid Widget Placement
      • Widgets in Multiple Grid Cells
      • Vertical Box Layout
      • Horizontal Box Layout
      • Boxes with Alignment
      • A Layout Within a Layout
      • A Layout That Is Also a Widget
      • ISa Instead of HASa
      • Widgets Inside Widgets (Horizontal)
      • Widgets Inside Widgets (Vertical)
    4. Displaying a Pop-Up Dialog
      • A Simple Dialog
      • Using Signals and Slots
      • A Signals and Slots Checklist
      • KDialogBase
      • KDialogBase Buttons
      • Using KDialogBase to Build a Dialog
      • An Alternate Approach To KDialogBase Data
      • KMesageBox Derives From KDialogBase
    5. The Predefined Dialogs
      • The About Dialog
      • QFileDialog
      • QTabDialog
      • QProgressDialog
    6. Menus and Toolbars
      • KTMainWindow
      • The Menu Bar
      • Pop-up Menus
      • The Toolbar
      • The Status Bar
    7. Grouping Widgets
      • KButtonBox
      • Grouping Buttons with a Single Slot
      • Grouping Radio Buttons
      • Grouping Check Buttons
      • Some Widgets Are Also Frames
      • Framing Options
        • The Box QFrame
        • The Panel QFrame
        • The WinPanel QFrame
        • Using QFrame to Draw Lines
      • Sharing Window Real Estate
  • Part II: Step by Step
    1. The Mouse and the Keyboard
      • From a Port to a Slot
      • The Mouse Events
      • Mouse Grabbing and Releasing
      • Changing the Cursor's Appearance
      • Designing Your Own Cursor
      • Keyboard Events
    2. Graphics File Formats
      • Two Kinds of Graphics
      • The XPM Format
      • Showing XPM from Data
      • Loading a Pixmap from a File
      • Using a Pixmap to Decorate a Button
      • The XBM Format
      • The Bitmap Utility
      • Customizing Graphics for Menus and Toolbars
    3. Fonts
      • The Anatomy of a Font
      • Names of the Fonts
      • Setting the Font of a Widget
      • Selecting a Font with QFontDialog
      • Selecting a Font with KFontDialog
      • Font Placement by Metrics
      • Font Placement by Rectangles
    4. Colors
      • The Architecture of Color
      • Constructing a QColor Object
      • The KColorDialog
      • QColors in a QColorGroup
      • QColorGroups in a QPalette
      • Setting Colors for a Few Widgets
      • Using the QPalette for Your Own Coloring
    5. Drawing and Painting with QPainter
      • Painting Pixels to a QPaintDevice
      • Some Rectangle Tricks
      • Pens
      • Standard Brushes
      • Creating Custom Brushes
      • Every QPaintDevice Has Metrics
      • Pixel Drawing
      • Drawing Arrays of Pixels
      • Vector Line Drawing
      • Line Segments and Polygons
      • Ellipses and Circles
      • Drawing Parts of Circles and Ellipses
      • Rectangles with Rounded Corners
      • Drawing Pixmaps and Text
    6. Graphics Manipulation
      • Using a QPicture to Store Graphics
      • Painting Graphics to a Printer
      • Printer Information and Control
      • Fitting a Drawing to a Window
      • Fitting a Drawing to a Subwindow
      • Clipping
      • Scale
      • Shear
      • Translate
      • Rotate
      • A Quadratic Bezier Curve
      • Animation with Pixmap Sequences
      • Accessing Pixel Values with QImage
      • Using an Icon Provider in a QFileDialog
    7. Drag and Drop
      • A Simple Text Drag and Drop
      • Drag and Drop of Both Text and Image Data
      • Cut and Paste
    8. Interprocess Communications and Applets
      • The DCOP Communications Model
      • Command-Line Arguments
      • A Unique Application
      • An Example Applet
    9. Some General Utility Classes
      • The String Classes
        • Examining a QString
        • Modifying a QString
        • QString Number Conversion
        • The QString Translator
        • The White Space of a QString
        • QStringList
      • Running a Timer
      • The QDate Class
      • The QTime Class
      • The QDateTime Class
      • Writing to a File
      • Reading from a File
      • Streaming Text to a File
      • Streaming Text from a File
    10. Internationalization and Configuration
      • A Translatable Application
      • Declaring Translatable Strings
      • Manipulating Translated Strings
      • Constructing the Translation Files
      • Unicode and QChar
      • Configuration
  • Part III: Reference and Mechanics
    1. The Widgets of Qt
      • QButton
      • QButtonGroup
      • QCheckBox
      • QColorDialog
      • QComboBox
      • QDialog
      • QFileDialog
      • QFontDialog
      • QFrame
      • QGrid
      • QGroupBox
      • QHBox
      • QHButtonGroup
      • QHeader
      • QHGroupBox
      • QIconView
      • QInputDialog
      • QLCDNumber
      • QLabel
      • QLineEdit
      • QListBox
      • QListView
      • QMainWindow
      • QMenuBar
      • QMessageBox
      • QMultiLineEdit
      • QPopupMenu
      • QPrintDialog
      • QProgressBar
      • QProgressDialog
      • QPushButton
      • QRadioButton
      • QScrollBar
      • QScrollView
      • QSemiModal
      • QSizeGrip
      • QSlider
      • QSpinBox
      • QSplitter
      • QStatusBar
      • QTabBar
      • QTabDialog
      • QTabWidget
      • QTextBrowser
      • QTextView
      • QToolBar
      • QToolButton
      • AVBox
      • QVButtonGroup
      • QVGroupBox
      • QWidget
      • QWidgetStack
      • QWizard
    2. The Widgets of KDE
      • KAboutContainer
      • KAboutContainerBase
      • KAboutContributor
      • KAboutDialog
      • KAboutKDE
      • KAboutWidget
      • KAccelMenu
      • KAnimWidget
      • KAuthIcon
      • KBugReport
      • KButtonBox
      • KCharSelect
      • KCharSelectTable
      • KCModule
      • KColorButton
      • KColorCells
      • KColorCombo
      • KColorDialog
      • KColorPatch
      • KComboBox
      • KContainerLayout
      • KDatePicker
      • KDateTable
      • KDialog
      • KDialogBase
      • KDialogBaseButton
      • KDirectionButton
      • KDockMainWindow
      • KDockWidget
      • KDoubleNumInput
      • KDualColorButton
      • KEdFind
      • KEdGotoLine
      • KEdit
      • KEdReplace
      • KFileDialog
      • KFontChooser
      • KFontDialog
      • KFormulaEdit
      • KFormulaToolBar
      • KGradientSelector
      • KHSSelector
      • KHTMLView
      • KIconButton
      • KIconDialog
      • KIconView
      • KImageTrackLabel
      • KIntNumInput
      • KIntSpinBox
      • KKeyButton
      • KLed
      • KLineEdit
      • LKineEditDlg
      • KListBox
      • KListView
      • KMenuBar
      • KNumInput
      • KPaletteTable
      • KPanelApplet
      • KPasswordDialog
      • KPasswordEdit
      • KPopupMenu
      • KProgress
      • KRestrictedLine
      • KRootPermsIcon
      • KRuler
      • KSelector
      • KSeparator
      • KSpellConfig
      • KSpellDlg
      • KSplitList
      • KStatusBar
      • KStatusBarLabel
      • KTextBrowser
      • KTextPrintDialog
      • KTMainWindow
      • KToolBar
      • KToolBarButton
      • KWizard
      • KXYSelector
    3. Comparative Anatomy of Windowing Programs
      • A Win32 Program
      • A KDE Program
      • A Point-by-Point Win32 and KDE Comparison
        • Initialization
        • The Main Window
        • Responding to Events
        • The Main Loop
        • Program Shutdown
        • Global Data
      • A GNOME Program
  • Appendix A: What's on the CD-ROM?
  • Appendix B: Setting Up for Software Development
  • Appendix C: Methods
  • Appendix D: Returned By
  • Appendix E: Enumerated Types
  • Appendix F: Signals
  • Appendix G: Slots

Reviews

KDE 2/Qt Programming Bible

Reviewed by Roland Buresund

Decent ****** (6 out of 10)

Last modified: Jan. 23, 2014, 11:35 p.m.

A very good introduction and later, a good reference. Recommended.

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

captcha

required