Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Launching Gnome Terminal Stop QTimer

    General and Desktop
    gnome qtimer c++
    2
    6
    1498
    Loading More Posts
    • 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.
    • D
      DougyDrumz last edited by

      When I launch a gnome terminal from my QtGUI, the QTimer appears to be suspended until the gnome terminal is closed. Is there any way to fix that? The GUI that brings the gnome terminal up and the gnome terminal are not modal. I bring the gnome terminal up in the background. Do I need to put the gnome terminal in a sleep loop so the QTimer gets some CPU cycles?

      Dougy Drumz

      A 1 Reply Last reply Reply Quote 0
      • A
        ambershark @DougyDrumz last edited by

        @DougyDrumz Are you talking about launching the terminal with QProcess? If so it shouldn't have any impact on your current application for timers or blocking of threads or anything like that.

        Can you show some code for launching the process and the timer you are expecting to fire?

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        1 Reply Last reply Reply Quote 2
        • D
          DougyDrumz last edited by

          Yoiu know, I didn't use QProcess. Maybe that's what I should have done. Right now, a separete class (and executable) launches the gnome terminal using a system command.

          Dougy Drumz

          A 1 Reply Last reply Reply Quote 0
          • A
            ambershark @DougyDrumz last edited by

            @DougyDrumz That may be the issue. system may be blocking the thread which stops the timer from kicking off.

            Try converting to QProcess, it's super easy to use and see if you still have issues.

            If you don't want to convert, you can try putting that system call in it's own thread and see if that fixes things for you.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply Reply Quote 2
            • D
              DougyDrumz last edited by

              Worked like a charm! Thanks.

              Dougy Drumz

              1 Reply Last reply Reply Quote 0
              • D
                DougyDrumz last edited by

                QProcess that is.

                Dougy Drumz

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post