×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2009
    Location
    Paraguay - Ciudad del Este
    Posts
    40

    undefined reference to `QNetworkRequest::QNetworkRequest()'

    Hello Guys,

    I'm trying to use QNetworkRequest into my application, here's my code.

    Test.pro
    PHP Code:
    TEMPLATE app
    TARGET 
    Test 

    QT  
    += core \\
           
    gui \\
           
    network 

    HEADERS   
    += Test.h
    SOURCES   
    += Test_reg.rss \
                 
    main.cpp \
                 
    Test.cpp
    FORMS      
    += Test.ui
    RESOURCES 
    +=

    symbian:TARGET.UID3 0xE06920F2 

    Test.h

    PHP Code:
    #ifndef TEST_H
    #define TEST_H

    #include <QtGui/QDialog>
    #include <QNetworkRequest>

    #include "ui_Test.h"

    class Test : public QDialog
    {
        
    Q_OBJECT

    public:
        
    Test(QWidget *parent 0);
        ~
    Test();
        
    void uploader();
        
        

    private:
        
    Ui::TestClass ui;
    };

    #endif // TEST_H 


    Test.cpp

    PHP Code:

    #include "Test.h"

    Test::Test(QWidget *parent)
        : 
    QDialog(parent)
    {
        
    ui.setupUi(this);
        

    }

    Test::~Test()
    {

    }
    void Test::uploader()
    {
        
    QNetworkRequest netR// Here fails

    When I try to build the application, i'm receiving a undefined reference to `QNetworkRequest::QNetworkRequest()' in the line QNetworkRequest netR;

    I'm using 4.5.2-garden release. Any help please?

    Thanks.
    Last edited by alexismedina; 2009-09-29 at 18:01.

  2. #2
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: undefined reference to `QNetworkRequest::QNetworkRequest()'

    I think this...

    Code:
    QT  += core 
           gui 
           network
    should be...

    Code:
    QT  += core gui network
    Also, I assume that Test.pho (i.e. not Test.pro) is a typo.

  3. #3
    Registered User
    Join Date
    May 2009
    Location
    Paraguay - Ciudad del Este
    Posts
    40

    Re: undefined reference to `QNetworkRequest::QNetworkRequest()'

    Sorry, I put slashes.. when using the HTML tag doesn't shows.

    QT += core \
    gui \
    network


    And the second point is a typo.

Similar Threads

  1. Do not get response in movino-symbian application.
    By SymbianTH in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2009-09-17, 10:09
  2. [moved] HELP! Phone Debug (GCCE)
    By joseph.m in forum Symbian
    Replies: 18
    Last Post: 2008-07-14, 10:42
  3. carbide c++ can't find headers.!!
    By nokia_maniac in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 29
    Last Post: 2007-12-19, 12:54
  4. CameraApp Example 3rd Edition
    By bigbadwolf in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-05-28, 19:13
  5. file not found
    By praktikant in forum Symbian
    Replies: 16
    Last Post: 2007-05-09, 15:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×