In Qtvcp, if the button is an action button that reacts to linuxcnc's status, such as estop or pause, then having multiple buttons will work as you wish without doing anything special.
If the button is setting a HAL pin, then the buttons will not stay in sync with each other. You could sync them using python programming of course. You must take care not to create an endless loop of circular updates. I think I would use one special Qtvcp button for the HAL pins then regular QPushButtons that follow/update that Qtvcp button. You are the first person to ask for synced buttons so I don't have any specific example code to show. Chris ________________________________ From: Ted <laser...@gmail.com> Sent: July 11, 2024 9:20 PM To: emc-users@lists.sourceforge.net <emc-users@lists.sourceforge.net> Subject: [Emc-users] Preferred way to slave multiple QTVCP pushbuttons? Greets - I'm building a from-scratch standalong gui with small real-estate (800x480 5" touchscreen). Obviously I won't be able to have the traditional "full featured" elements like SilverDragon, but that's ok. What I do have is a tab-widget with 5 tabs that hold all of my workflows, but there are a couple buttons that need to be on multiple tabs, such as CycleStart, FeedHold, Lubrication Enabled, etc. The "easy" way of solving this would be to have them on a section of the MainWindow, outside of the tab-widget, however there are tabs where I do *not* want those buttons, so this isn't a preference. I would like to have for example a "Lubrication Enabled" button on tabs 1 and 3, and if I click it on tab 1, its actions, including status are mirrored to the same button on tab 3, and vice versa. The buttons I want to use in this case are indicating buttons, since it lets me quite easily add nice graphic icons for the applicable button states. HAL signals would of course be what trigger the hardware. What is the recommended way of slaving multiple buttons together? Just HAL or just signals, or both? Thanks, TH. -- This email has been checked for viruses by Avast antivirus software. www.avast.com<http://www.avast.com> _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users