Results 1 to 5 of 5

Thread: QT tutorial 7

  1. #1
    Join Date
    May 2007
    Posts
    3

    Question QT tutorial 7

    i tried compiling the program in tute 7 of QT. i've placed all three files namely lcdrange.cpp, lcdrange.h & main.cpp in a directory D:\Ranu's works\t7. the problem i get is that when i run qmake -project & it creates .pro file..

    D:\Ranu's works\t7>qmake -project

    but when i run qmake after that i get an error as

    D:\Ranu's works\t7>qmake
    Error processing project file: D:/Ranu's works/t7/t7.pro

    plz tell me wht to do.. & what i'm doing wrong.

    thanks in advance.
    Last edited by ranu; 21st May 2007 at 16:34.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QT tutorial 7

    I'm not sure what went wrong but pasting the .pro file could help us to solve the problem. Anyway, the example is shipped together with the installation package. See %QTDIR%\examples\tutorial\t7.
    J-P Nurmi

  3. #3
    Join Date
    May 2007
    Posts
    3

    Default Re: QT tutorial 7

    thanks JP

    i saw the original .pro file for tute 7. & its very different from the one i get after compiling.

    the original .pro file is:
    TEMPLATE = app
    CONFIG += qt warn_on
    HEADERS = lcdrange.h
    SOURCES = lcdrange.cpp \
    main.cpp
    TARGET = t7
    QTDIR_build:REQUIRES="contains(QT_CONFIG, large-config)"

    # install
    target.path = $$[QT_INSTALL_EXAMPLES]/tutorial/t7
    sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS t7.pro
    sources.path = $$[QT_INSTALL_EXAMPLES]/tutorial/t7
    INSTALLS += target sources


    and the one i'm getting after running qmake -project is:

    ################################################## ####################
    # Automatically generated by qmake (2.01a) Mon May 21 22:00:28 2007
    ################################################## ####################

    TEMPLATE = app
    TARGET =
    DEPENDPATH += .
    INCLUDEPATH += .

    # Input
    HEADERS += lcdrange.h
    SOURCES += lcdrange.cpp main.cpp
    why this is happeing... please help.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QT tutorial 7

    The automatically generated .pro file looks fine to me. How did you install Qt?
    J-P Nurmi

  5. #5
    Join Date
    May 2007
    Posts
    3

    Default Re: QT tutorial 7

    hey.. i chkd the same program on other system & it ran well. there's some problem in the qt installation on my system. i'll reinstall that
    thanks JP

Similar Threads

  1. Qt Tutorial #1 Add-on Part II
    By ShaChris23 in forum Newbie
    Replies: 5
    Last Post: 25th April 2007, 19:00
  2. QDevelop QT Tutorial for beginners (Linux)
    By clive in forum General Discussion
    Replies: 8
    Last Post: 27th March 2007, 20:27
  3. Basic Qt4 tutorial needed
    By pthomas in forum Qt Programming
    Replies: 26
    Last Post: 16th October 2006, 15:11
  4. Can't Compile Tutorial 7
    By Reenen in forum Newbie
    Replies: 10
    Last Post: 9th February 2006, 14:06
  5. Is There any Tutorial for non GUI Tcp Application
    By pilgermann in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2006, 18:12

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.