Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Problem while converting an wxWidget application to Qt
Forum Updated to NodeBB v4.3 + New Features

Problem while converting an wxWidget application to Qt

Scheduled Pinned Locked Moved 3rd Party Software
6 Posts 2 Posters 3.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.
  • sajis997S Offline
    sajis997S Offline
    sajis997
    wrote on last edited by
    #1

    Hello forum,

    Let me know if am posting in the wrong forum. I am having problem while converting an wxWidget application to Qt. The existing one is with wxWidget and a third party API - H3D

    I need to use this party API - H3D and they are instantiating glew somewhere within the API.

    I am using Qt 4.4 and it is complaining while instantiating QGLWidget subclass. It is related to the glew wrangler. Have any one of you faced the issue of glew initialization with Qt ?

    Some suggestion is requested to get around this issue.

    Regards
    Sajjad

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

      I split off your question from the thread you had posted it to.

      Generally, you should open a new thread if you have a question on your own.

      The 3rdparty forum is ok for your question (sorry for moving it around a couple of times, I misread one part of your question).

      BTW: Qt 4.4 is quite outdated. I would recommend to switch to 4.8.0 if possible.

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

      1 Reply Last reply
      0
      • sajis997S Offline
        sajis997S Offline
        sajis997
        wrote on last edited by
        #3

        Hello forum,

        Considering the amount of resource and time provided i am not sure of installing the new version. Still i am considering your suggestion.

        I would like to ask something before i go for version upgrade. the third party API has a class H3DWindowNode and it has to be subclassed for further customization. The constructor is initializing the glew wrangler library. This initialization is causing the compilation error while initializaing the QGLWidget subclass. The paintGL function of the QGLWidget sublass in turn call the third party rendering function.

        Will this issue be resolved if i do the version upgrade

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

          Upgrading to a newer version of Qt is usually not a problem. All newer Qt libraries are binary compatible to the older versions, so theoretically the could be just replaced without even recompiling your application.

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

          1 Reply Last reply
          0
          • sajis997S Offline
            sajis997S Offline
            sajis997
            wrote on last edited by
            #5

            Hi Volker,

            I have managed to compile the most recent version and i am having some unwanted behavior within my project. While implementing the scenario with the previous version (4.4), this behavior did not show up.

            I believe that i have to start a new thread for this. It is related to graphics item in the scene. I am connecting the several elliptical items into the scene with arrow. Once they are connected, the arrow is not updated when i am making positional changes to the nodes. The arrow is supposed to be stretched.

            Never mind, i shall open up a new thread and explain the nature of the problem i am having.

            Please keep your heads up!

            Regards
            Sajjad

            1 Reply Last reply
            0
            • sajis997S Offline
              sajis997S Offline
              sajis997
              wrote on last edited by
              #6

              Hi,

              The issue is solved. I had to make the following addition to my elliptical graphics item class:

              [code]
              setFlag(ItemSendsGeometryChanges);
              [/code]

              Thanks
              Sajjad

              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