Сustomization QTvcp

More
23 Nov 2021 07: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.
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Nov 2021 19: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.

More
23 Nov 2021 20:46 #227431 by hottabich
Replied by hottabich on topic Сustomization QTvcp
TabSize, icon_size, autoHide change nothing.
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Nov 2021 21: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
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
23 Nov 2021 23:23 #227453 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Replaced TabWidget with QTabWidget and it's fine. Thank you for the attention!
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Nov 2021 23:39 - 23 Nov 2021 23: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
Last edit: 23 Nov 2021 23:40 by cmorley.
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
24 Nov 2021 09: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.

More
26 Nov 2021 20: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.
Attachments:

Please Log in or Create an account to join the conversation.

More
26 Nov 2021 22: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
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
27 Nov 2021 05:39 - 27 Nov 2021 05:53 #227724 by hottabich
Replied by hottabich on topic Сustomization QTvcp
My mistake. For python 3 it works as is. 
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))
  This is how it works with python 2. Thanks!
Last edit: 27 Nov 2021 05:53 by hottabich.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.105 seconds
Powered by Kunena Forum