I'm using JavaFX. When i add an imageview node to the stack pane and then run the application, I can only see the image after manually resizing the window (dragging the edge of the window with my mouse).
It will also show up if i setTranslateX or setTranslateY the image away from its original location. But if I want it to just stay there, I have to manually resize the window to see it. Has anyone encountered this? Is it a bug I just have to deal with?
Thanks
Related
I've encountered what might be a bug, but I do want to ensure there isn't a setting I missed somewhere...
I'm using JavaFX Scene Builder (this has the same behavior in Gluon Scene Builder), on macOS X High Sierra.
The Scene Builder application is operating in fullscreen mode, and when I press cmd+P to launch a preview window for the FXML project loaded, it opens normally, like so:
But if I put the preview into fullscreen (fills the screen space, not in fullscreen mode like scene builder app) by pressing the green plus at the top left, and then close it (or shrink back to normal size and then close), it reopens back in fullscreen.
My informal solution is to shrink the fullscreen window to normal size, then minimize the window (which also makes the screen black), then reopen the preview and then close it. That makes it open at normal size again.
My question is whether or not this is a bug. Is there a more simple solution or is this even the intended behavior?
Thanks.
I'm working on a game with JavaFX, and I'm bumping into graphics rendering issues if there are too many entities/ImageViews on the screen.
I'm using a Group as the root node of the scene, where I add an ImageView for each entity; to update the entities' positions, I use the methods setTranslateX and setTranslateY for each ImageView and for a ParallelCamera that keeps the main character centered on the screen. When the main character is not moving (aka the ParallelCamera is stationary) and there are several ImageViews on the screen, the view is not updated as it should.
Can I fix this? Thanks for the help.
I'm very new to Qt and am having an issue regarding the window size after building the project. In the editor mode, I am placing a widget along with a pushbutton and textbox near the bottom. After I carefully align the pushbutton and textbox to be near the bottom of the window, I build the project. The resulting window shows a clear gap between the pushbutton/label and the bottom of the window:
I feel like I'm in a position where I'm so new to Qt that I can't properly debug it. Would anyone here have any idea of what's causing this gap? Padding issue? OS specific issue?
I appreciate any help!
I'm new to Qt and I'm trying to figure out a way to auto-resize in Qt. The goal is for the user to be able to drag the window to make it bigger and everything resizes to the size of the window. Does anyone have any tips?
I am using Qt to construct an application. My MainWindow consists of an image of a map which I would like to be resized to the fit the window. This means when the window gets smaller the image gets smaller and vice versa. When the user selects a point on that image I want to remove this feature. I am new to Qt and haven't been able to figure this out. I am using QGraphicsView for this.
QGraphicsView::fitInView