[solved]qDebug:identifier not found
-
I am facing this Issue from last two days :
error: C3861: 'qDebug': identifier not found
Please provide a quick solution on it. Waiting for the reply -
Hi and welcome t devnet.
have included <QDebug> headers.? -
Yes I have Included it
-
Hi and welcome to devnet,
Please show the code where you are using qDebug, also which version of Qt/OS/compiler are you using ?
-
I am using Qt 5.2.1 and OS is Windows 7 Compiler Microsoft Visual C++2010
Actually wherever in my whole code there is qDebug() it is showing error there. Not at any one place in whole code I am getting that error. Please provide solution. -
Can you show an code sample that fails to build ?
-
for example this is the code. I have given a qDebug there.
There I get an error as Identifier not found. And else where too.
@else
{
qDebug() << tempHash;
if(tempHash.contains("stylesheet"))
{
widget->setStyleSheet(tempHash.value("stylesheet"));
}QFont tempFont = widget->font(); if(tempHash.contains("kerning")) { if(tempHash.value("kerning") == "true") tempFont.setKerning(true); else tempFont.setKerning(true); }@
-
Hi.
It looks ok.
Need more sample code.
please show your .pro file as well as headers that you have included. -
this is my .pro file
@#==============================================================================Project File for Library "ConfigurableFrame"
#==============================================================================
#--- Setting the version
VER_MAJ = $$fromfile( $$PWD/Version.prf, VERSION_MAJOR )
VER_MIN = $$fromfile( $$PWD/Version.prf, VERSION_MINOR )
VER_PAT = $$fromfile( $$PWD/Version.prf, VERSION_PATCH )
VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}RC_FILE = ConfigurableFrame.rc
CONFIG += build_all plugin
CONFIG += debug_and_releaseCONFIG(release, debug|release): TARGET = ConfigurableFrame$${VER_MAJ}.$${VER_MIN}
else:CONFIG(debug, debug|release): TARGET = ConfigurableFramed$${VER_MAJ}.$${VER_MIN}win32:TARGET_EXT = .dll
TEMPLATE = lib
QT += axcontainer
DEFINES += CONFIGURABLEFRAME_LIBRARY VER_MAJ=$${VER_MAJ} VER_MIN=$${VER_MIN} VER_PAT=$${VER_PAT}
unix:CONFIG(debug, debug|release) {
DESTDIR = debug
} else {
DESTDIR = release
}SOURCES +=
ConfigurableFrame.cpp
configurableframe/frame/LiConfigurableFrame.cpp
configurableframe/module/LiConfigurableModule.cpp
configurableframe/readers/LiConfigurableFrameUiReader.cpp
configurableframe/readers/LiConfigurableFrameMiReader.cpp
configurableframe/MiCommand.cpp
configurableframe/MiEvent.cpp
configurableframe/table/LiConfigFrameTableEditDelegate.cpp
configurableframe/module/LiDebuggerDialog.cpp
configurableframe/animation/LiConfigurableFrameAnimation.cpp
configurableframe/data/LiWidgetAdditionalInfo.cpp
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget.cpp
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget_Item.cpp
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget_LevelItem.cpp
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget_LiteralItem.cpp
configurableframe/ui/model/search/LiSearchColumn.cpp
configurableframe/ui/model/search/restriction/LiSearchRestrictionComparator.cpp
configurableframe/ui/model/search/restriction/LiSearchRestrictionModel.cpp
configurableframe/ui/model/search/restriction/LiSearchRestrictionModelItem.cpp
configurableframe/utilities/LiStyleHandlerInterface.cpp
configurableframe/ui/widget/LiConfigurableWidget.cppHEADERS +=
ConfigurableFrame.h
ConfigurableFrame_global.h
configurableframe/frame/LiConfigurableFrame.h
configurableframe/module/LiConfigurableModule.h
configurableframe/readers/LiConfigurableFrameUiReader.h
configurableframe/readers/LiConfigurableFrameMiReader.h
configurableframe/MiCommand.h
configurableframe/MiEvent.h
configurableframe/frame/LiComponentFactory.h
configurableframe/table/LiConfigFrameTableEditDelegate.h
configurableframe/module/LiDebuggerDialog.h
configurableframe/animation/LiConfigurableFrameAnimation.h
configurableframe/data/LiWidgetAdditionalInfo.h
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget.h
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget_Item.h
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget_LevelItem.h
configurableframe/ui/components/search/restriction/LiSearchRestrictionWidget_LiteralItem.h
configurableframe/ui/model/search/LiSearchColumn.h
configurableframe/ui/model/search/restriction/LiSearchRestrictionComparator.h
configurableframe/ui/model/search/restriction/LiSearchRestrictionModel.h
configurableframe/ui/model/search/restriction/LiSearchRestrictionModelItem.h
configurableframe/utilities/LiStyleHandlerInterface.h
configurableframe/ui/widget/LiConfigurableWidget.hOTHER_FILES +=
Version.prf
ConfigurableFrame.pri
ConfigurableFrame.rcexists( $$PWD/../project.spec ) {
include( $$PWD/../ConfigurableFrame_DEP.pri )
} else {include( $(QT_BIN_LIBS_PATH)/Foundation/Ui/1.3.0/Ui_1.3.0.pri )
include( C:/Qt-Development/Foundation/Ui/pre-releases/1.3/Ui.pri )
include( $(QT_BIN_LIBS_PATH)/Modules/ChartViewer/1.1.0/ChartViewer_1.1.0.pri )
include (C:/Qt-Development/Modules/ChartViewer/pre-releases/1.1/ChartViewer.pri)
}
@ -
these are the headers I have Included-
@#include "../../ConfigurableFrame_global.h"#include <QWidget>
#include <QGridLayout>
#include <QFormLayout>
#include <QSignalMapper>
#include <QStackedWidget>
#include <QMutex>
#include <QStack>
#include <QVector>
#include <QPoint>
#include <QHeaderView>
#include <QMultiHash>
#include <QList>
#include <QSet>
#include <QDebug>#include "../MiCommand.h"
#include "../MiEvent.h"#include "LiComponentFactory.h"
#include <LiDialog.h>
#include <LiTabWidget.h>
#include [removed]
#include <data/LiDataHolder.h>#include <LiWidget.h>
#include <LiTableSearchWidget.h>
@ -
Thank you.... my problem is solved it was version problem
-
Nice !
Version problem ? Can you elaborate ?
-
Actually i am using Qt 5.2.1 but for build i was using 5.2.0 so it was creating a problem while running.
-
Normally it should not but anyway, nice you found out.
Since you have it working now please update the thread title prepending [solved] so other forum users may know a solution has been found :)