Qt 5.5 - touchscreen-events only working in initial (first) window

后端 未结 1 1042
感动是毒
感动是毒 2021-01-16 23:39

I\'ve set up a basic Qt-Widgets-Application (Qt 5.5 community) with a simple QWidget \"MainWindow\" and an additinal QWidget \"SettingsScreen\".

Within the \"MainWin

相关标签:
1条回答
  • 2021-01-17 00:21

    Actually the thing is QMainwindow or any base Widget of your application is able to properly synthesize the Unhandled touch screen events to Mouse events. So whenever you are creating a dialog/widget, make sure to set Mainwindow as there parent and in the constructor of the child widget use setParent(parent). Even I was facing this kind of Issue and this worked for me.

    0 讨论(0)
提交回复
热议问题