Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

Accessing C++ model data from QML JavaScript code

Yes, it’s working fine now. I thought there would be a better way to do it, but this seems to be correct and works as expected.

View Article


Item {} to QImage

Hi Is there is a way to get an item’s content as an QImage snapshot?

View Article


[Solved]Unable to listen to port

ooops. You should not have both. May complete posting of the code would helped. It is good that is solved now. Happy ending. Enjoy

View Article

TextFieldStyle messes up TextField.baseline, workaround?

Hello Does anyone have an idea how I could create a workaround for the bug below? Thanks for your help https://bugreports.qt-project.org/browse/QTBUG-36529

View Article

[Solved]Element Template

Yeah currently reading, thank you.

View Article


TextFieldStyle messes up TextField.baseline, workaround?

I verified the issue. Modifying Base/TextFieldStyle.qml to add real baselineOffset: control.__contentHeight in the definition of the “panel” item might be a workaround until we have a proper fix in place.

View Article

ListElement: cannot use script for property value error [Qt Quick/C++]

Hi guys I want to use Qt Quick/C++ together. For this, I wrote SteelProfile Class (C++) and own functions. I can’t assign “steelprofileID.steelStandardName” value to ListElement. There is a weird...

View Article

High-dpi Image item

Is Image item supposed to automatically detect that there is a “@2x” file alternative on high-dpi displays and use it? That’s what I understood from...

View Article


'L' Shaped Enter Button

Hello all, I’m trying to implement a QWERTY keyboard using buttons like below: See the enter button is an ‘L’ shape. Is this possible? Thanks in advance for any help/direction.

View Article


Application crash when updating the text of a label.

Dear all, I’m learning Quick. In a simple application, I try to update the text of a label when a button is pressed. I’m not able to update the text but the application crashes (qt 5.2.2). How can I...

View Article

'L' Shaped Enter Button

Hello and welcome to qt-project.org. Where should the L-shaped enter button be? Or is it the inversed L on the bottom right? To answer your question: it is basically possible. What are you using for...

View Article

High-dpi Image item

Hey, i never worked with high-res images in QML, but it actually should display it in high-res. I can’t see a reason why it should not work. For example: if you’ve got an image with the resolution of...

View Article

Application crash when updating the text of a label.

Hello and welcome to qt-project.org, first i was very suspicious about your problem, because the QML code should be fine. I’ve tested it using a QtQuick2AppicationViewer, BUT with Qt 5.1, QtQuick 2.0,...

View Article


ListElement: cannot use script for property value error [Qt Quick/C++]

Hi, You should take a look at the example in: qt5_intall_folder/qtquick1/examples/declarative/modelviews/objectlistmodel/ you have an example of an object implemented in C++ that you can then use in...

View Article

[Closed("Solved")]QQuickView Object Property

When i am creating a QObject pointer which points at the rootObject of a QDeclarativeView and i try to get a property value from QML with the function property(), it works, but when i am using a...

View Article


Smartphone/Tablet Icon/App-like Positioning/Drag and Drop

Is there any good way of doing a Smartphone/Tablet-like Positioning with draging QML Components around which snap to position and move other Components away, a customized positioning, that means not a...

View Article

[Solved] Singletons in 5.2

Hey, i am afraid i am super confused as to how Singleton types are supposed to work. The documentation on the area is sparse at best and when there is some, it’s all saying something different or...

View Article


Window width and height in QML

Hello I’ve got a strange question. Is it possible to find out a root qml Item size when the window is maximized (viewer.showMaximized(); method is used). I’m asking because this code Item {  ...

View Article

[Solved] Singletons in 5.2

woop, u where to fast haha. Yeah i came to the same conclusion! Thanks for the info regardless! :)

View Article

Window width and height in QML

Hey, first of all: root.width is printing you 0 because it’s width is 0. From where do you want to find out your QML Item size? If you want to find it out from QML then you’ll have to do it like you...

View Article
Browsing all 4972 articles
Browse latest View live