PDA

View Full Version : checkbox position on resize



bwcal1999
27th October 2015, 01:18
Hello,
I am pretty new to QT but not new to C++.

I have a custom widget that displays a graph that's updated in real time. I also have a checkbox on that graph off to the side so a user can check it and something happens to the graph. When the screen starts, the checkbox is in the correct position (because I placed it there ) but when I go to full screen its not where I want it. Its not in proportion to its original position and my graph. Its actually over some of my data.

I am sure there is an easy way to fix this (I hope).

Also is there a way to not have the checkbox highlighted after you checked it? It has like a shaded orange colour around it. Its pretty annoying.

anda_skoa
27th October 2015, 08:41
Where in the widget tree did you position the checkbox?
Is it a sibling or a child of the graph?
Did you use coordinates for positioning or layouts?

The problem with the highlighting can probably be solved by setting the focus policy to "no focus".

Cheers,
_