简体   繁体   中英

How to access Child UI files

How can i access ui files of children of a class. Lets say MainWindow class has twoa child dialog. I want to access LINEEDIT of dialog so that i can take text from there. Similarly how can i access ui files of parent inside child class in QT. Note: I havn't inherited any thing from Parent class.

I suggest you read the beginner tutorials of Qt. The ui files just carry XML that the uic can read to turn into 'real' C++ for the compiler. If you need to send data between decoupled UI components, use Signals/Slots - a fundamental building block in the Qt framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM