openhantek icon indicating copy to clipboard operation
openhantek copied to clipboard

Laptop 1366x768 UI jumping

Open coozoo opened this issue 7 years ago • 1 comments

Hi One more issue with old hardware (old but still a lot of devices with height 768). It's display size 1366x768 actually the problem is height 768. The docks from the right side not fitting into screen and as result when you try to click on it it's jumping up after click and again down after another click.

So launch app and you will see this:

openhantekopenglerror1

Try to grab something or simply click in the window, cause elements runaway from your mouse and jump window:

openhantekopenglerror2

And it will behave in such way for each click. Window without top part o window without bottom with hard way to click something. As result it's almost impossible to grab some dock and group them to make height less.

Sure the best solution it's place docks into qscrollarea but it's need more changes. . Partial solution it's to use qt5ct tool and go to Fonts tab where you need to reduce font size. After setting font to 10px application still doesn't fit.

The jumping still will be there. So we can minimize margins between elements for docks and main window layout by setting up top and bottom margin to zero:

setContentsMargins(1,0,1,0);

And here you can see result: laptopfix

It still looks good on large screens and fit onto 768 height

coozoo avatar May 20 '18 13:05 coozoo

ok here we go another stupid attempt to fit everything fine into any screen ))) now scrollbar not pretty way. but it works here image openhantekdockscroll

coozoo avatar May 22 '18 06:05 coozoo