Hi
Gennon is right.
on pressed you can reduce the z-value to less than back z mouse area.so that at that point of time back button mouse area will be focussed. And when back button mouse area is clicked u can do vice versa...
Thanks
Hi again.
If you are not going do to anything with the text, then you could try to just set enabled = false.
@
TextEdit {
enabled: false
text: qsTr("Hello World")
anchors.centerIn: parent
selectedTextColor: "yellow"
selectionColor: "black"
Component.onCompleted: selectAll();
}
@
At least that worked fine for me.
Welcome to the forum. This is the default behaviour as MAC already provides quit button. Since "Quit App" comes by default in MAC, this menu option is taken out as it is not necessary. Just change to "Exit" to "xExit", it works.
Thanks.
But is QNetworkAccessManager using somehow cache to store the file? Because it always reads the same content although it has changed in the meantime... Is there a way to clear cache? Or sth similar???
I figured out what the problem was - My ListModel did not directly derive from QAbstractListModel. It derived from a base class that handled display roles for common attributes of a base model. In my TableView I was not using the base roles as they were not required but for some reason TableView expects the number of roles in the list model to match the columns. As a workaround I cleared the roles in my derived class constructor and removed call to BaseListModelClass::getRoleData() from derived class getRoleData and this fixed the problem. Hope this helps for other users.
Caching can also be handled with a "QQuickImageProvider":https://qt-project.org/doc/qt-5/qquickimageprovider.htmlQQuickImageProvider.
After defining and register a provider, image urls can be written as "image://ProviderName/path/to/image".
The same concept exists for Qt 4 in the form of QDeclarativeImageProvider.
Finally I find the text is rendered OK when I add
@renderType: Text.NativeRendering@
to Text, don't know why the default Text.QtRendering doesn't work. Is it a bug?
bq. I used it just because I didn’t need extra scrolling area services from ListView
Well you can disable scroll using "interactive":http://qt-project.org/doc/qt-5/qml-qtquick-flickable.html#interactive-prop property.