昨天才看到楼主的贴子,同样作为初学者,我有如下几点感慨和疑问:
1、以楼主的2led为例,在led.cpp中,初学者们可能就不知道要到用哪些库文件,我看楼主在led.cpp中除了几个必须的还增加了
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
这些。
2、关于main.cpp文件。难道所有的main.cpp都这样写吗,有没必要增添自己的内容呢,如何实现呢。main.cpp都要干些什么呢?
3、可能是我无知,呵呵,
TextLabel1->setText("System Led is Stoped");
int iData=SpinBox1->text().toFloat();
楼主led.cpp中的TextLabel1,SpinBox1等,可能就是在designer中实例化的一个类对象吧,既然是对象,调用成员函数,
不是objectname.函数
为啥楼主的却是 ->
难道这里的TextLabel1等是对象指针吗