- Posts: 7368
- Thank you received: 2181
Сustomization QTvcp
- cmorley
- Offline
- Moderator
-
Less
More
5 years 1 month ago #220247
by cmorley
Replied by cmorley on topic Сustomization QTvcp
See if this helps:
Code:
def apply_stylesheet_clicked(self, index):
self.styleeditor.styleSheetCombo.setCurrentIndex(index)
self.styleeditor.selectionChanged(index)
self.styleeditor.on_applyButton_clicked()
The following user(s) said Thank You: hottabich
Please Log in or Create an account to join the conversation.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
5 years 1 month ago - 5 years 1 month ago #220250
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Cathed an error.
Fixed, and now it works
def apply_stylesheet_clicked(self, index):
if self.w.cmb_stylesheet.currentText() == "As Loaded": return
self.styleeditor.styleSheetCombo.setCurrentIndex(index)
self.styleeditor.on_applyButton_clicked()
Thank you so much!
Fixed, and now it works
def apply_stylesheet_clicked(self, index):
if self.w.cmb_stylesheet.currentText() == "As Loaded": return
self.styleeditor.styleSheetCombo.setCurrentIndex(index)
self.styleeditor.on_applyButton_clicked()
Thank you so much!
Last edit: 5 years 1 month ago by hottabich.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
5 years 1 month ago #220251
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Excellent!
Please Log in or Create an account to join the conversation.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
5 years 3 days ago #224655
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Hello! How to register so that when choosing tab_mdi TabWidget interface went to mdi_mode. Thanks!
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
5 years 2 days ago #224662
by cmorley
Replied by cmorley on topic Сustomization QTvcp
You can add a signal in designer to tab_widget that is sent when the tab changes.
currentChanged(int) pobably would do what you want.
currentChanged(int) pobably would do what you want.
The following user(s) said Thank You: hottabich
Please Log in or Create an account to join the conversation.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
5 years 2 days ago - 5 years 2 days ago #224666
by hottabich
Replied by hottabich on topic Сustomization QTvcp
You can add a signal in designer to tab_widget that is sent when the tab changes.
currentChanged(int) pobably would do what you want.
I don't see the sender (tab_mdi) in the constructor.
self.w.main_tab_widget.setCurrentIndex(TAB_MDI)
self.w.tab_mdi.setChecked(True)
ACTION.SET_MDI_MODE()
self.w.mdi_mode_button.setChecked(True) I need to somehow link it in the handler. I think so.
Last edit: 5 years 2 days ago by hottabich.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.171 seconds