Сustomization QTvcp
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
23 Nov 2021 01:24 #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 or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2182
23 Nov 2021 13:31 #227428
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Try changing the icon size in the tab widget
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
23 Nov 2021 14:46 #227431
by hottabich
Replied by hottabich on topic Сustomization QTvcp
TabSize, icon_size, autoHide change nothing.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2182
23 Nov 2021 15:38 #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
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
23 Nov 2021 17:23 #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 or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2182
23 Nov 2021 17:39 - 23 Nov 2021 17:40 #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
Last edit: 23 Nov 2021 17:40 by cmorley.
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
24 Nov 2021 03:40 #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 or Create an account to join the conversation.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
26 Nov 2021 14:50 #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 or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2182
26 Nov 2021 16:12 #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
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
26 Nov 2021 23:39 - 26 Nov 2021 23:53 #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!
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))
Last edit: 26 Nov 2021 23:53 by hottabich.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.511 seconds