Its main purpose is to display status information and short messages regarding the application or device’s status. MbusProtocol.A status bar is a graphical control that is usually included as a default part of the graphical user interface design of many applications. MbusProtocol.readCoils(1,10,readBitSet,sizeof(readBitSet) / sizeof(int)) Timer6Act->setStatusTip(tr("Getting Data from Button6")) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(timer6())) įileMenu = menuBar()->addMenu(tr("&File")) įileMenu = menuBar()->addMenu(tr("Read Data")) įileMenu = menuBar()->addMenu(tr("&Help")) Timer6Act = new QAction(QIcon("timer.png"), tr("&Timer 6"), this) Timer5Act->setStatusTip(tr("Getting Data from Button5")) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(timer5())) Timer5Act = new QAction(QIcon("timer.png"), tr("&Timer 5"), this) Timer4Act->setStatusTip(tr("Getting Data from Button4")) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(timer4())) Timer4Act = new QAction(QIcon("timer.png"), tr("&Timer 4"), this) Timer3Act->setStatusTip(tr("Getting Data from Button3")) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(timer3())) Timer3Act = new QAction(QIcon("timer.png"), tr("&Timer 3"), this) Timer2Act->setStatusTip(tr("Getting Data from Button3")) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(timer2())) Timer2Act = new QAction(QIcon("timer.png"), tr("&Timer 2"), this) Timer1Act->setStatusTip(tr("Getting Data from Button1")) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(timer1())) Timer1Act = new QAction(QIcon("timer.png"), tr("&Timer 1"), this) QtAct->setStatusTip(tr("Learn more about Qt")) Ĭonnect(qtAct, SIGNAL(clicked()), this, SLOT(qtHelp())) ĭisconnectAct = new QAction(QIcon("Disconnect.png"), tr("&Disconnect"), this) ĭisconnectAct->setStatusTip(tr("Disconnecting from Module")) Ĭonnect(disconnectAct, SIGNAL(clicked()), this, SLOT(mbusProtocol.closeProtocol())) ĬheckAct = new QAction(QIcon("check.png"), tr("&Check"), this) Ĭonnect(checkAct, SIGNAL(clicked()), this, SLOT(isOpen())) QtAct = new QAction(QIcon("qt.png"), tr("&Qt"), this) connect(helpAct, SIGNAL(clicked()), this, SLOT(helpFile())) HelpAct->setStatusTip(tr("Let's Help you out")) HelpAct = new QAction(QIcon("help.gif"), tr("&help"), this) "ModBus TCP/IP to connect and control several devices")) ĬonnectAct = new QAction(QIcon("connect.png"), tr("&Connect"), this) ĬonnectAct->setStatusTip(tr("Connect to IP Address")) Ĭonnect(connectAct, SIGNAL(clicked()), this, SLOT(mbusProtocol.openProtocol(hostName))) QMessageBox::about(this, tr("About Application"), Void seniorGui::closeEvent(QCloseEvent *event) SetWindowTitle(tr("ModBus TCP/IP Senior Gui")) MainLayout->addWidget(previewArea, 0, 0, 0, 0) QGridLayout *mainLayout = new QGridLayout SeniorGui::seniorGui(QWidget *parent, Qt::WFlags flags) If you have any problems with the registration process or your account login, please contact us. Registration is fast, simple and absolutely free so please, join our community today! By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. If you are looking for information about Qt related issue - register and post your question. Over 90 percent of questions asked here gets answered. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Select the forum that you want to visit from the selection below. Before you can post: click the register link above to proceed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |