barry-ran / QtScrcpy

Android real-time display control software
https://blog.csdn.net/rankun1/article/details/87970523
Apache License 2.0
18.69k stars 2.52k forks source link

Unable to resize main window, unreadable text #372

Open zaroth opened 3 years ago

zaroth commented 3 years ago

I'm not sure what in my KDE settings might be causing this (font size?), but I'm fairly certain that a modern UI shouldn't look like this right after installation:

image

The window is resizable vertically, but it doesn't help - it is NOT resizable horizontally. I can't read the text on buttons.

My environment details:

LatticeLadder commented 3 years ago

I'm a Chinese Arch user, too.

There's nothing wrong with your settings, just because chinese strings are much shorter than english. after all, most users of qtscrcpy are chinese users. 🙁

You can modify the source code to set the window size to no longer be fixed.

LatticeLadder commented 3 years ago

https://github.com/barry-ran/QtScrcpy/blob/33b0d65b19c23de6c8b6e506b076eda253d5241c/QtScrcpy/dialog.cpp#L129

have a try

barry-ran commented 3 years ago

I'll fix it

iestynapmwg commented 2 years ago

I'm assuming that because the original post is over a year old, it's been fixed. I can't find "setFixedWidth" in dialog.cpp, at least. My issue is very similar, except that all the text is clipped vertically instead of horizontally! shot-2022-07-26_10-44-28 Is there anything else i can tweak in dialog.cpp? Or in the xml file in that same directory? That seems to describe elements of the UI, but i'm not sure of the syntax or where to start.