I was trying to make a simple dialog and use the multiple inheritance method to make it work. But I can't get it going. The dialog is called "handmade.ui". The ui_handmade.h file is being generated ok.

The latest error is:
main.cpp:29: error: 'class Ui::handmade' has no member named 'show'
I'm lost. My "handmade" dialog inherits from QDialog which inherits QWidget which contains the show() function. What gives?

Am I including things in the wrong places?

Here's my code.
main.cpp
Qt Code:
  1. #include "ui_handmade.h"
  2. #include <QApplication>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication app(argc, argv);
  7. Ui::handmade *dialog = new Ui::handmade;
  8.  
  9. dialog->show(); // <- Error occurs here
  10. return app.exec();
  11. }
To copy to clipboard, switch view to plain text mode 

handmade.h
Qt Code:
  1. #ifndef HANDMADE_H
  2. #define HANDMADE_H
  3.  
  4. #include "ui_handmade.h"
  5.  
  6. class handmade : public QDialog, private Ui::handmade
  7. {
  8. Q_OBJECT
  9.  
  10. public:
  11. handmade(QWidget* parent = 0);
  12. ~handmade();
  13. /*$PUBLIC_FUNCTIONS$*/
  14.  
  15. public slots:
  16. /*$PUBLIC_SLOTS$*/
  17.  
  18. protected:
  19. /*$PROTECTED_FUNCTIONS$*/
  20.  
  21. protected slots:
  22. /*$PROTECTED_SLOTS$*/
  23.  
  24. };
  25.  
  26. #endif
To copy to clipboard, switch view to plain text mode 

handmade.cpp
Qt Code:
  1. #include "handmade.h"
  2.  
  3. handmade::handmade(QWidget* parent) : QDialog(parent)
  4. {
  5. setupUi(this);
  6. connect(ctrSlider, SIGNAL(valueChanged()), displayLCD, SLOT(display()));
  7. show(this);
  8. }
  9.  
  10. handmade::~handmade()
  11. {}
To copy to clipboard, switch view to plain text mode 

Thanks,
Paul