After switching from Gnome and Unity to KDE, I had a problem with SDDM and it was that it could not detect correct resolution for my UltraWide monitor and set it to Full HD instead of 2560×1080. I had a similar problem in Ubuntu with another old monitor. Anyway that solution is same in both cases.
The solution for this problem is using Xrandr and Xsetup to set the correct resolution and make it permanent.
For example, in my case for 2560×1080 resolution and 50hz refresh rate, I used the following commands:
Note: you can get the right numbers for the first line of command using this:
cvt 2560 1080 50
Ok, we have the correct commands and resolution for our system, but problem is that we should run all these commands after every reboot and also these commands won’t apply to our login screen, so we should use Xsetup file to run the commands before loading the desktop manager, so we put above commands into Xsetup file.
The path for Xsetup file in KDE 5 (Kubuntu 18.04):
And for older versions of KDE:
Done, now reboot your system and enjoy the correct resolution.