- Posts: 574
- Thank you received: 0
Сustomization QTvcp
4 years 11 months ago #227381
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Hello! Please tell me how to change the height of the button in TabWidget and tabBarAutoHide? In QTabWidget, the height of the button can be changed in the StyleEditor.
Please Log in to join the conversation.
4 years 11 months ago #227428
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Try changing the icon size in the tab widget
Please Log in to join the conversation.
4 years 11 months ago #227431
by hottabich
Replied by hottabich on topic Сustomization QTvcp
TabSize, icon_size, autoHide change nothing.
Please Log in to join the conversation.
4 years 11 months ago #227436
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Then style sheets is probably the only way:
doc.qt.io/qt-5/stylesheet-examples.html#...abwidget-and-qtabbar
doc.qt.io/qt-5/stylesheet-examples.html#...abwidget-and-qtabbar
Please Log in to join the conversation.
4 years 11 months ago #227453
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Replaced TabWidget with QTabWidget and it's fine. Thank you for the attention!
Please Log in to join the conversation.
4 years 11 months ago #227455
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Sorry i missed it was TabWidget not QTabWidget.
There is a property tabSize that might have helped
There is a property tabSize that might have helped
Please Log in to join the conversation.
4 years 11 months ago #227490
by hottabich
Replied by hottabich on topic Сustomization QTvcp
TabSize in the constructor does not work, I asked about this in the post above. Thanks!
Please Log in to join the conversation.
4 years 11 months ago #227685
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Please tell me what is wrong with the rapid_rate adjustment. The numeric value of current_rapid_rate is not displayed.
Please Log in to join the conversation.
4 years 11 months ago #227694
by cmorley
Replied by cmorley on topic Сustomization QTvcp
I would add a print statement in the function adj_rapid_changed to confirm it's being called.
I would guess a variable such as self.factor = 0
Chris
I would guess a variable such as self.factor = 0
Chris
Please Log in to join the conversation.
4 years 11 months ago #227724
by hottabich
Replied by hottabich on topic Сustomization QTvcp
My mistake. For python 3 it works as is.
This is how it works with python 2. Thanks!
Code:
def adj_rapid_changed(self, value):
rapid = (float(value) / 100) * self.max_linear_velocity * self.factor
self.w.lbl_max_rapid.setText("{:4.0f}".format(rapid))
Please Log in to join the conversation.
Time to create page: 0.653 seconds
