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

Cannot display qsqlquerymodel to a qml list view

Consider problem SOLVED i solved it with implementing class SqlQueryModel: public QSqlQueryModel {     Q_OBJECT     QHash<int,QByteArray> *hash;...

View Article


How to use classes in Qt / QML

How can i use “kakkanna” in qml? i cannot seem to get it working even after reading the docs since they seem to look a lot different. I see nowhere anything like this what i’m trying to do… when i...

View Article


How to use classes in Qt / QML

Hi, You need add to your kakkanna.h line with this code: QML_DECLARE_TYPE(Kakkanna) Than add the line to you main.cpp file before load the main QML file next code:...

View Article

Folder Creation in SD Card using Qml

Hi Can anyone help me out to create folder in sdcard if it doesnt exist using Qml.. “file:///storage/sdcard0/CapImages” In above line i need to check for CapImages folder and if it doesnt exist i have...

View Article

Folder Creation in SD Card using Qml

AFAIK, no you can’t

View Article


Filling a listView model in seperate Thread .

Hi guys, I am facing a problem using QML and C++. In fact I’m creating a ListView model when starting the main program and a generator of a listView to generate that list from QML:  ...

View Article

[Solved] Using a timer in qml, the signal of downloading a file is emitted...

Hi everyone, I have created a FileDownloader class, as those that exist on the web already: Here are some lines from the *.cpp file: void FileDownloader::downloadFile( QUrl url ) {  ...

View Article

[Solved] Background for Text in QML

Ok, how about using the TextEdit controller instead of Text: http://qt-project.org/doc/qt-5/qml-qtquick-textedit.html#selectionColor-prop Then you could set selectionColor and set selectionStart = 0...

View Article


Segfault trying to connect QML signal to CPP slot

Qt 5.2.1, visual studio 2010. In my class constructor I have the following code, and at runtime m_uiRoot is 0 at the Q_CHECK_PTR call. m_view = new QQuickView; Q_CHECK_PTR(m_view);  ...

View Article


Default Style override to avoid setting style on each widget

Hi, I manage to get custom style working, I made all of them as Component into a single file to have a single point for the style. I can now put the style into a loader and bind the current style into...

View Article

Segfault trying to connect QML signal to CPP slot

Quick check – Are you able to see QML window ? Are you able to launch the ControlPanel.qml separately ? What is the top-level item of ControlPanel.qml ? Is it ApplicationWindow or Rectangle ?

View Article

[Solved] Using a timer in qml, the signal of downloading a file is emitted...

What you are doing the right approach. Continue with that.

View Article

Filling a listView model in seperate Thread .

Yes. You are right. We need to do something like yours idea to solve the freeze issue. Here the issue is that you may be modifying/accessing something from worker thread which is not allowed. Is the...

View Article


How ignore MouseArea?

What do you want to ignore? As I understood you should use z-order of your mouse areas. Like that MouseArea {     id: area1     z: 1 } MouseArea {  ...

View Article

Filling a listView model in seperate Thread .

Hi, But sometimes when the list is tooo long the annimated QML background freezes until the listView model is filled, … Another idea would be to use fetchMore and canFetchMore functions of...

View Article


Smooth scaled images using rich-text in "Text" element.

Hi Did you try smooth or antialiasing property ?

View Article

Default application created by Qt Creator does not display its menubar

Following these steps using: Qt Creator 3.1.2 Qt 5.3.1 Clan 5.0, Apple 64 bit File->New File or Project Projects.Applications Qt Quick Application enter name Qt Quick Controls 1.1 Desktop Qt 5.2...

View Article


How to make a QQuickView appear in the main window?

Trying to replace a custom widget with a QQuickView, originally to make the custom widget appear in the main window I would use setCentralWidget(), which takes a QWidget *. Is there a way to convert a...

View Article

Signal that a component is completed AND visible?

Hello, is there a way to figure out that a qml component is loaded and visible? Component.onCompleted() seems to be signaled before the component is visible on the screen. Thanks!

View Article

How to make a QQuickView appear in the main window?

Hi, Isn’t QQuickWidget what you are looking for ?

View Article
Browsing all 4972 articles
Browse latest View live