Got a problem; look:

main.cpp
Qt Code:
  1. #include <QApplication>
  2.  
  3. #include "usc_sip_api.h"
  4. #include "usc_gui.h"
  5. #include "usc_gateway.h"
  6.  
  7. GatewayUnit *uscGatewayUnit = new GatewayUnit(0);
  8.  
  9. int main(int argc, char *argv[])
  10. {
  11. init_sip();
  12.  
  13. QApplication uscApp(argc, argv);
  14. UscGuiES1 uscGui;
  15. uscGui.show();
  16.  
  17. return uscApp.exec();
To copy to clipboard, switch view to plain text mode 
}

usc_gui.cpp
Qt Code:
  1. #include <QPalette>
  2. #include <QtGui>
  3.  
  4. #include "usc_gui.h"
  5. #include "usc_radio_element.h"
  6. #include "usc_gateway.h"
  7.  
  8. UscGuiES1::UscGuiES1(QWidget *parent)
  9. : QWidget(parent)
  10. {
  11. UscRadioElement uscRadioElement;
  12. uscRadioElement.show();
  13.  
  14. setWindowTitle(tr("Universal SIP Client"));
  15. }
To copy to clipboard, switch view to plain text mode 

usc_radio_element.cpp
Qt Code:
  1. #include <QPalette>
  2. #include <QtGui>
  3.  
  4. #include "usc_gui.h"
  5. #include "usc_radio_element.h"
  6.  
  7. UscRadioElement::UscRadioElement(QWidget *parent)
  8. : QWidget(parent)
  9. {
  10. radioButton = new QPushButton(tr("R1"));
  11. rxButton = new QPushButton(tr("Rx"));
  12. txButton = new QPushButton(tr("Tx"));
  13. pttButton = new QPushButton(tr("PTT"));
  14.  
  15. QVBoxLayout *rxtxLayout = new QVBoxLayout;
  16. rxtxLayout->addWidget(rxButton);
  17. rxtxLayout->addWidget(txButton);
  18.  
  19. QHBoxLayout *topLayout = new QHBoxLayout;
  20. topLayout->addWidget(radioButton);
  21. topLayout->addLayout(rxtxLayout);
  22.  
  23. QVBoxLayout *mainLayout = new QVBoxLayout;
  24. mainLayout->addLayout(topLayout);
  25. mainLayout->addWidget(pttButton);
  26.  
  27. setLayout(mainLayout);
  28. }
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