Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

dial and button rotation look different

3 posters

Go down  Message [Page 1 of 1]

1dial and button rotation look different Empty dial and button rotation look different Mon Jan 16, 2023 12:56 am

feri



In Simulide 0.4.15 and 1.0.1 if I rotate the buttons and diallers at 0° and 180° the pixels are seen while at 90° and 270° they are very well defined.
It would be good if they were always well defined.
Greetings



Last edited by arcachofo on Thu Jul 06, 2023 5:23 pm; edited 1 time in total (Reason for editing : Mark as solved (green color))

arcachofo

arcachofo

That's interesting, but I have no idea about how to solve it.

feri



For the buttons I did this.
Code:

    m_button->setStyleSheet(
          "QToolButton {border: 1px solid gray; border-radius: 2px;\n"
          "padding: 0 3px; background: lightGray;}\n"
          "QToolButton:checked {background: darkGray;}\n");

for the dial

dial and button rotation look different Qdial10

Things are more complicated but I'm looking for QDial I found little.
Greetings

arcachofo

arcachofo

Seems that QDial can't be configured with stylesheets...

feri



I changed the graphics of the dials and buttons as in the attached image.

dial and button rotation look different Dial10

If you are interested, I attach the files I modified.
Attachments
dial and button rotation look different Attachmentgui.zip
You don't have permission to download attachments.
(16 Kb) Downloaded 2 times

arcachofo

arcachofo

Great! you reimplemented QDial paintEvent.

Defran

Defran

I prefer the current aesthetic of Simulide.

arcachofo

arcachofo

I prefer the current aesthetic of Simulide.
The aesthetic will be similar, but feri wrote the hard part, I just have to change a few things.
Indeed it is almost done:

dial and button rotation look different Butt10

Defran

Defran

Ok, much better, I vote for this last one from SimulIde.



Last edited by Defran on Sun Feb 19, 2023 7:38 pm; edited 1 time in total

feri



Only the oscilloscope expand button is missing e
that of the logic analyzer.
This is simple but better than pixels:

Code:

QPushButton {border: 1px solid gray; border-radius: 2px; padding: 0 6px; background: #F3F3F3;}
QPushButton:pressed {background: lightGray;}

Greetings

arcachofo

arcachofo

Only the oscilloscope expand button is missing e
that of the logic analyzer.
This is simple but better than pixels:
Yes, you are right.
Thanks, I will fix it.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum