Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Include <QtDebug> in QT 4.7.4
Forum Updated to NodeBB v4.3 + New Features

Include <QtDebug> in QT 4.7.4

Scheduled Pinned Locked Moved General and Desktop
13 Posts 6 Posters 5.8k 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.
  • G Offline
    G Offline
    GentooXativa
    wrote on last edited by
    #2

    @#include <QDebug>@

    Jose Vicente Giner Sanchez - Senior Mobile Developer

    www.gigigo.com

    C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
    T: +34 917431436

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3chNo
      wrote on last edited by
      #3

      @#include <QDebug>@ works for me.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #4

        Still works for me, both in Qt 4.7.4 and 4.8.0 with
        @
        #include <QtDebug>
        @

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AeroWRX
          wrote on last edited by
          #5

          What is your Nokia QT installation directory like? Using @#include <QtDebug>@ the QT Creator would tell me this library doesn't exist.

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #6

            You have created a Qt project right? If you have created a plain c/c++ project the libraries may not be include-able :)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #7

              QtDebug and QDebug are on include/QtCore. Both are including qdebug.h.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AeroWRX
                wrote on last edited by
                #8

                [quote author="ddriver" date="1329939265"]You have created a Qt project right? If you have created a plain c/c++ project the libraries may not be include-able :)[/quote]

                Are you serious?! I am using the Plain C++ Project just to make it less convoluted when I'm trying to test the OpenCV codes. How would I make the qDebug library "include-able" in a Plain C++ Project??

                [quote author="koahnig" date="1329939628"]QtDebug and QDebug are on include/QtCore. Both are including qdebug.h.[/quote]

                My qdebug.h is all the way in here:
                C:\QtSDK\QtSources\4.8.0\include\QtCore

                But it's not picking it up from QT Creator.

                1 Reply Last reply
                0
                • ? This user is from outside of this forum
                  ? This user is from outside of this forum
                  Guest
                  wrote on last edited by
                  #9

                  Well, you have told Qt you don't want to use the Qt framework and still wonder why it cannot find a Qt library.

                  Qt modules are not include-able in plain c++ project to me as well, autocomplete is not finding anything as well, as far as the IDE is concerned there are no Qt modules.

                  Maybe there is a workaround for this like using absolute path for include... or if the experts know a way to override this?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AeroWRX
                    wrote on last edited by
                    #10

                    [quote author="ddriver" date="1329940704"]Well, you have told Qt you don't want to use the Qt framework and still wonder why it cannot find a Qt library.

                    Qt modules are not include-able in plain c++ project to me as well, autocomplete is not finding anything as well, as far as the IDE is concerned there are no Qt modules.

                    Maybe there is a workaround for this like using absolute path for include... or if the experts know a way to override this?[/quote]

                    I tried to add the path directly in and it doesn't work either

                    @ INCLUDEPATH += C:\opencv\build\include
                    C:\QtSDK\QtSources\4.8.0\include @

                    1 Reply Last reply
                    0
                    • ? This user is from outside of this forum
                      ? This user is from outside of this forum
                      Guest
                      wrote on last edited by
                      #11

                      But it does work if you create a Qt project right?

                      I can only point out the reason why it isn't working, hopefully someone more adept than me can elaborate how to include Qt libraries in a plain C++ project.

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on last edited by
                        #12

                        Well, my suggestion would be to setup the project as a Qt project and check the differences in the different settings of the .pro file. It does nto have to be the compelete setup, but the main skeleton. The comparison hopefully provides the hints.

                        For one thing the discussion here concentrates on single lines, but the problem might be somewhere else.

                        This engineering approach is not scientific, but it works most times ;-)

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          goetz
                          wrote on last edited by
                          #13

                          If you use QDebug, you need Qt libs too, otherwise you get a linker error, even if the compiler doesn't bail out prematurely. So it dosen't make sens at all to not create a Qt project.

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          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