Recent

Author Topic: Exiting nested showmodals results in mainform allowing focus  (Read 1189 times)

bigDan

  • New Member
  • *
  • Posts: 43
    • BigDanzBlog
Exiting nested showmodals results in mainform allowing focus
« on: November 03, 2019, 06:22:45 pm »
I have a large app that has been running on macOS/64bit/QT5. I would love to get rid of QT and use Cocoa instead. I installed 2.0.6 this weekend and tried using Cocoa.

For the most part things work. I hit two problems though, the first I'll document here:

FormA does a FormB.showmodal.
FormB does a FormC.showmodal.

At this point, 3 forms are displayed. If you click on FormA or FormB, neither will become active.

Now exit FormC, returning to FormB.

At this point FormB is displayed.

However, if I click on FormA it will become active.

In Windows, macOS/QT, and macOS carbon, formA will NOT become active like this.

I believe this is a bug?

Enclosed is a test app I have tried on Windows, macOS/QT, macOS/carbon, and macOS/Cocoa. To replicate the problem, run the app,

  • click on DOIT in FormA
  • click on DOIT in FormB
  • click on EXIT in FormC
  • Now, click on FormA and it will become active.





skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Exiting nested showmodals results in mainform allowing focus
« Reply #1 on: November 05, 2019, 06:34:05 am »
please try r62198

bigDan

  • New Member
  • *
  • Posts: 43
    • BigDanzBlog
Re: Exiting nested showmodals results in mainform allowing focus
« Reply #2 on: November 05, 2019, 07:44:09 pm »
Works like a charm!

 

TinyPortal © 2005-2018