Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • BLOB [solved]

    2
    0 Votes
    2 Posts
    1k Views
    S
    Do you really save you image blob into the database or simply the image path ? @QML Image: Cannot open: file:///Users/jon/Desktop/QML_test/����@
  • 0 Votes
    8 Posts
    3k Views
    S
    The application works now. I was opening the application through a shared folder on the network. After i have copied it to the computer it works good with the MSVC version without opengl. I have also copied the MinGW opengl version but it has the same problem (blank screen). So the problem was really due to opengl. Thank you.
  • How to create MDI application using QtQuick 2.1

    3
    0 Votes
    3 Posts
    4k Views
    Z
    Thx Jens, I believe too that this and some other issues will be fixed later;
  • Multipage GridView with dragable icons

    3
    0 Votes
    3 Posts
    1k Views
    G
    This Wiki entry might also help you out: http://qt-project.org/wiki/Drag_and_Drop_within_a_GridView
  • How to create dynamic ListModels from C++

    2
    0 Votes
    2 Posts
    771 Views
    G
    Maybe this could be of help: http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML
  • QWindow inside a QQuickItem (QtDesktopComponents)

    8
    0 Votes
    8 Posts
    6k Views
    A
    Hi, There is nothing special about the ModelView class. It could be a generic QGLView. main.cpp @ #include "quickModelView.h" //the wrapper #include "modelView.h" //the QGLView based class //Register the wrapper for QML qmlRegisterType<quickModelView>("gca", 1, 0, "QuickModelView"); //Instantiate a QGLView based object ModelView *mv = new ModelView; QQuickView *view = new QQuickView; view->setSource(QUrl::fromLocalFile("myqmlfile.qml")); view->rootContext()->setContextProperty("mv", mv); //pass mv to qml context view->show(); @ myqmlfile.qml @ import gca 1.0 QuickModelView{ width: 800; height: 600; modelView: mv; //This calls QuickModelView::setModelView(mv) } @
  • Save QQuickView screen to video

    3
    0 Votes
    3 Posts
    1k Views
    J
    Depending on the use case, it might be easier to use the operating system tools to do this. (i.e I use quick time on mac or the windows video tool to do screen recordings) Using vlc, might also be a solution if they provide API for this: http://pctonic.net/use-vlc-as-a-screen-recording-tool
  • [Solved]Could QtQuick control design a toolButton with embedded menu?

    4
    0 Votes
    4 Posts
    1k Views
    S
    Thanks for your help, I would try to implement the arrow by Image or Canvas :)
  • [Solved]Access the pixels of the Image(qml2)

    5
    0 Votes
    5 Posts
    1k Views
    S
    I tried it, not really the class I need, but it is good to know there are a tool like that exist. It is not suit for my need because the image have to repaint when specific properties change(interval, minimum slope etc), so I design a custom image by QQuickPaintedItem. The next experiment is try to use the gpu and cpu together to render the image and show them on the qml scene, lot of things have to learn.However, process the image is fun, it is even more interesting to play it with Qt.
  • [Solved]Question about the example "Scene Graph - OpenGL Under QML"

    4
    0 Votes
    4 Posts
    2k Views
    slettaS
    Have a look in the 5.1 qtdeclarative source tree: http://doc-snapshot.qt-project.org/qt5-stable/qtquick/scenegraph-textureinsgnode.html http://doc-snapshot.qt-project.org/qt5-stable/qtquick/scenegraph-customgeometry.html http://doc-snapshot.qt-project.org/qt5-stable/qtquick/scenegraph-simplematerial.html The "textureinsgnode" example was added for 5.1 but the others have been there since 5.0
  • Qt desktop components with user Style

    5
    0 Votes
    5 Posts
    2k Views
    J
    Yes it is certainly possible to style a scroll area using Qt 5.1 RC. This was done using custom styling: http://blog.qt.digia.com/wp-content/uploads/2013/06/Screen-Shot-2013-06-21-at-2.51.45-PM3.png As steno suggests, just set a custom ScrollViewStyle (or TableViewStyle) on the control and modify it to your liking. Not everything has a custom style in the first release however, but we are planning on adding more public style classes soon.
  • [SOLVED] Desktop Components MenuBar

    2
    0 Votes
    2 Posts
    2k Views
    J
    No the menubar does not currently support custom styling. While we are considering adding this in a future release, keep in mind that on platforms like Ubuntu or Mac it will anyway use the native system menu bar which is outside the control of your application.
  • Sqlite

    6
    0 Votes
    6 Posts
    2k Views
    D
    I'm sure it has the table. Where is the database files located? I can't seem to find them on my system, I even checked the md5 of the db name
  • How to expose a list of lists or a MAP as a list model into QML

    1
    0 Votes
    1 Posts
    529 Views
    No one has replied
  • Calling static function from QML? Doable?

    18
    0 Votes
    18 Posts
    26k Views
    S
    [quote author="mbrasser" date="1317857789"]Hi, For QtQuick 2.0 we are introducing an additional "module API", which should allow you to implement the singleton pattern more easily. [/quote] So, is the new module api the function qmlRegisterSingletonType?
  • [Solved]qml can not recognize the c++ parameters with &

    11
    0 Votes
    11 Posts
    7k Views
    S
    After some experiment, the last post of my solution is useless, the data of qml and c++ are always copy
  • Suppress QML output to console

    1
    0 Votes
    1 Posts
    780 Views
    No one has replied
  • How to access (c++) model data from qml

    2
    0 Votes
    2 Posts
    3k Views
    P
    How is defined "get" method in your ListModel? You have mentioned that you are using public slot, but slot should return void. If you need to expose non-void method to QML you need to define it like this: @ ... public: Q_INVOKABLE Parent* get(const int &index); ... @
  • Dynamically allocating images

    2
    0 Votes
    2 Posts
    819 Views
    S
    Try repeater, ListView or other view according to your need //pseudo codes @ ListModel{ id: photoModel ListElement{name: "movie_list1"} //....and so on } ColumnLayout{ Repeater { model: photoModel Image { width: 100; height: 40 x: -342; y: 502 source: name } } } @ or a more simple one @ property var names : {"movie1", "movie2"} ColumnLayout{ Repeater { model: names Image { width: 100; height: 40 x: -342; y: 502 source: modelData } } } @
  • 3 pages circular ListView

    1
    0 Votes
    1 Posts
    776 Views
    No one has replied