The Qt Sorcerer's Apprentice - Doing Things With Qt That Qt Wasn't Made For

KDE Contributor and Developer Conference

2004 KDE Community World Summit

Speaker:David Faure

Language: English

Talk is scheduled for: Sunday, 22nd of August 2004, 16:30 - 17:30


Check the Schedule for an overview of all talks during this conference.


Qt is without doubt a wonderful toolkit that is very well designed. However, well designed it is, there will always be tiny details here or there that is utterly hard to implement, or perhaps just non obvious.

Kalle and Jesper have in their book "Practical Qt" (which should be in book stores just about aKademy) described 85 different problems in Qt plus solution for these.

The problems range from rather simple problems like:

  • How to hide the header in a listview
  • How to get titles in pop up menus

Over more exotic questions like

  • How do I implement a double QSplitter that splits a window in four
  • How do I emit a signal from a const method

To hard questions like

  • How do I implement a widget that uses a combo box for editing items in QListview
  • How do I set up communication among threads.

Basically the book consist of two kinds of problems:

  • problems that lots of people faces
  • problems that shows a general way of solving issues with Qt

In this presentation we will show examples from the book, among these

  • An intelligent busy cursor
  • Shoot a bug (An interesting debugging approach)
  • How do I set up communication among threads
  • Clipping to non-rectangular and non-contiguously regions

and if time permits

  • Determining screen properties
  • A QProgress dialog showing time to completion
  • A QSpinBox with floating point numbers

About David Faure

David Faure

David Faure is a French KDE Developer working for Klarälvdalens Datakonsult AB (www.klaralvdalens-datakonsult.se) and Trolltech (www.trolltech.com). Maintainer of the file manager / web browser (Konqueror), works on the KDE libraries (component technology and network transparency) and on KOffice (framework, KWord). He wrote series of articles on KDE programming for Linux Magazine France, a chapter for the OPL KDE development book, and tutorials for the IBM developerWorks website. He is also part of the OASIS technical committee defining a standard file format for office suites.


Suggestions and inquiries direct please to KDE aKademy Team.

[ Edit ]