python - PyQT combobox only react on user interaction -


I have a listback in which you can select users. Keep it if the user is in the group, the combobox will automatically be set to that group. I want to make it because when you change the group selection, it will move that user to that group. I added this connection:

  QtCore.QObject.connect (self.GroupsBox, QtCore.SIGNAL ("CurrentInstex Converted"), Self. HandleGrouping)  

The problem is that since I will select different users in different groups, every The times when I select a new user, the default option changes in Cambobox. And QT it registers as a "current index Chenjed 'signal.

> There is no way to fire the signal directly on the user-dialog directly with the user itself. Get a hint from QComboBox (), and update.

The selected user based on that handler function in you, do not do anything if the selected index in the boxbox Is similar to that which is in the chosen user.

Perhaps move your combobox to the right of the user listbox, as the order of your actions select the user -> select the group.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -