Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED]QWT to Qt creator
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]QWT to Qt creator

Scheduled Pinned Locked Moved Qt Creator and other tools
15 Posts 4 Posters 12.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.
  • T Offline
    T Offline
    tobias.hunger
    wrote on last edited by
    #3

    What do you mean by "install qwt to qt creator IDE"? Do you want to have syntax highligting working, etc.? For that it is enough to just use QWT in your project. Creator will then parse the QWT headers and all should work.

    If you want the QWT widgets to show up in the designer of Qt Creator, then you need to have a plugin for that (actually you need a plugin for designer, not Qt Creator). I am not sure whether one is available nor whether there are debian packages for it, so you will need to look around a bit. In case you want to give writing such a plugin a try: Here is the "documentation":http://doc.trolltech.com/latest/designer-creating-custom-widgets.html.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #4

      There is a designer plugin for Qwt. It should be part of the Qwt package for your system I think.

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toho71
        wrote on last edited by
        #5

        I can't get it to work.
        Finally i got the widgets in the QTdesigner/Creator but when i'm build the project it dosen't work.

        when i try to run the exampels in qwt they also got errors.

        Qmake and make doesn,t work either
        That's alot of errors there.
        Is it some path or something i missed.
        My linux is debian 6.0

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #6

          We can't tell unless you help us help you and tell us what the errors are.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • T Offline
            T Offline
            toho71
            wrote on last edited by
            #7

            Her is the errors

            make[1]: Entering directory `/home/thomas/downloads/qwt-6.0.1/src'
            g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -Imoc/ -o obj/qwt_abstract_scale_draw.o qwt_abstract_scale_draw.cpp
            In file included from qwt_scale_div.h:14,
            from qwt_abstract_scale_draw.h:14,
            from qwt_abstract_scale_draw.cpp:10:
            qwt_interval.h:15:20: error: qdebug.h: Filen eller katalogen finns inte
            In file included from qwt_abstract_scale_draw.cpp:11:
            qwt_math.h:27:19: error: qmath.h: Filen eller katalogen finns inte
            In file included from qwt_abstract_scale_draw.cpp:13:
            qwt_painter.h:18:19: error: qline.h: Filen eller katalogen finns inte
            In file included from qwt_scale_div.h:14,
            from qwt_abstract_scale_draw.h:14,
            from qwt_abstract_scale_draw.cpp:10:
            qwt_interval.h:47: error: ISO C++ forbids declaration of ‘QFlags’ with no type
            qwt_interval.h:47: error: expected ‘;’ before ‘<’ token
            qwt_interval.h:51: error: ‘BorderFlags’ has not been declared
            qwt_interval.h:54: error: ‘BorderFlags’ has not been declared
            qwt_interval.h:63: error: ‘BorderFlags’ has not been declared
            qwt_interval.h:64: error: ‘BorderFlags’ does not name a type
            qwt_interval.h:99: error: ‘BorderFlags’ does not name a type
            qwt_interval.h:102: error: ‘Q_MOVABLE_TYPE’ has not been declared
            qwt_interval.h:102: error: expected constructor, destructor, or type conversion before ‘;’ token
            qwt_interval.h: In constructor ‘QwtInterval::QwtInterval()’:
            qwt_interval.h:113: error: class ‘QwtInterval’ does not have any field named ‘d_borderFlags’
            qwt_interval.h: At global scope:
            qwt_interval.h:127: error: ‘BorderFlags’ has not been declared
            qwt_interval.h: In constructor ‘QwtInterval::QwtInterval(double, double, int)’:
            qwt_interval.h:130: error: class ‘QwtInterval’ does not have any field named ‘d_borderFlags’
            qwt_interval.h: At global scope:
            qwt_interval.h:142: error: ‘BorderFlags’ has not been declared
            qwt_interval.h: In member function ‘void QwtInterval::setInterval(double, double, int)’:
            qwt_interval.h:146: error: ‘d_borderFlags’ was not declared in this scope
            qwt_interval.h: At global scope:
            qwt_interval.h:155: error: variable or field ‘setBorderFlags’ declared void
            qwt_interval.h:155: error: ‘BorderFlags’ was not declared in this scope
            qwt_interval.h:164: error: ‘BorderFlags’ in class ‘QwtInterval’ does not name a type
            qwt_interval.h: In member function ‘bool QwtInterval::operator==(const QwtInterval&) const’:
            qwt_interval.h:238: error: ‘d_borderFlags’ was not declared in this scope
            qwt_interval.h:238: error: ‘const class QwtInterval’ has no member named ‘d_borderFlags’
            qwt_interval.h: In member function ‘bool QwtInterval::isValid() const’:
            qwt_interval.h:272: error: ‘d_borderFlags’ was not declared in this scope
            qwt_interval.h: At global scope:
            qwt_interval.h:290: error: expected constructor, destructor, or type conversion before ‘(’ token
            In file included from qwt_abstract_scale_draw.h:14,
            from qwt_abstract_scale_draw.cpp:10:
            qwt_scale_div.h:86: error: ‘Q_MOVABLE_TYPE’ has not been declared
            qwt_scale_div.h:86: error: expected constructor, destructor, or type conversion before ‘;’ token
            In file included from qwt_abstract_scale_draw.h:15,
            from qwt_abstract_scale_draw.cpp:10:
            qwt_text.h:120: error: ISO C++ forbids declaration of ‘QFlags’ with no type
            qwt_text.h:120: error: expected ‘;’ before ‘<’ token
            qwt_text.h:138: error: ISO C++ forbids declaration of ‘QFlags’ with no type
            qwt_text.h:138: error: expected ‘;’ before ‘<’ token
            qwt_text.h:183: error: ‘QSizeF’ does not name a type
            qwt_text.h:213: error: expected constructor, destructor, or type conversion before ‘(’ token
            In file included from qwt_abstract_scale_draw.cpp:10:
            qwt_abstract_scale_draw.h:53: error: ISO C++ forbids declaration of ‘QFlags’ with no type
            qwt_abstract_scale_draw.h:53: error: expected ‘;’ before ‘<’ token
            qwt_abstract_scale_draw.h:137: error: expected constructor, destructor, or type conversion before ‘(’ token
            In file included from qwt_abstract_scale_draw.cpp:11:
            qwt_math.h: In function ‘int qwtFuzzyCompare(double, double, double)’:
            qwt_math.h:125: error: ‘qAbs’ was not declared in this scope
            qwt_math.h: In function ‘bool qwtFuzzyGreaterOrEqual(double, double)’:
            qwt_math.h:139: error: ‘qFuzzyCompare’ was not declared in this scope
            qwt_math.h: In function ‘bool qwtFuzzyLessOrEqual(double, double)’:
            qwt_math.h:144: error: ‘qFuzzyCompare’ was not declared in this scope
            qwt_math.h: In function ‘double qwtRoundF(double)’:
            qwt_math.h:167: error: ‘::floor’ has not been declared
            qwt_math.h: In function ‘double qwtFloorF(double)’:
            qwt_math.h:173: error: ‘::floor’ has not been declared
            qwt_math.h: In function ‘double qwtCeilF(double)’:
            qwt_math.h:179: error: ‘::ceil’ has not been declared

            1 Reply Last reply
            0
            • T Offline
              T Offline
              toho71
              wrote on last edited by
              #8

              The rest of the list

              In file included from qwt_abstract_scale_draw.cpp:13:
              qwt_painter.h: At global scope:
              qwt_painter.h:50: error: ISO C++ forbids declaration of ‘QPointF’ with no type
              qwt_painter.h:50: error: expected ‘,’ or ‘...’ before ‘&’ token
              qwt_painter.h:69: error: ISO C++ forbids declaration of ‘QPointF’ with no type
              qwt_painter.h:69: error: expected ‘,’ or ‘...’ before ‘&’ token
              qwt_painter.h:70: error: ISO C++ forbids declaration of ‘QLineF’ with no type
              qwt_painter.h:70: error: expected ‘,’ or ‘...’ before ‘&’ token
              qwt_painter.h:70: error: ‘static void QwtPainter::drawLine(QPainter*, int)’ cannot be overloaded
              qwt_painter.h:69: error: with ‘static void QwtPainter::drawLine(QPainter*, int)’
              qwt_painter.h:74: error: ISO C++ forbids declaration of ‘QPointF’ with no type
              qwt_painter.h:74: error: expected ‘,’ or ‘...’ before ‘’ token
              qwt_painter.h:77: error: ISO C++ forbids declaration of ‘QPointF’ with no type
              qwt_painter.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token
              qwt_painter.h: In static member function ‘static void QwtPainter::drawPoint(QPainter
              , double, double)’:
              qwt_painter.h:104: error: ‘QPointF’ was not declared in this scope
              qwt_painter.h: In static member function ‘static void QwtPainter::drawLine(QPainter*, double, double, double, double)’:
              qwt_painter.h:111: error: ‘QPointF’ was not declared in this scope
              qwt_painter.h: At global scope:
              qwt_painter.h:115: error: ISO C++ forbids declaration of ‘QLineF’ with no type
              qwt_painter.h:115: error: expected ‘,’ or ‘...’ before ‘&’ token
              qwt_painter.h: In static member function ‘static void QwtPainter::drawLine(QPainter*, int)’:
              qwt_painter.h:117: error: ‘line’ was not declared in this scope
              qwt_painter.h: At global scope:
              qwt_painter.h:115: warning: unused parameter ‘QLineF’
              In file included from qwt_abstract_scale_draw.cpp:14:
              qwt_scale_map.h:112: error: ‘QPointF’ does not name a type
              qwt_scale_map.h:114: error: ‘QPointF’ does not name a type
              qwt_scale_map.h: In member function ‘double QwtScaleMap::pDist() const’:
              qwt_scale_map.h:167: error: ‘qAbs’ was not declared in this scope
              qwt_scale_map.h: In member function ‘double QwtScaleMap::sDist() const’:
              qwt_scale_map.h:175: error: ‘qAbs’ was not declared in this scope
              qwt_scale_map.h: In member function ‘double QwtScaleMap::transform(double) const’:
              qwt_scale_map.h:192: error: ‘log’ was not declared in this scope
              qwt_scale_map.h: At global scope:
              qwt_scale_map.h:216: error: expected constructor, destructor, or type conversion before ‘operator’
              qwt_abstract_scale_draw.cpp:37: error: ‘ScaleComponents’ does not name a type
              qwt_abstract_scale_draw.cpp: In constructor ‘QwtAbstractScaleDraw::PrivateData::PrivateData()’:
              qwt_abstract_scale_draw.cpp:28: error: ‘components’ was not declared in this scope
              qwt_abstract_scale_draw.cpp: In member function ‘void QwtAbstractScaleDraw::enableComponent(QwtAbstractScaleDraw::ScaleComponent, bool)’:
              qwt_abstract_scale_draw.cpp:81: error: ‘class QwtAbstractScaleDraw::PrivateData’ has no member named ‘components’
              qwt_abstract_scale_draw.cpp:83: error: ‘class QwtAbstractScaleDraw::PrivateData’ has no member named ‘components’
              qwt_abstract_scale_draw.cpp: In member function ‘bool QwtAbstractScaleDraw::hasComponent(QwtAbstractScaleDraw::ScaleComponent) const’:
              qwt_abstract_scale_draw.cpp:92: error: ‘class QwtAbstractScaleDraw::PrivateData’ has no member named ‘components’
              qwt_abstract_scale_draw.cpp: In member function ‘virtual void QwtAbstractScaleDraw::draw(QPainter*, const QPalette&) const’:
              qwt_abstract_scale_draw.cpp:172: error: ‘class QPen’ has no member named ‘setCosmetic’
              qwt_abstract_scale_draw.cpp:178: error: ‘Text’ is not a member of ‘QPalette’
              qwt_abstract_scale_draw.cpp:183: warning: comparison between signed and unsigned integer expressions
              qwt_abstract_scale_draw.cpp:185: error: no match for ‘operator[]’ in ‘majorTicks[i]’
              qwt_abstract_scale_draw.cpp:187: error: no match for ‘operator[]’ in ‘majorTicks[i]’
              qwt_abstract_scale_draw.cpp:198: error: ‘WindowText’ is not a member of ‘QPalette’
              qwt_abstract_scale_draw.cpp:207: warning: comparison between signed and unsigned integer expressions
              qwt_abstract_scale_draw.cpp:209: error: no match for ‘operator[]’ in ‘ticks[i]’
              qwt_abstract_scale_draw.cpp:223: error: ‘WindowText’ is not a member of ‘QPalette’
              qwt_abstract_scale_draw.cpp: In member function ‘double QwtAbstractScaleDraw::maxTickLength() const’:
              qwt_abstract_scale_draw.cpp:350: error: ‘qMax’ was not declared in this scope
              qwt_abstract_scale_draw.cpp: In member function ‘const QwtText& QwtAbstractScaleDraw::tickLabel(const QFont&, double) const’:
              qwt_abstract_scale_draw.cpp:394: error: ‘class QwtText’ has no member named ‘textSize’
              make[1]: *** [obj/qwt_abstract_scale_draw.o] Fel 1
              make[1]: Leaving directory `/home/thomas/downloads/qwt-6.0.1/src'
              make: *** [sub-src] Fel 2

              A long list of errors
              /

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                ZapB
                wrote on last edited by
                #9

                You're trying to use Qt 3!?!?

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  toho71
                  wrote on last edited by
                  #10

                  Thank you

                  I'm a newbie so it isn't so easy.
                  I try to uninstall qt 3 because in makefile and qmake will setup qt 3 again.

                  Is there an easier way to do this.

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    ZapB
                    wrote on last edited by
                    #11

                    Just make sure that you have the correct version of Qt configured inside QtCreator. Go to Tools-Options->Qt4 and check that your Qt4 version is listed there. If not please add it.

                    Then in your project, click on the "Projects" mode icon in the left panel and ensure that in the Build page you have the correct Qt4 installation selected there.

                    Then re-run qmake and build.

                    Nokia Certified Qt Specialist
                    Interested in hearing about Qt related work

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      toho71
                      wrote on last edited by
                      #12

                      Thank you
                      I will try this and i'll be back
                      //Thomas

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        toho71
                        wrote on last edited by
                        #13

                        I did this in the terminal but!!
                        Same problem
                        //Thomas

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          toho71
                          wrote on last edited by
                          #14

                          This is the error now in the creator when im trying to do qmake on qwt


                          Reading /usr/local/qwt-6.0.1/src/src.pro
                          Project ERROR: local build will conflict with /usr/lib/libqwt.*
                          Exited with code 2.
                          Error while building project qwt
                          When executing build step 'QMake'

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            toho71
                            wrote on last edited by
                            #15

                            i have used the programcentral in debian to install qt and all libs to qwt and other plugins.
                            None of the plugins will work when i build the projects

                            i'm very newbie on both Debian and qt
                            i can't even build and run the qt exampels
                            something must be very wrong in my system.

                            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