In QML, i'm using ScrollView along the TextArea to view the input commands and output.
I'm facing two problems here:
The TextArea doesn't scroll down automatically, i want the ScrollView to show me the latest output so that i doesn't have to scroll down manually to see it.
I'm unable to change the TextArea background color. The background I want to be transparent so that it reflects the main windows background.
ScrollView {
id: view
anchors.fill: parent
TextArea {
id: outputTxt
color: "black"
readOnly: true
selectByMouse: true
text: "TextArea\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n"
anchors.fill: parent
}
}
[image: 3e7e8086-937b-4d31-810f-b2b80d4d683b.PNG]
Restarting the target Device worked for me. However, to delete any previously installed Application, delete it via XCode and not manually from the device {Delete App} and then restart. If already deleted manually, simply restart the target device. Tested on Qt 5.15.9 and iPad 6th gen and OS 14.0
I could solve the problem by going back to QT 5.15.2 coming from 6.3.2. However the example still does not work out of the box. All QtQuick imports miss version numbers and Screen01 is not found.
@AkshayFP said in How to console log a JS object:
This is so weird. I am not sure why I am not able to print it.
Try creating a new, blank project and test it there.
I'm guessing your original code has something like cycleOptionsAllowed = [] somewhere.
@SPlatten said in How to use configure project ot open correctly in Qt Creator:
Is it possible that these are only resolved at runtime?
Could be, I'm not a QML expert. Is this code line in your project?
@jsulm said in Compilation Process in Qt Creator using command prompt.:
@Sharathkumar-T After running qmake you simply run make or mingw32-make.exe. I don't know what you're trying to achieve with "qmake.exe E:\ExampleCode..." - this does not make sense.
Also, on windows you need to add .exe suffix to make.
Thanks a lot for your advice
@J-Hilk , thank you, I searched the entire source for setContextProperty and found lots of other references but sadly not for "vehicle".
Found it I think, there is a helper function that calls setContextProperty where one of the parameters passed into it is "vehicle".