Probably the easiest way is to create checkbox and replace default check image with android style icon
1. UI file does not know anything about H file.
2. Rename slot to on_button1_clicked and read about QMetaObject::connectSlotsByName.
3. Don't edit manualy UI files.
I use Qt Creator for majority of signal-to-slot assignments
In the case of having 2 buttons in MainWindow , with very similar actions I wanted the second of the buttons to trigger the...
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.