Thursday, July 11, 2013

Qt Start Basic Programming :-1

Hello,
 Today We are start to study the Qt based GUI Programming for x86 & ARM architecture.

Program : 1) Insert PushButton.

 #include<QApplication>
 #include<QPushButton>
int main(int argc,char *argv[])
{
      QApplication app(argc,argv);
        QPushButton *Button = new QPushButton("Program 1");
        Button.show();
       app.exec();
}


 

1 comment:

  1. QSerialPort serial;
    serial.setPortName("/dev/ttyUSB0");
    int i =serial.open(QIODevice::ReadWrite);
    it is return a 0 means not open a node ???

    ReplyDelete