title: Multiple inheritance in Qt
body: <p>How to inherit QLabel and QPushButtton too, what I tried shows error messages</p>
  
  <pre><code>/home/test.cpp:206: error: reference to 'setText' is ambiguous
        setText(text);
        ^
  </code></pre>
  
  <p>Here is what I tried:</p>
  
  <pre><code>class virtualLabel: virtual public QLabel
  {
      Q_OBJECT
  public:
      explicit virtualLabel(const QString&amp; text="", QWidget* parent=0){}
      ~virtualLabel(){}
  
  };
  
  class virtualPushButton: virtual public QPushButton
  {
      Q_OBJECT
  public:
      explicit virtualPushButton(const QString&amp; text="", QWidget* parent=0){}
      ~virtualPushButton(){}
  
  };
  
  
  
  class customLabel : public virtualLabel, public virtualPushButton
  {
      Q_OBJECT
      // Q_DECLARE_INTERFACE
      //Q_INTERFACES(YourInterface OtherInterface)
  
  
  public:
      explicit customLabel(const QString&amp; text="", QWidget* parent=0);
      ~customLabel();
  
      QString folderName;
  
  };
  </code></pre>
  
  <p>Any help appreciated  Thank You</p>