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?
Related
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
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 writing an image viewer, and I'd like some behavior from Qt:
imagine the viewer displays the image in a 256x256 box. Now I want that ctrl+Z do a zoom + resizing of the window; ie. show the 2x zoomed image in a 512x512 box, how can I do that?
Also, imagine know the user gave a certain shape to my viewer, and that he presses F10, I want to change the layout to display the viewer in the same size (if possible, eg not overflowing the screen) and add additional controls under it, and resize the complete widget in a way that the viewer widget does
Maybe you could use the QWidget::minimumSize property to change the widget minimal size.
If the size of your zoomed image gets bigger than the screen, you might have to put your widget into a QScrollArea.
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
How to fit Qt application in phone window? When app is being designed it fixes the size of controls like combobox, calendar etc. When I run in emulator they are squeezed but, I want them to resize n fit in window as per the size of window.
Try using showFullScreen instead of show.