Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


Closed Thread
  Search this Thread
Old 06-04-2010, 05:28 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
problem with inclusion of qt header files

While installing qt sdk , it took path /opt/qtsdk-2010.02 and header files are in /opt/qtsdk-2010.02/qt/include/ ,
but inorder to include the headers should be in /usr/include/
so while including the #include<QObject> , creator is showing error(ie., underlined).

and I am using RHEL OS.
how to make this work?
Old 06-04-2010, 06:34 AM   #2
LQ Newbie
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
got it ..

modify the tools->options->Qt4->Qt versions --- > Manual
give the location of qmake executable .

in above case, the location will be /opt/qtsdk-2010.02/qt/bin/qmake .
By doing this it will automatically sync the libraries & include paths.

Now my programs are executing properly.
Old 06-04-2010, 08:19 AM   #3
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Duplicate thread reported; original is

EDIT: but the "original" has been closed as a duplicate of this one.

Last edited by catkin; 06-04-2010 at 08:20 AM.
Old 06-04-2010, 04:06 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with header files(.h) hoshangi Programming 6 01-09-2008 03:07 AM
For dynamic inclusion of files in a shell script patilvidya Linux - Newbie 1 05-18-2007 08:05 PM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 03:24 AM
Problem with C++ include/header files! Pisces107 Programming 12 12-24-2003 12:06 AM
automatic header inclusion rajorshi Programming 2 11-02-2003 03:29 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration