tailieunhanh - Rapid GUI Development with QtRuby phần 8
Tham khảo tài liệu 'rapid gui development with qtruby phần 8', ngoại ngữ, ngữ pháp tiếng anh phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 7. Home Stretch Debugging a QtRuby application 78 Minimal High Extensive irb main 007 0 Qt DebugLevel High 2 irb main 008 0 w1 Qt MyWidget nil classname QWidget method QWidget - methodIds candidate list No matching constructor found possibles QWidget QWidget QWidget QWidget QWidget QWidget QWidget const char QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget const char Qt WFlags setCurrentMethod ArgumentError unresolved constructor call Qt Widget The output shows that Qt Widget has four forms of initializer none of which fit the syntax we were trying. Debug Channels QtRuby also has a number of debug channels which can be turned on or off. These let you look into the toolkit at runtime. QTDB_NONE No debug information QTDB_AMBIGUOUS unused QTDB_METHODMISSING unused QTDB_CALLS show method call information QTDB_GC show garbage collection information QTDB_VIRTUAL display virtual method override information QTDB_VERBOSE unused BOOKLEET Report erratum Chapter 7. Home Stretch Debugging a QtRuby application 79 QTDB_ALL Turn on all debug channels These debug channels are set using Qt Internal setDebug Qt QtDebugChannel QTDB_VIRTUAL BOOKLEET Report erratum Chapter 8 Korundum The KDE project is an open source Unix desktop environment. As discussed in Section A Little History on page 5 it is heavily based on Qt. Many aspects of KDE are extensions of things available in Qt so there are many Qt widgets that have been extended in KDE. Korun-dum provides a set of Ruby bindings to these additional classes. In other words QtRuby is to Qt as Korundum is to KDE. Installing Korundum You need the Korundum package available from the same location as QtRuby. First the KDE libraries must be installed. This can be accomplished in a very simliar manner to the installation of Qt as described in Section How to install Qtfrom source on page 8. KDE is readily available from most Linux distributions and from Fink on Mac OS. KDE can be .
đang nạp các trang xem trước