Got a problem; look:
main.cpp
#include <QApplication>
#include "usc_sip_api.h"
#include "usc_gui.h"
#include "usc_gateway.h"
GatewayUnit *uscGatewayUnit = new GatewayUnit(0);
int main(int argc, char *argv[])
{
init_sip();
UscGuiES1 uscGui;
uscGui.show();
return uscApp.exec();
#include <QApplication>
#include "usc_sip_api.h"
#include "usc_gui.h"
#include "usc_gateway.h"
GatewayUnit *uscGatewayUnit = new GatewayUnit(0);
int main(int argc, char *argv[])
{
init_sip();
QApplication uscApp(argc, argv);
UscGuiES1 uscGui;
uscGui.show();
return uscApp.exec();
To copy to clipboard, switch view to plain text mode
}
usc_gui.cpp
#include <QPalette>
#include <QtGui>
#include "usc_gui.h"
#include "usc_radio_element.h"
#include "usc_gateway.h"
UscGuiES1
::UscGuiES1(QWidget *parent
){
UscRadioElement uscRadioElement;
uscRadioElement.show();
setWindowTitle(tr("Universal SIP Client"));
}
#include <QPalette>
#include <QtGui>
#include "usc_gui.h"
#include "usc_radio_element.h"
#include "usc_gateway.h"
UscGuiES1::UscGuiES1(QWidget *parent)
: QWidget(parent)
{
UscRadioElement uscRadioElement;
uscRadioElement.show();
setWindowTitle(tr("Universal SIP Client"));
}
To copy to clipboard, switch view to plain text mode
usc_radio_element.cpp
#include <QPalette>
#include <QtGui>
#include "usc_gui.h"
#include "usc_radio_element.h"
UscRadioElement
::UscRadioElement(QWidget *parent
){
rxtxLayout->addWidget(rxButton);
rxtxLayout->addWidget(txButton);
topLayout->addWidget(radioButton);
topLayout->addLayout(rxtxLayout);
mainLayout->addLayout(topLayout);
mainLayout->addWidget(pttButton);
setLayout(mainLayout);
}
#include <QPalette>
#include <QtGui>
#include "usc_gui.h"
#include "usc_radio_element.h"
UscRadioElement::UscRadioElement(QWidget *parent)
: QWidget(parent)
{
radioButton = new QPushButton(tr("R1"));
rxButton = new QPushButton(tr("Rx"));
txButton = new QPushButton(tr("Tx"));
pttButton = new QPushButton(tr("PTT"));
QVBoxLayout *rxtxLayout = new QVBoxLayout;
rxtxLayout->addWidget(rxButton);
rxtxLayout->addWidget(txButton);
QHBoxLayout *topLayout = new QHBoxLayout;
topLayout->addWidget(radioButton);
topLayout->addLayout(rxtxLayout);
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addLayout(topLayout);
mainLayout->addWidget(pttButton);
setLayout(mainLayout);
}
To copy to clipboard, switch view to plain text mode
I got no exception at compiling but my window is empty when I start the application.
What is my mistake, what can I do to solve this problem?
Yours Sincerely
Walsi
Bookmarks