Results 1 to 6 of 6

Thread: Multiple inheritance problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2021
    Posts
    27
    Thanks
    5

    Default Multiple inheritance problem

    I have created a ChartView class that inherits "QChartView" and "QObject".

    I need to generate a SIGNAL from the ChartView class and connect to the MainWindow SLOT.

    However, currently, I am getting the following error.

    "direct base 'QObject' is inaccessible due to ambiguity"

    Qt Code:
    1. class ChartView : public QChartView , public QObject
    2. {
    3. Q_OBJECT
    4. private:
    5.  
    6. }
    To copy to clipboard, switch view to plain text mode 

    If I don't add QObject, then SIGNAL and SLOT don't work.

    Any suggestion?
    Attached Images Attached Images

Similar Threads

  1. Multiple inheritance
    By Nunkij in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2021, 16:05
  2. Multiple inheritance problem
    By DURGAPRASAD NEELAM in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2014, 14:49
  3. Multiple Inheritance & Qt
    By kefeng.chen in forum Qt Programming
    Replies: 8
    Last Post: 21st March 2006, 18:37
  4. Multiple inheritance & Qt
    By dublet in forum Qt Programming
    Replies: 11
    Last Post: 8th March 2006, 08:12
  5. Multiple Inheritance
    By sunil.thaha in forum General Programming
    Replies: 4
    Last Post: 21st February 2006, 04:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.