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. Different behaviour inside X outside MS Visual Studio IDE - possible bug?
Forum Updated to NodeBB v4.3 + New Features

Different behaviour inside X outside MS Visual Studio IDE - possible bug?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.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.
  • F Offline
    F Offline
    frares
    wrote on last edited by
    #1

    Hi, Guys

    I have built a keypad for an image viewing application that a friend (mostly) and I are building, using a QWidget with only a QGraphicsView that contains a QGraphicsScene , that contains 26 graphic items in a grid, all of a class that inherits from QGraphicsSvgItem . I have implemented the "mousePressEvent" method to make those graphic items act like buttons.

    When run from inside the IDE, both debug and release versions work as expected. Now, running the app from a file manager or even from command line, things differ: the debug version works fine, but on the release one, only a few of those buttons work, and there is no pattern I could find on which will work, which won't. So it seems to me it might be an environment mismatch, but can't find it.

    Strangely, latter on I have also implemented the methods "hoverEnterEvent" and "hoverLeaveEvent", which plays with the item opacity, and all items always react to hovering events. But many (the same ones) keeps from receiving mouse clicks.

    I am using Qt 4.7.1 , built it from sources using MS Visual Studio 2005 SP1.

    Any help greatly appreciated.

    Thanks
    Francisco

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

      Hi Francisco

      this behaviour could be explained by different Qt libs installed on your system for instance. E.g. you have an application using older version of Qt and its installation directory is in the path.
      Can you install your application on another machine and try it there?

      BTW: There is also a SP2 available for visual studio 2005. You might want to check if an update is required, but i do not think this should have an effect as you describe.

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

      1 Reply Last reply
      0
      • F Offline
        F Offline
        frares
        wrote on last edited by
        #3

        Thanks for your answer

        But I did try on another machine, with the same results. Indeed, mine has 3 different Qt versions, but that another one has only one, 4.7.1

        Francisco

        1 Reply Last reply
        0
        • F Offline
          F Offline
          frares
          wrote on last edited by
          #4

          Hi, once again.

          I guess there really is a bug out there.

          I have managed to make things work using exclusively an "eventFilter" on the QGraphicsView object. But in the docs you can see that, if you return "false" on your implementation of that method, other event treatment methods should receive the event not filtered. That's not working every time, as if that program is launched inside the IDE, everything works, but from a command prompt, for instance, many SVG buttons don't work anymore - but some do!

          In time, I will build two zip files, one fully working and another working just from inside the IDE, and then issue a bug tracking.

          Thanks a lot
          Francisco

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

            Hi Francisco

            if you are able to make it retraceable you shall issue a bug report on "JIRA":https://bugreports.qt.nokia.com/secure/Dashboard.jspa Even so, if it is not retraceable you might want to file a bug report.
            Another thing you can try is to update your Qt version. Version 4.7.3 is most recent release. There is also a list with fixed bugs. May be it has been fixed already.

            Have fun

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

            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