Hi,
I would like to know how to create a tag list for the Qt4 librairy. I've read in the manual and I came to that exemple: CFLAGS=`pkg-config --cflags libgnomeui-2.0` geany -g gnomeui.c.tags \ /usr/include/libgnomeui-2.0/gnome.h there I block to configure the cflags for Qt4 thanks for your helpJonatan
_________________________________________________________________
On Sat, 28 Jun 2008 16:32:17 -0400, djo0012 - djo0012@hotmail.com wrote:
Hi,
I would like to know how to create a tag list for the Qt4 librairy. I've read in the manual and I came to that exemple: CFLAGS=`pkg-config --cflags libgnomeui-2.0` geany -g gnomeui.c.tags \ /usr/include/libgnomeui-2.0/gnome.h there I block to configure the cflags for Qt4 thanks for your helpJonatan
Find the attached script as a starting point. It's probably not the best solution but it seems to work, at least it creates a 600KB tags file on my system. You probably need to tweak it a little bit to fit your needs.
Regards, Enrico
Hi,
I would like to know how to create a tag list for the Qt4 librairy. I've read in the manual and I came to that exemple: CFLAGS=`pkg-config --cflags libgnomeui-2.0` geany -g gnomeui.c.tags \ /usr/include/libgnomeui-2.0/gnome.h there I block to configure the cflags for Qt4 thanks for your helpJonatan
Find the attached script as a starting point. It's probably not the best solution but it seems to work, at least it creates a 600KB tags file on my system. You probably need to tweak it a little bit to fit your needs.
Regards, Enrico
thanks for your fast answerd but... well this script at least correct the CFLAGS probleme but when it run the "geany -g qt4.c++.tags $files" I got "Failed to create tags file, perhaps because no tags were found." I've correct the path to the include file "$prefix/include/qt4", I tryed to create the tags list for QtCore module only and it does the same.
I dont know what might be the probleme. for info if it's useful, I'm on ubuntu hardy.
Jonatan
_________________________________________________________________
On Tue, 1 Jul 2008 01:29:16 -0400, djo0012 - djo0012@hotmail.com wrote:
thanks for your fast answerd but... well this script at least correct the CFLAGS probleme but when it run the "geany -g qt4.c++.tags $files" I got "Failed to create tags file, perhaps because no tags were found." I've correct the path to the include file "$prefix/include/qt4", I tryed to create the tags list for QtCore module only and it does the same.
This message can have multiple reasons but most likely, your changed include path is not yet correct. According to http://packages.ubuntu.com/hardy/i386/libqt4-dev/filelist I guess it should be
$prefix/include/qt4/Qt
If it still won't work, add "set -x" at the beginning of the script and check whether all substations and paths are correct.
Regards, Enrico
This message can have multiple reasons but most likely, your changed include path is not yet correct. According to http://packages.ubuntu.com/hardy/i386/libqt4-dev/filelist I guess it should be
$prefix/include/qt4/Qt
it was effectively that path. so I've now a tag file of about 700ko but i think it miss a lot of tag, mainly all what is in the widget class and subclass I don't know if it's come from geany being not able to parse this file or something else but it's this function that I mostly use, so the actual tag list isn't mostly helpful (yeah I've load the tag file, I have some of the Qt tag working well.) an easy example: the tag QSizePolicy work but not setSizePolicy() neither than QPushButton.
thanks again for the help Jonatan
_________________________________________________________________ Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant! http://www.emoticonesgratuites.ca/?icid=EMFRCA120
On Wed, 2 Jul 2008 00:29:56 -0400, djo0012 - djo0012@hotmail.com wrote:
This message can have multiple reasons but most likely, your changed include path is not yet correct. According to http://packages.ubuntu.com/hardy/i386/libqt4-dev/filelist I guess it should be
$prefix/include/qt4/Qt
it was effectively that path. so I've now a tag file of about 700ko but i think it miss a lot of tag, mainly all what is in the widget class and subclass I don't know if it's come from geany being not able to parse this file or something else but it's this function that I mostly use, so the actual tag list isn't mostly helpful (yeah I've load the tag file, I have some of the Qt tag working well.) an easy example: the tag QSizePolicy work but not setSizePolicy() neither than QPushButton.
I'm a little out of ideas. It seems a sane set of ignore tags has to be set to get most of the QT headers extracted. After a way too long time of testing, I found these helpful:
__attribute__ Q_GUI_EXPORT Q_DECL_EXPORT
To use them, update your Geany to latest SVN version (ignore.tags wasn't used for generating global tags so far). Put the above listed tags ~/.geany/ignore_tags and try again.
Then at least setSizePolicy() will be found. But there are probably tons of other tags which can't be found because Qt's heavy macro usage will confuse the C++ tags parser.
Sorry, I'm afraid I can't you help anything more on this. Maybe you should ask someone more familar with Qt.
Regards, Enrico
I'm a little out of ideas. It seems a sane set of ignore tags has to be set to get most of the QT headers extracted. After a way too long time of testing, I found these helpful:
__attribute__ Q_GUI_EXPORT Q_DECL_EXPORT
To use them, update your Geany to latest SVN version (ignore.tags wasn't used for generating global tags so far). Put the above listed tags ~/.geany/ignore_tags and try again.
Then at least setSizePolicy() will be found. But there are probably tons of other tags which can't be found because Qt's heavy macro usage will confuse the C++ tags parser.
Sorry, I'm afraid I can't you help anything more on this. Maybe you should ask someone more familar with Qt.
tanks for the help... a least if I can have a good part it will be that... I'll try that later... and probably ask on Qt forum as well...
_________________________________________________________________ Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant! http://www.emoticonesgratuites.ca/?icid=EMFRCA120