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

QtQuick Controls Slider pressed signal

Hi, There is a pressed property for the Slider but unfortunately it is read-only. I can also see that there is a sliderPressed() -signal in QAbstractSlider but i cant send that signal from qml. Is...

View Article



How to crop an image inside an item (rectangle)?

You could use a Canvas and the clip API (see the Canvas example [qt-project.org]

View Article

Qt 5.3.0: process crash complaining about free() in QQmlImageProviderBase...

Hello, I am working on a project recently migrated to Qt 5.3.0 (previously it was running on Qt 5.2.1). My project is based on a QQuickView object being filled with some QML files, depending on some...

View Article

Bind a QML property on JS object through a function

Hi, I would like to bind a QML property to a JS object. The binding should test wether the JS object owns a property or not. Something like: property bool myAttributeExists :...

View Article

Mysterious height handling and Point size

Our QML application has a lot of text elements and all is looking good. But during the initialization we get a lot of point size errors for a number of Text elements. QFont::setPointSizeF: Point size...

View Article


Mysterious height handling and Point size

onFontChanged: {      console.log("new pointSize      : ", myText.font.pointSize)    ...

View Article

QML: Receive signals from C++ object in different thread

Could you post any example? Is the QML Window declared in the main.qml? Does main.qml receive the signal?

View Article

Qt 5.3.0: process crash complaining about free() in QQmlImageProviderBase...

Hi, Since you have a minimal project, you should take a look at the bug report system [bugreports.qt-project.org] to see if it’s something known. If not please consider opening a new report providing...

View Article


Menu Style?

This post is probably no longer relevant but just a FYI, Qt 5.3 has added MenuStyle; custom styling for Menu object in QML :...

View Article


Sharing same data class through diferent qmlRegisterTypes

Hi all. I’ve an app running Qt 5.2.1 where I have several qmlRegisterType classes working. All of them need the same data, and they have indeed the same, with a singleton class. I know it’s not the...

View Article

Qt 5.3.0: process crash complaining about free() in QQmlImageProviderBase...

Ok SGaist: I followed your suggestion: the issue has been filed to the bug report system as QTBUG-39621 [bugreports.qt-project.org] I am going to update this discussion thread as soon as I have some...

View Article

Mysterious height handling and Point size

thanks, but this will not solve the problem: we lose the dynamic height if somewhere changes the parent geometry the assert message is also shown because the binding of parent.height is in the timeline...

View Article

QML: Receive signals from C++ object in different thread

its gonna be a lot of code to post. but, the way it works now is: the qml window’s (window2,qml) parent is declared in main.qml (window1.qml). I then have a mainThread.cpp that connects to main.qml,...

View Article


Grid View Qml Item hide with cell

I have a problem with GridView in QML, I created a calendar for the month, each cell of the GridView is for a day, and within put an item for each event having that day, I try to move this item within...

View Article

How to crop an image inside an item (rectangle)?

Woooow! Perfect! That’s exactly what I need! Thank you so much

View Article


How to detect Menu closed or dismissal?

Hi, I need to show certain visual changes on the UI only during the time when the Menu object is opened and user is about to select something. But the issue occurs when the user just dismisses the Menu...

View Article

Drawing irregular shapes

Hi, You could try to do it in QML using a Canvas and http://qt-project.org/doc/qt-5/qml-qtquick-context2d.html#arc-method. I did it in C++ once and it worked out well, but the Canvas should work just...

View Article


Difference between QQmlApplicationEngine and QtQuick2ApplicationViewer

I started developing my app with Qt 5.1. So I created a new QtQuick Application with the QtCreator wizard. The Application is started with the following code in main.cpp: #include...

View Article

I have a crash with ListView

Hi everyone! I’m developing a simple app with a one ListView. This ListView must shown a long content from server. The datas was got and shown correct. But when user scrolling down to the end of data...

View Article

Difference between QQmlApplicationEngine and QtQuick2ApplicationViewer

You can run QML profiler to test the speed.

View Article
Browsing all 4972 articles
Browse latest View live




Latest Images