How to get code completion (MacOS eclipse CDT) [message #661057] |
Tue, 22 March 2011 19:27  |
Eclipse User |
|
|
|
please I need help with code completion in eclipse mac....
I already have everything works fine except code completion....
I need the right path to find the file that make that work....
Its only with QT API, c++ completion works fine
I work with Snow Leopard, Eclipse Helios and QT 4.7
thanks U.....
|
|
|
|
|
|
|
Re: How to get code completion (MacOS eclipse CDT) [message #661499 is a reply to message #661306] |
Thu, 24 March 2011 19:18   |
Eclipse User |
|
|
|
Yevgeny Shifrin wrote on Thu, 24 March 2011 02:55 | * Did you try to re-index your project (select your project->context menu->index->rebuild)?
* Do you have unresolved includes(select your project->context menu->index->Search for Unresolved Includes)?
|
thanks Yevgeny.....
I did what U say when, I rebuild nothing happens, and the code completion is nule but when I search for unresolved includes the search throw this:
/Library/Frameworks/QtGui.framework/Versions/4/Headers
qapplication.h
Unresolved inclusion: QtCore/qcoreapplication.h
Unresolved inclusion: QtCore/qpoint.h
Unresolved inclusion: QtCore/qsize.h
Unresolved inclusion: QtGui/qcursor.h
Unresolved inclusion: QtGui/qwindowdefs.h
qboxlayout.h
Unresolved inclusion: QtGui/qlayout.h
qslider.h
Unresolved inclusion: QtGui/qabstractslider.h
qspinbox.h
Unresolved inclusion: QtGui/qabstractspinbox.h
and my code is this:
//////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////
#include<QApplication>
#include<QHBoxLayout>
#include<QSlider>
#include<QSpinBox>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QWidget* ventana=new QWidget;
ventana->setWindowTitle("Ejemplo Basico 1");
QSpinBox* spinBox=new QSpinBox;
QSlider* slider=new QSlider(Qt::Horizontal);
spinBox->setRange(0,130);
slider->setRange(0,130);
QObject::connect(spinBox, SIGNAL(valueChanged(int)), slider, SLOT(setValue(int)));
QObject::connect(slider, SIGNAL(valueChanged(int)), spinBox, SLOT(setValue(int)));
spinBox->setValue(35);
QHBoxLayout* layout=new QHBoxLayout;
layout->addWidget(spinBox);
layout->addWidget(slider);
ventana->setLayout(layout);
ventana->show();
return app.exec();
}
//////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////
thank You again
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.06037 seconds