Important: Please read the Qt Code of Conduct -

QMainWindow hides when clicking on QLineEdit with dual monitor setup

  • I am using Ubuntu 18.04 with dual monitor setup.

    My application consists of a QMainWindow which shows/hides when clicking on a QSystemTrayIcon.

    This works fine in a single monitor/VM setup however when I setup with dual monitors I see that the QMainWindow comes up initially after install but when I click on the QLineEdit to put it into focus the QMainWindow goes away. Ideally the user should be able to re-show the QMainWindow by clicking on the QSystemTrayIcon but that becomes unresponsive.

    Not sure what the issue could be...any help would be appreciated.

  • Lifetime Qt Champion


    Did you try to run your application through the debugger ?

  • I did not run it through the debugger. You mean through Qt creator?

  • Lifetime Qt Champion

    Whatever you're more comfortable with.

Log in to reply