Screen overrun
-
@dencla
On Yocto weston, these envs are needed to run qt apps. You may need them as well. Try these out in your main() and see if they help.
setenv( "DISPLAY", ":0", 1 );
setenv( "GDK_BACKEND", "wayland", 1 );
setenv( "QT_QPA_PLATFORM", "wayland", 1 );
setenv( "WAYLAND_DISPLAY", "wayland-1", 1 ); -
@JoeCFD I gave it a shot. I don't think I saw any change, but I will work with it some more. If I size my screen to fit the display it works, but I would rather not have to do that because I don't know what display it will run on.
-
I thought I posted an answer about this...
In any case, since other application are behaving correctly on the target, the good old technique is to strip down your application to a basic widget. Then add back piece by piece your elements until it starts breaking again.
-
@JoeCFD I gave it a shot. I don't think I saw any change, but I will work with it some more. If I size my screen to fit the display it works, but I would rather not have to do that because I don't know what display it will run on.
-
I thought I posted an answer about this...
In any case, since other application are behaving correctly on the target, the good old technique is to strip down your application to a basic widget. Then add back piece by piece your elements until it starts breaking again.
@SGaist I don't understand the purpose of this. Are you saying that adding a widget to a window causes some error and I'm looking for which one? I have resized all of my widgets to make them fit on the screen and that works, but I prefer not to have to do this as I do not know which screen I will run it on.
-
I don't know your widget so I can't comment however since you are saying that you are resizing things manually then there lies your problem. You should consider using layouts and you will that automatic resizing based on screen size.
-
I don't know your widget so I can't comment however since you are saying that you are resizing things manually then there lies your problem. You should consider using layouts and you will that automatic resizing based on screen size.
-
Are you setting them explicitly and assigning your widgets to them correctly ?
Creating a UI in designer does not mean layouts are automatically used. -
@dencla
One simple thing from the Designer side: look at the Object Explorer at the right hand side, showing all your widgets in a hierarchical structure. If any widget nodes have a "red no entry" symbol on them that indicates you are missing a layout.To assign layouts in the UI you either right-click on a widget (once it has children) and set its Layout from there or there are actual layout items in the toolbox on the left to drag explicitly. I have never looked into whether they end up doing the same thing!