Questions tagged [applicationwindow]

27 questions
7
votes
1 answer

Hot reload QML when using ApplicationWindow

Has anyone been able to hot reload all QML files when using a ApplicationWindow? I found a few examples like https://qml.guide/live-reloading-hot-reloading-qml/ and https://www.slideshare.net/ICSinc/how-best-to-realize-a-runtime-reload-of-qml, but…
marsl
  • 959
  • 1
  • 14
  • 25
4
votes
1 answer

Qt quick ApplicationWindow 'color' for background color doesn't work

I created a simple Qt quick application with a single main.qml, which is like the code below. The problem is the background color of window wasn't set to #ffffff, instead it's set to light gray (the default color of window on Windows I thought). The…
zhangwt
  • 350
  • 1
  • 2
  • 12
2
votes
0 answers

Qt QML One application, one taskbar entry, multiple windows

I create a Qt6 QML application with multiple windows. I have the main screen (an ApplicationWindow) and from there I open (modal) another Window. The two windows are in different Qml files and the first one is set as a parent for the second one.…
mtb
  • 1,350
  • 16
  • 32
2
votes
1 answer

How to listen for when my application loses focus?

I need to trigger an event when the application window loses focus. How would I set up a listener on the window for that?
user203921
  • 21
  • 1
2
votes
0 answers

Application window error "Plug-in "org.eclipse.wb.core.ui" was unable to instantiate class"

Im trying to add a GUI to my program but I am faced with this error when I create a "Window builder > Swing Designer > Application Window". I searched for an answer and it may be caused by having JDK 9 but I just installed JDK 10 and still am…
Evan
  • 21
  • 2
2
votes
1 answer

Get Size of ApplicationWindow in C++

How do you get the size of the QML ApplicationWindow in C++? QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); if (engine.rootObjects().isEmpty()) return -1; QObject *application_object =…
Ben Hoff
  • 1,058
  • 1
  • 11
  • 24
2
votes
1 answer

qml button not firing, same with MouseArea

Ive created a new QML project based on Qt 5.9.3. I setup a simple ApplicationWindow with a Button as well as my own button (MyButton) and I never get the onClicked() event to fire (apparently) for either of them. My application window pops up with…
Tim
  • 647
  • 1
  • 10
  • 21
2
votes
1 answer

How to rotate/change the orientation of ApplicationWindow QML?

I would like to by default set my app at 180 degree orientation. What is the API to rotate the screen at ApplicationWindow level? I have toolbars and statusbars in my app, so I need to rotate the ApplicationWindow itself.
jxgn
  • 741
  • 2
  • 15
  • 36
1
vote
1 answer

Qml application is not fitting when you change resolution

I have a simple qml ApplicationWindow program with "Maximized" visibility. The application fits properly on my screen when the PC setting is below: Resolution : 1920x1080 (Recommended) Scale : 100% screenshot :…
RaviS Gupta
  • 95
  • 2
  • 11
1
vote
1 answer

QML Dialog positioning in ApplicationWindow

I am finding it impossible to position a Dialog central to my ApplicationWindow in QT 5.12 import QtQuick 2.7 import QtQuick.Controls 2.2 import QtQuick.Dialogs 1.2 ApplicationWindow { id:mainApplicationWindow visible: true height:…
CitizenFish
  • 312
  • 2
  • 13
1
vote
1 answer

How can I send parent to a new ApplicationWindow

I want to recover the position and the size of the master "main.qml". But I do not know how to declare the parent of the new window. I have no problem if I open the window directly from the window main.qml in javascript but through python I do not…
Attila49
  • 59
  • 5
1
vote
2 answers

JFace ApplicationWindow white line at top of Window

I've created the most basic JFace ApplicationWindow I can think of and I get this 1 pixel white border at the top of the screen: And the code to create it: import org.eclipse.jface.window.ApplicationWindow; import…
jasonh
  • 29,297
  • 11
  • 59
  • 61
1
vote
1 answer

JFace ApplicationWindow: createContents isn't working

I'm attempting to create a window that is divided into three parts. A non-resizable header and footer and then a content area that expands to fill the remaining area in the window. To get started, I created the following class: public class MyWindow…
jasonh
  • 29,297
  • 11
  • 59
  • 61
1
vote
0 answers

How to extract specifics frames from mp4 file using C# metro application

I didn't find a way to extract specifics frames (ex: frame 1, 2 and 13) from a mpg4 file in a windows 8 application metro style. I found how to extact frame and directly save it in a file using C++. I have to only use C# to extract frames in…
Yupa
  • 11
  • 2
0
votes
1 answer

QML: How to hide a Menu item from the ApplicationWindow MenuBar

In QML/Qt6.5 I try to add/remove a Menu from the MenuBar of a ApplicationWindow dynamically and I don't find a solution. I can hide MenuItems but not the Menu itself. ApplicationWindow { id: mainWindow width: 600 height: 400 visible:…
Jürgen Lutz
  • 329
  • 1
  • 1
  • 10
1
2