Qt basics
Qt History
•   1994 Trollthech was founded
•   1995 First release of Qt
•   1998 release of Qt2
•   2002 release of Qt3
•   Summer 2005 release of Qt4
•   2008 Nokia purchases Trollthech
•   November 2012 release of Qt5
Qt well known customers
Qt Licensing
• LGPL v2.1
   Can be used in commercial apps with closed
   code
  Code changes in libraries must be shared
• Commercial version
  Code changes in libraries don’t have to be shared
  Customer support
Qt Architecture
Qt and Visual Studio

                   +
• QtVsAddin
• Reqirements
Qt and C++
• Qt goes beyond C++
  Seamless objects communication(signals and
   slots)
  Meta Object system(Object Properties, and object
   trees)
• Still works with standard C++ compilers on all
  supported platforms
Qt additional compiling steps
• moc(Meta-Object compiler)
• uic(User Interface compiler)
• rcc(Resources compiler)
Signals and Slots
• Signal
  Emited when paticular event occurs
  Can be used from existing classes and create your
   own
• Slots
  Function which response to signal
  Can also create your own
Signals and Slots
• Requirements
  QObject inheritance
  Q_OBJECT macro
  signals, slots section
  connect, disconnect methods
• Connection types
  Direct, Queued, Unique
Signals and Slots
Additional tools
• Qt Designer
• Qt Linguist
• Qt Assistant
Questions?

cpp-2013 #14 Основи Qt

  • 1.
  • 2.
    Qt History • 1994 Trollthech was founded • 1995 First release of Qt • 1998 release of Qt2 • 2002 release of Qt3 • Summer 2005 release of Qt4 • 2008 Nokia purchases Trollthech • November 2012 release of Qt5
  • 3.
    Qt well knowncustomers
  • 4.
    Qt Licensing • LGPLv2.1  Can be used in commercial apps with closed code Code changes in libraries must be shared • Commercial version Code changes in libraries don’t have to be shared Customer support
  • 5.
  • 6.
    Qt and VisualStudio + • QtVsAddin • Reqirements
  • 7.
    Qt and C++ •Qt goes beyond C++ Seamless objects communication(signals and slots) Meta Object system(Object Properties, and object trees) • Still works with standard C++ compilers on all supported platforms
  • 8.
    Qt additional compilingsteps • moc(Meta-Object compiler) • uic(User Interface compiler) • rcc(Resources compiler)
  • 9.
    Signals and Slots •Signal Emited when paticular event occurs Can be used from existing classes and create your own • Slots Function which response to signal Can also create your own
  • 10.
    Signals and Slots •Requirements QObject inheritance Q_OBJECT macro signals, slots section connect, disconnect methods • Connection types Direct, Queued, Unique
  • 11.
  • 12.
    Additional tools • QtDesigner • Qt Linguist • Qt Assistant
  • 13.