Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about signals-slots

Read more about signals-slots

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - signals-slots

Qt Python - in a list of buttons change color of all buttons up until the one that was clicked

I have a list of Qt buttons like this: self.buttons = [button1, button2, button3] When one is clicked, I want all the buttons that come before the one that was clicked in the list to change their colo...
test-img

Tolga Poyraz

python

pyside

pyside2

signals-slots

qpushbutton

Votes: 0

Answers: 1

Latest Answer

Add all the buttons to a QButtonGroup (using their index as id) and then connect to the group's idClicked signal. This will automatically send the index of the clicked button. Below is a simple demo t...
test-img

ekhumoro

Slot method called in the wrong thread (pyqt)

This class suppose to handle a long task in a separate thread. Despite moving my object to a new thread, and using queued connection, the signal is handled at the main gui thread instead of self.thre...
test-img

eyal0931

python

multithreading

qt

signals-slots

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved