- 论坛徽章:
- 0
|
Widget
1. Downloaded here
http://doc.trolltech.com/3.1/aclock-example.html
, the three files was put in a folder named peter,
2. qmake –project->qmake->make, in one of the three files I add #endif, then complation completed.
3. in main.cpp, aclock.h is included, but I think it should be aclock.cpp, because aclock includes a.h, but itself is not referred in main! How can it be so?
4. finished adding your custom widget, you can not only see it in tools|custom, but also in tool bar area on the top of the main window, after choosing window|toolbar|cutom
5. Note: when you add a custom widget, the dilog reguire two item: the Class name(it is in the .h file), and the .h file
////////////////
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/56913/showart_527791.html |
|