Results 1 to 3 of 3

Thread: Using Example Code - Network

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Platforms
    Windows

    Default Using Example Code - Network

    I am trying to use the download manager example code
    http://doc.qt.nokia.com/4.7/network-...admanager.html
    Alone it compiles fine and runs, but I would like to use the download manager and the text progress bar in an application of my own.

    When I include them in my project and try to compile, I get this error

    undefined reference to '_imp__ZN21QNetworkAccessManagerC1EP7QObject'

    and 3 other similar undefined references

    I'm not sure what I'm doing wrong. I am using the latest QtCreator and the latest SDK for windows

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Using Example Code - Network

    The library search path has not been set properly. Look at the QT variable in your PRO file and compare to the example.

  3. The following user says thank you to ChrisW67 for this useful post:

    scotland0208 (18th November 2010)

  4. #3
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Platforms
    Windows

    Default Re: Using Example Code - Network

    I was missing the QT += network
    I wasted soo much time trying to figure that out. ah well, thanks a lot

Similar Threads

  1. How to keep a network session
    By imunolion in forum Qt Programming
    Replies: 3
    Last Post: 25th May 2009, 10:04
  2. QT Network htonl
    By csvivek in forum Qt Programming
    Replies: 1
    Last Post: 9th May 2008, 16:36
  3. QT Network
    By csvivek in forum Newbie
    Replies: 0
    Last Post: 1st April 2008, 17:19
  4. help in QT network!
    By bbc58206 in forum Qt Programming
    Replies: 3
    Last Post: 10th September 2007, 05:00
  5. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47

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.