Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. what techniques are helpful analyze event driven programs?
QtWS25 Last Chance

what techniques are helpful analyze event driven programs?

Scheduled Pinned Locked Moved Solved The Lounge
14 Posts 2 Posters 3.5k 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.
  • N Offline
    N Offline
    nischu
    wrote on last edited by
    #1

    Hello there,
    until this time I had written some small programs which all had a linear flow control. For planning and analyzing such code the only tool I use is a flow chart.
    Now I will tackle the jump to event-driven programming, therefore I want familaiarizing me with the Qt-framework . But I realize that it's pretty hard for me recognizing the structure of such code and a simple flow chart doesn't fit to this matter. So I would ask to yours, whose are allmost experienced programmers: What tools do you use for analyzing and designing your event-driven code? What reading material do you suggest for the subject?

    Thanks, Nico

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      One tool that's interesting is KDAB's GammaRay.

      As for reading, Qt's Signals & Slots is a good starting point.

      Take the time to go through the documentation, it's pretty complete.

      If you're also interested by QML, the qmlbook.org website is pretty nice.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • N Offline
        N Offline
        nischu
        wrote on last edited by
        #3

        GammaRay's capabilities sounding pretty good. Now I'm trying to install it from source.
        At time I struggle with cmake tool: The libraries of my Qt related files wasn't found and i don't know which file i need to configure.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Calling cmake directly or through Qt Creator ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nischu
            wrote on last edited by
            #5

            Which file i must open for compiling the project with Qtcreator? I couldn't find a '*.pro' file.
            But now I'm editing the cmake-file with make-gui. There are still three unset variables:

            Qt5Core_DIR,
            QT_PRIVATE_INCLUDE_DIR
            GLSLANG_VALIDATOR_EXECUTABLE

            So I think, if these are correct setten, it will build then fine.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              If you're building a cmake based project you won't have a .pro file unless your project supports both build systems.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              0
              • SGaistS SGaist

                If you're building a cmake based project you won't have a .pro file unless your project supports both build systems.

                N Offline
                N Offline
                nischu
                wrote on last edited by
                #7

                Thanks for this hint. But building with QtCreator is throwing the same errrors. The main thing is that in CMakeList.txt there are some requests for packages which should be installed by the package manager. But I have here my Qt environment installed locally to my home directory, without using a package manager. Therefore, the the package managment says to cmake, there aren't such librarys installed and so cmake refuses the building.

                I haven't much knowledge about cmake, so i will engage me learning more about cmake's facilities, and, maybe, i will being able tweaking the cmake files to my needs.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Was your project configured with cmake before using Qt Creator ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nischu
                    wrote on last edited by nischu
                    #9

                    Was your project configured with cmake before using Qt Creator ?

                    Did you mean I if I run cmake before I loaded the CMakeLists.cmake into Qt Creator? Surely.

                    But now I have installed the repository's Qt packages for my system (*.deb), in spite that's still Qt5.5, and now cmake configures fine.
                    Regrettably, "make" threw an error that there is missed a header file: private/qpainterpath_p.h
                    So I went to KDAB's homepage and installed its gammaray deb package. Now I'm able to run gammaray.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      In that case you have to help cmake find Qt 5. IIRC you can use CMAKE_PREFIX_PATH for that.

                      Anyway, glad you could start hacking :)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1
                      • N Offline
                        N Offline
                        nischu
                        wrote on last edited by nischu
                        #11

                        Do you know wich path I need? I have used set(CMAKE_PREFIX_PATH /path/to/Qt/5.7) and it didn't work.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          You are missing a level, you have to go to the folder where include is located.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nischu
                            wrote on last edited by nischu
                            #13

                            @SGaist
                            Thank you so much for your helping setting up a brandnew GammaRay install. Now it runs without errors and I'm glad being able to using it with Qt 5.7

                            Regards, Nico

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              You're welcome !

                              Happy hacking ! :)

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              1

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved