|
|
|
|
|
Re: How to get code completion (MacOS eclipse CDT) [message #661499 is a reply to message #661306] |
Thu, 24 March 2011 23:18 |
MauPaz Messages: 6 Registered: March 2011 |
Junior Member |
|
|
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 0.04030 seconds