PDA

View Full Version : Code completion for a Qwidget at Qt4 in QDevelop 4.3.1



sipklaus
3rd August 2008, 22:42
Hello everybody,

I use QDevelop 4.3.1 and Exuberant Ctags 5.6. on openSUSE 10.3 or openSUSE 11.0. I need the code completion for a QWidget, but it does not works.

An example:

This is an auto generated main.cpp code from QDevelop.


#include <QApplication>
#include "mainwindowimpl.h"
//
int main(int argc, char ** argv)
{
QApplication app( argc, argv );
MainWindowImpl win;
win.show();
app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
return app.exec();
}


On detail I need the QDevelop suggestion connect or so, if I type at the editor "app." oder "app->" but I don't get a proposal. If I type instead of this "win." QDevelop show me my opportunities. What can I do?:confused:


Thanks for any ideas.

fullmetalcoder
4th August 2008, 09:12
Check whether QWidget methods are listed in the proposed methods when completing "win.". If they are listed then there is a bug in the parser that you have to report to the authors, otherwise it's definitely a problem in the generation of the completion database for Qt headers.

There is probably an option to change the folder in which to look for Qt headers...

sipklaus
4th August 2008, 20:57
thanks I have sqlite rpm installed after this it has work. :)

rupert160
9th August 2010, 09:46
I've installed sqlite in Ubuntu 10.04 since reading this post and still cannot get it to work
http://www.qtcentre.org/threads/33138-qdevelop-won-t-provide-code-complete