Results 1 to 7 of 7

Thread: No Match for Call

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    7
    Thanked 4 Times in 3 Posts

    Default No Match for Call

    Hi, I've got the following code:

    file1.h

    Qt Code:
    1. #include "file2.h"
    2. #include <QString>
    3.  
    4. struct ChartProperties
    5. {
    6. QString yvar;
    7. };
    To copy to clipboard, switch view to plain text mode 

    file1.cpp

    Qt Code:
    1. ChartProperties chart1;
    2. if(VariablePresent(chart1.yvar) //etc
    To copy to clipboard, switch view to plain text mode 

    file 2.h

    Qt Code:
    1. #include "file1.h"
    2. #include <QFile>
    3.  
    4. bool VariablesPresent(QString userVariable);
    To copy to clipboard, switch view to plain text mode 

    file2.cpp

    Qt Code:
    1. bool VariablesPresent(QString userVariable)
    2. {
    3. QFile cVariableEquivalents(//actual system path);
    4. if(!cVariableEquivalents().exists())
    5. //etc
    6. }
    To copy to clipboard, switch view to plain text mode 

    I may have missed one or two includes here or there... I've got them in my program, so the problem isn't with the includes I don't think.

    The error that I get at compile is:

    no match for call to '(QFile) ()'
    Any ideas on what I'm doing wrong?
    Last edited by Atomic_Sheep; 29th April 2012 at 11:01.

Similar Threads

  1. Error: No match for call to '(QPoint)()'
    By GT Development in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2011, 08:24
  2. QPainter error: no match for call ...
    By tonnot in forum Newbie
    Replies: 2
    Last Post: 7th October 2010, 12:00
  3. no match for 'operator=' in...
    By toss in forum Newbie
    Replies: 2
    Last Post: 14th April 2010, 00:08
  4. Replies: 1
    Last Post: 21st September 2009, 07:30
  5. No match for operator>>
    By Salazaar in forum Newbie
    Replies: 18
    Last Post: 12th June 2007, 17:48

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
  •  
Qt is a trademark of The Qt Company.