Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.2k Posts
  • JavaScript Date => QDateTime problems for dates prior to 1981

    3
    0 Votes
    3 Posts
    3k Views
    N
    Done. For the record: https://bugreports.qt.nokia.com/browse/QTBUG-22582 Nils
  • Unable to use the existing database on symbian device?

    4
    0 Votes
    4 Posts
    3k Views
    M
    Maybe it iis problem with your path in main.cpp because on my nokia x6 when i don't change path it is work !!you must use default path and it work .When you have any question please contact me. and i help you Best regards Damian.
  • Use a c++ class as singleton inside qml files

    15
    0 Votes
    15 Posts
    10k Views
    G
    I know it's a old question but, did you tried to connect to the exported property using a Connections item ? @ Connections { target: objectQml onSignal: //dosomething } @
  • Alias make crash qmlviewer

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Embedding QDialog into QML

    4
    0 Votes
    4 Posts
    4k Views
    Z
    [quote author="saho" date="1320390313"]I'm sorry, QGraphicsProxyWidget should be avoided. [/quote] I agree that it should be used sparingly but if it's just for one widget then it should be fine. [quote author="saho" date="1320390313"] I've done it the other way around now. I created my toolbar in QML and the rest in C++. [/quote] OK that is also perfectly reasonable. I'll have a look at your other questions when I have a little more time than right now.
  • Continuous ListView update causing UI to stuck.

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks for the reply it was really helpful. I am trying to use WorkerScript for loading list model elements. But how can we stop WorkerScript once we have done with the update, is there any way of destroying or stopping the WorkerScript ?
  • ListView as element of a ListView

    7
    0 Votes
    7 Posts
    3k Views
    L
    Now I'm using the following QML file: @ import QtQuick 1.0 Rectangle { property int index: lista_principale.currentIndex width: 400; height: 600 ListView { id: lista_principale anchors.fill: parent model: mappaModel.numeroSatelliti orientation: ListView.Horizontal delegate: pagine_delegate snapMode: ListView.SnapToItem } Component { id: pagine_delegate ListView { width: ListView.view.width height: ListView.view.height model: mappaModel.modelAttuale delegate: riepilogo_delegate } } Component { id: riepilogo_delegate Rectangle { color: index % 2 ? "lightsteelblue" : "steelblue" id: item width: parent.width -5 height: 100 Column { anchors.fill: parent Text { text: descrizione_estesa anchors.horizontalCenter: parent.horizontalCenter } Text { id: valore_dato text: valore anchors.horizontalCenter: parent.horizontalCenter } Text { id: data_ora text: "(" + data_ora_satellite + ")" anchors.horizontalCenter: parent.horizontalCenter } } } } } @ and my MappaModel object is: @ #include "mappamodel.h" #include <QDebug> MappaModel::MappaModel(QObject *parent) : QObject(parent) { m_indexAttuale = 0; } void MappaModel::caricaMappa(QMap<int, RoleItemModel *> mappa_model) { m_mappaModel = mappa_model; } //RoleItemModel* MappaModel::recuperaModel(int chiave) RoleItemModel* MappaModel::modelAttuale() { //qDebug() << m_chiaveAttuale; //qDebug() << m_mappaModel.value(m_chiaveAttuale); RoleItemModel *model_attuale; model_attuale = m_mappaModel.value(m_mappaModel.keys().at(m_indexAttuale)); m_indexAttuale++ ; return model_attuale; } void MappaModel::impostaModel(RoleItemModel *) { } void MappaModel::impostaChiaveAttuale(int chiave) { m_chiaveAttuale = chiave; } int MappaModel::chiaveAttuale() { return m_chiaveAttuale; } QList<RoleItemModel *> MappaModel::listaModel() { return m_mappaModel.values(); } int MappaModel::numeroSatelliti() { return m_mappaModel.size(); } @ It works while I flick right to the end of the external lisview but this function isn't correct: @ RoleItemModel* MappaModel::modelAttuale() { //qDebug() << m_chiaveAttuale; //qDebug() << m_mappaModel.value(m_chiaveAttuale); RoleItemModel *model_attuale; model_attuale = m_mappaModel.value(m_mappaModel.keys().at(m_indexAttuale)); m_indexAttuale++ ; return model_attuale; } @ because I need to know the flick direction and increment or decrement m_indexAttuale but I don't know how to do this...
  • How to show the mainwindow.ui

    7
    0 Votes
    7 Posts
    8k Views
    M
    I changed it to the GUI widget but i don't know how to manage my objects. for example; I want to change the text box text when the button is pressed. Bot of them are created and there s function for the pushButton when pressed
  • [Solved] Exporting QWidgets to QML?

    9
    0 Votes
    9 Posts
    5k Views
    A
    [quote author="saho" date="1320329834"]But it would still be nice if I could reuse all my QWidget dialogs and if I would not have to rebuild them.[/quote] Don't count on that. However, if you now have a good separation between your program logic and your UI, it should be easy to re-use at least the logic part of your application.
  • Multiple layers and opacity

    2
    0 Votes
    2 Posts
    2k Views
    Z
    It works fine here but you have a typo in the last item's anchors line. It should be: @ anchors.centerIn: smallerRect @ Can you post a screenshot of what you see please? All I did was ot fix the above typo and run that file in qmlviewer and then adjust the opacity of smallestRect to see the differences.
  • Symbian Qt-Components ToolButton disabled state

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [solved] map zoomout and zoomin problem

    2
    0 Votes
    2 Posts
    2k Views
    Y
    i found the problem is th mapimage's offset.x and offset.y i have not to set for the image.thank you
  • [SOLVED]webview and listview in a Flickable.

    4
    0 Votes
    4 Posts
    2k Views
    N
    I found it, use property binding: Flikcable..ContentHeight : WebView.PreferredHeight + ListView.Height and this problem's resolved Thanks everyone
  • Change the language of "QML Map Element"

    4
    0 Votes
    4 Posts
    2k Views
    Y
    i have set it ,but it always english. @ #include <QtGui/QApplication> #include "mainwindow.h" #include <QLocale> #include <QSplashScreen> int main(int argc, char *argv[]) { QApplication a(argc, argv); QSplashScreen *splash = new QSplashScreen; splash->setPixmap(QPixmap(":/splash.png")); splash->show(); splash->showMessage("Loaded modules"); // QLocale lo(QLocale::China, QLocale::Chinese); QLocale::setDefault(QLocale(QLocale::Chinese, QLocale::China)); // QLocale::setDefault(&lo); qDebug() << "china"; qDebug() << QLocale::system().language(); MainWindow w; #if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) // w.setControlsVisible(false); w.showMaximized(); #else w.show(); qDebug() << "splash"; splash->showMessage("Established connections"); splash->finish(&w); #endif return a.exec(); } @ [EDIT: code formatting, please wrap in @-tags, Volker]
  • Webview not scaling on launch when using Qt Components (ToolBarLayout)

    5
    0 Votes
    5 Posts
    3k Views
    U
    Just to confirm, when hiding the toolbar the webview scales correctly. Still hoping someone has a workaround... anyone?
  • VU Bargraph in QML - High consumption of CPU

    5
    0 Votes
    5 Posts
    4k Views
    S
    Just out of curiosity, I tried this way: @ Column { spacing: intervalLeds Repeater { model: numLeds Image { id: vuLed objectName: "vuLed" width: widthLed height: heightLed source: ((valueRMS <= index) || (valuePeak == index)) ? "./images/green_led.png" : "./images/gray_led.png" } } } @ but the performance was worse. Someone has a source code example of an application with the whole GUI with QML and opengl?
  • How to terminate or hide a qml using loader

    9
    0 Votes
    9 Posts
    5k Views
    N
    you can also use @myLoader.source = ""@
  • Animating QStackedWidget

    3
    0 Votes
    3 Posts
    7k Views
    E
    Thank you very much for your reply! I'll try that! My problem is that I've already got a lot of panels with QWidgets. They provide a lot of useful functionality which I would like to continue to use. Since there are not many "QML widgets" available I don't know how easy it is to change to QML. For example I'd like to use the validators, setInputMask, setPlaceholderText, etc. for the text input fields.
  • How to include one widget in another?

    6
    0 Votes
    6 Posts
    4k Views
    F
    Just as an extra remark, I think I would create a separate widget for the central area. It could depend on the type of application though.
  • How to set dynamically created component to the Loader.

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied