Results 1 to 2 of 2

Thread: Including and Windows problem

  1. #1
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Including and Windows problem

    Hi, I have got two questions.
    1. What is the differences between using #include "qwidget.h" or #include <QWidget> or #include <qwidget.h> ?

    2. I wrote a small app. How can I run it under other windows machines which haven't got qt library. Which dll's should I copy? How can I use them ?

    Sorry for my very poor English.
    Best Regards.

  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: Including and Windows problem

    1. What is the differences between using #include "qwidget.h" or #include <QWidget> or #include <qwidget.h> ?
    Not much. The first will search the current directory and then the standard directories for a file called "qwidget.h" and include it. The second and third options will search for the named file only in the standard directories. This is standard C/C++ pre-processor behaviour, nothing specific to Qt.
    http://en.wikipedia.org/wiki/C_prepr...ncluding_files
    2. I wrote a small app. How can I run it under other windows machines which haven't got qt library. Which dll's should I copy? How can I use them ?
    http://doc.qt.nokia.com/latest/deployment.html

Similar Threads

  1. Problem of including Widgets into DLL
    By dsedov in forum Qt Programming
    Replies: 15
    Last Post: 14th July 2021, 23:05
  2. Problem with QGLWidcet including
    By sebap123 in forum Newbie
    Replies: 2
    Last Post: 27th January 2011, 13:21
  3. Problem including library (dllimport)
    By cae in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2010, 06:53
  4. Problem with including lib files
    By metow in forum Qt Tools
    Replies: 2
    Last Post: 12th December 2009, 21:57
  5. Including libs on windows
    By ucomesdag in forum Qt Programming
    Replies: 2
    Last Post: 17th August 2007, 08:31

Tags for this Thread

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.