How do I copy object in Qt?

后端 未结 3 650
梦毁少年i
梦毁少年i 2020-11-27 21:40

I\'m using Qt and have some real basic problems. I have created my own widget MyTest that have a variable obj. I need to set this variable obj from

3条回答
  •  迷失自我
    2020-11-27 22:12

    if you want to transfer data and want to use the very simplest way, just create a signal and slot between both widgets. Connect them in the main widget, and pass data while calling the slot.

提交回复
热议问题