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. QT 4 on Code::Blocks 10.5 with QGLWidget Not Solved yet
QtWS25 Last Chance

QT 4 on Code::Blocks 10.5 with QGLWidget Not Solved yet

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 6.0k Views
  • 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
    theblizzfreak
    wrote on last edited by
    #1

    Okay so i have a working ui but i cant figure out how to get opengl working with qt on code::Blocks 10.5 it has something to do with QMake and or Cmake?? but i dont even know where to start any ideas or hints or tutorials that are well thought out and explained in depth or could someone explain it to me

    i have tried some but it ant been succesfull so far :(

    oh and if anyone was wondering why i use Code::Blocks 10.5 over QT awesome software is because i feel it puts me away from the code and more on the designer i like to feel like im the one thats in control :) but i dont think its software is bad or needs to be changed!

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

      You may get around qmake and cmake problems by using an IDE such as qt creator, if those tools are really the origin of your problem.

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

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

        very much true :) but i did think okay maybe ill just use the QT creator and i tryed very stumbornly to get my code coming from qt that was written in code::Blocks working with the qt creator but it required more extra setups to work so i wasnt happy with that so im stuck with QMake problems i really dont mind problems its when i cant see any logic or meaning to it that gets me up evil :)

        hopefully someone knows how to work Qmake and get QT and Opengl working with Code::Blocks :D and plus i can learn from them

        1 Reply Last reply
        0
        • T Offline
          T Offline
          theblizzfreak
          wrote on last edited by
          #4

          Any ideas? plz

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

            The different makes (qmake, cmake, nmake, make, ...) are not my best friends either. So I am of little respectively no help.

            Within this forum you might get the best help when you are using Qt Creator.

            BTW it is Qt. "QT" stands for "Quick Time" in this forum.

            Good luck.

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

            1 Reply Last reply
            0
            • T Offline
              T Offline
              theblizzfreak
              wrote on last edited by
              #6

              lets just hope someone answers :)

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rokemoon
                wrote on last edited by
                #7

                If you have yourProjectName.pro file so you shold add:
                @contains(QT_CONFIG, opengl): QT += opengl@
                in .h or .cpp add this:
                @
                #ifndef QT_NO_OPENGL
                #include <QGLWidget>
                //and so on
                #endif
                @
                if you use cmake so add this:
                @
                #############################################################

                search for Qt4

                SET(QT_MIN_VERSION 4.4.0)
                FIND_PACKAGE(Qt4 ${QT_MIN_VERSION} REQUIRED)
                SET(QT_USE_QTOPENGL 1)

                INCLUDE( ${QT_USE_FILE} )

                TARGET_LINK_LIBRARIES(yourAppName
                ${QT_LIBRARIES}
                )
                @
                Some thing like this :-)

                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