Important: Please read the Qt Code of Conduct -

Mouse Click in QCoreApplication

  • Hello. I have basically an old-style console application. Before reaching a.exec(), a read-eval-print-loop thread is started.

    But it would be nice to occasionally find out where in the window the user clicked. Can I find out about a mouse event in this situation?

           Regards, Rick

  • I don't think Qt has any such functionality. You'll have to use a different library to find the mouse position in a console app.

Log in to reply