Results 1 to 2 of 2

Thread: Unable to setup Qcustomplot

  1. #1
    Join Date
    Dec 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Unable to setup Qcustomplot

    Hello,

    I am a newbie for Qt. Could some one help to overcome the errors.

    D:\Programs\Qt\build-test_plot-Desktop_Qt_5_5_1_MinGW_32bit-Debug\ui_mainwindow.h:30: error: 'QcustomPlot' does not name a type
    QcustomPlot *widget;

    D:\Programs\Qt\build-test_plot-Desktop_Qt_5_5_1_MinGW_32bit-Debug\ui_mainwindow.h:42: error: 'widget' was not declared in this scope
    widget = new QcustomPlot(centralWidget);

    D:\Programs\Qt\build-test_plot-Desktop_Qt_5_5_1_MinGW_32bit-Debug\ui_mainwindow.h:42: error: expected type-specifier before 'QcustomPlot'
    widget = new QcustomPlot(centralWidget);


    When I am trying to follow the steps to setup Qcustomplot as mentioned in the http://www.qcustomplot.com/index.php...ials/settingup
    I am getting the above errors.
    Could someone help to overcome these errors.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Unable to setup Qcustomplot

    Your screenshot says you used "QcustomPlot" as the class name, but the class name is "QCustomPlot"

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 7th June 2015, 08:21
  2. Plotting charts with QCustomPlot
    By netinho.kernel in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2014, 00:15
  3. QCustomplot
    By Harshavardhan in forum Newbie
    Replies: 1
    Last Post: 10th March 2014, 20:13
  4. Help with QCustomPlot
    By aashok91 in forum Qt Programming
    Replies: 0
    Last Post: 9th January 2013, 00:56
  5. QRubberband and QcustomPlot
    By OzQTNoob in forum Newbie
    Replies: 1
    Last Post: 16th October 2012, 03:19

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.