Results 1 to 7 of 7

Thread: Cannot open <qvbox.h>

  1. #1
    Join Date
    Mar 2007
    Posts
    30
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Smile Cannot open <qvbox.h>

    I was trying the codes in the tutorial

    QT Tutorial #1---8 Preparing for Battle
    (http://doc.trolltech.com/3.3/tutorial1-08.html)

    in visual Studio 2005(with embedded QT designer integrated)

    And the compilation gives me the following error: fatal error C1083: Cannot open include file: 'qvbox.h': No such file or directory.

    I have included all the libraries in the Project Wizard->Project settings.

    And other libraries such as qpainter.h worked fine.

    I simply copied and pasted the whole code set from the website to the project, didn't change anything.

    Is there any hint for the reason of the problem?

    Thanks!!!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cannot open <qvbox.h>

    This is a tutorial for Qt3 and you're using Qt4. Try this instead: http://doc.trolltech.com/latest/tutorial-t8.html

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

    KaKa (17th March 2007)

  4. #3
    Join Date
    Mar 2007
    Posts
    30
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Still Cannot open <qvbox.h>

    Thanks for the new 4.2 version address I really need it!

    However the lcdrange still need qvbox, which is still not recognized and throw the same error.

    :S

  5. #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: Still Cannot open <qvbox.h>

    Quote Originally Posted by KaKa View Post
    However the lcdrange still need qvbox, which is still not recognized and throw the same error.
    Do you still have the files of the old example for Qt 3? Better grab all the files from the one for Qt 4. The example for Qt 4 uses QVBoxLayout.
    J-P Nurmi

  6. The following user says thank you to jpn for this useful post:

    KaKa (17th March 2007)

  7. #5
    Join Date
    Mar 2007
    Posts
    30
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot open <qvbox.h>

    Thanks a lot!!!

    I pasted the wrong code.

    I have one more question though. I have been using Q3 libraries and functions in Q4, (since I was using the Q3 webpage )

    And I am using the commercial trial based on the open source documentation..

    Would the above two situations cause big problem. Can I still survive with these?

    Thanks!!!

  8. #6
    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: Cannot open <qvbox.h>

    Quote Originally Posted by KaKa View Post
    I have one more question though. I have been using Q3 libraries and functions in Q4, (since I was using the Q3 webpage )

    And I am using the commercial trial based on the open source documentation..

    Would the above two situations cause big problem. Can I still survive with these?
    Qt3 and Qt4 APIs are pretty much different. So yes, you need to switch to the documentation of Qt4. I'd suggest checking out Qt Assistant shipped together with Qt. It's a great tool for exploring Qt reference documentation.

    The differences between Qt4 commercial and open source version are at least the ActiveQt module and the Visual Studio integration. I can't remember for sure if there was something else too..
    J-P Nurmi

  9. The following user says thank you to jpn for this useful post:

    KaKa (17th March 2007)

  10. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cannot open <qvbox.h>

    Commercial and open source versions use the same code and documentation, so there won't be any problems with these.

  11. The following user says thank you to wysota for this useful post:

    KaKa (17th March 2007)

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. Replies: 3
    Last Post: 25th August 2010, 12:39
  3. again Open Cascade + Qt 4.2.2 but detailed...
    By Shuchi Agrawal in forum Qt Programming
    Replies: 11
    Last Post: 1st February 2007, 07:03
  4. again Open Cascade + Qt 4.2.2 but detailed...
    By Shuchi Agrawal in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 06:50
  5. Replies: 11
    Last Post: 24th March 2006, 06:40

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.