C++ QT anomalies

C++ QT anomalies

istan
Advisor Advisor
848 Views
6 Replies
Message 1 of 7

C++ QT anomalies

istan
Advisor
Advisor

Are there any C++ programmers left?

Max aparently uses a modified QT version. Many widgets cannot use stylesheets anymore.

Is there a way to get the original QT appearance back again - at least for my plugins?

e.g.

a) doublespinners use smaller up/down buttons

b) treeview header is bigger and cannot be changed

c) all hover functions in general cannot be tuned (i.e. I want to highlight the whole checkbox text instead of just the box)

..

Unfortunately AD did also not add the changed QT source code to the debug release, to see what they all changed..

0 Likes
Accepted solutions (1)
849 Views
6 Replies
Replies (6)
Message 2 of 7

denisT.MaxDoctor
Advisor
Advisor

@istan wrote:

Are there any C++ programmers left?

Max aparently uses a modified QT version. Many widgets cannot use stylesheets anymore.

Is there a way to get the original QT appearance back again - at least for my plugins?

e.g.

a) doublespinners use smaller up/down buttons

b) treeview header is bigger and cannot be changed

c) all hover functions in general cannot be tuned (i.e. I want to highlight the whole checkbox text instead of just the box)

..

Unfortunately AD did also not add the changed QT source code to the debug release, to see what they all changed..


Are you talking about rollout controls? All rollout controls are still winapi, but now they are drawn by Qt. Thus, there is no "real Qt" control behind, and there is no way to change the appearance.


 

0 Likes
Message 3 of 7

istan
Advisor
Advisor

I use no rollouts so far. But I could work around some issues by setting stylesheets at runtime. This way, some of the Max changes can be undone again. For spinner controls I have no solution yet - afaik they don't use stylesheets for the buttons.

0 Likes
Message 4 of 7

denisT.MaxDoctor
Advisor
Advisor

@istan wrote:

I use no rollouts so far.

... they don't use stylesheets for the buttons.


who doesn't use stylesheets? Where? 
of course for every Qt widget you can set stylesheet  

0 Likes
Message 5 of 7

istan
Advisor
Advisor

i think qdoublespinners up/down buttons cannot be changed by stylesheets - esp. in their size..

0 Likes
Message 6 of 7

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

this is what you can do with QSpinBox 
https://doc.qt.io/qt-5/stylesheet-reference.html

0 Likes
Message 7 of 7

istan
Advisor
Advisor

Yep - You were right! Thanks. It's also working!

BTW: Happy New Year!

0 Likes