Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved]qDebug:identifier not found
Forum Updated to NodeBB v4.3 + New Features

[solved]qDebug:identifier not found

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 3 Posters 6.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • IamSumitI Offline
    IamSumitI Offline
    IamSumit
    wrote on last edited by
    #2

    Hi and welcome t devnet.
    have included <QDebug> headers.?

    Be Cute

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nitishjo
      wrote on last edited by
      #3

      Yes I have Included it

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Hi and welcome to devnet,

        Please show the code where you are using qDebug, also which version of Qt/OS/compiler are you using ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nitishjo
          wrote on last edited by
          #5

          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.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Can you show an code sample that fails to build ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nitishjo
              wrote on last edited by
              #7

              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);
                                      }@
              
              1 Reply Last reply
              0
              • IamSumitI Offline
                IamSumitI Offline
                IamSumit
                wrote on last edited by
                #8

                Hi.
                It looks ok.
                Need more sample code.
                please show your .pro file as well as headers that you have included.

                Be Cute

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nitishjo
                  wrote on last edited by
                  #9

                  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_release

                  CONFIG(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.cpp

                  HEADERS +=
                  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.h

                  OTHER_FILES +=
                  Version.prf
                  ConfigurableFrame.pri
                  ConfigurableFrame.rc

                  exists( $$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)
                  

                  }
                  @

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nitishjo
                    wrote on last edited by
                    #10

                    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>
                    @

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      nitishjo
                      wrote on last edited by
                      #11

                      Thank you.... my problem is solved it was version problem

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Nice !

                        Version problem ? Can you elaborate ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nitishjo
                          wrote on last edited by
                          #13

                          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.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            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 :)

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved