Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • QT4.8.4 : QtQuick 1.1 : images ressource management

    4
    0 Votes
    4 Posts
    1k Views
    sierdzioS
    Nice, so now we know for sure :-)
  • 0 Votes
    7 Posts
    2k Views
    A
    I have gstreamer-0.10 and its plugins on my machine. When I run the gstreamer from shell I can see the rtsp streaming.
  • How to access C++ type from JavaScript code?

    3
    0 Votes
    3 Posts
    1k Views
    L
    First of all, below shows how to instantiate your cpp objects in qml @ import my.app.MyQObject 1.0 item { MyQObject { id:obj } } @ I thought Object.create will work, but no. Second, in QML apparently your MyQObject, as well as other QML elements all have type of object. it doesn't even have prototype.. so it behaves sortof like a builtin object If you need reflection, check objectName property. Any exported QObject will have that property by default. This seems the case since Qt 5.0 So instead of typeof(obj), use obj["objectName"]
  • QML never complains about non-existent property in Binding

    3
    0 Votes
    3 Posts
    1k Views
    F
    Thanks lack! Your example about JavaScript behavior is reasonable. I use Binding to update C++ properties automatically. In my example, puppy is actually a C++ object while input is a Qt Quick TextField. Whenever input.text changes, QML will call puppy.name's WRITE method, e.g. setName(input.text). But if name was mispelled, QML will have nothing to call and in my opinion should output a warning, just like when Qt complains about a non-existent signal/slot.
  • 0 Votes
    2 Posts
    1k Views
    V
    jhonjhon, você tem de perguntar em inglês.. As perguntas em português podem ser feitas aqui: http://qt-project.org/groups/qt_brazil
  • 0 Votes
    9 Posts
    2k Views
    D
    See this post: http://qt-project.org/forums/viewthread/42799/ Maybe there is more, but I stopped using 5.3 frustrated ^^
  • Playing video and showing images with xmllistmodel and listview

    1
    0 Votes
    1 Posts
    588 Views
    No one has replied
  • QAtan2 result is always one

    4
    0 Votes
    4 Posts
    1k Views
    M
    No all code; only the part where you use qAtan2. Anyway i suggest to use qDebug to print Input/Output parameters of qAtan2
  • Implementation of TouchArea using TUIO API for QML application

    4
    0 Votes
    4 Posts
    2k Views
    S
    Conclusion: Hello, I am implementing a TUIO API interface for multiple touch screen able to touch several touch screen simultaneously. It is working! 0./ I add a modiffication into: qapplication_p.h @public: //Add a filter to completely ignore touch event if they do not match the pressure value //only when touchEventPressurFilter>0 !! static qreal touchEventPressurFilter;@ and also into gui\kern@el\qapplication.cpp so the methode translateRawTouchEvent can ignore touch event based on a pressure value @//Add a filter to completely ignore touch event if they do not match the pressure value //only when touchEventPressurFilter>0 !! qreal QApplicationPrivate::touchEventPressurFilter = -1;@ @void QApplicationPrivate::translateRawTouchEvent(QWidget *window, QTouchEvent::DeviceType deviceType, const QListQTouchEvent::TouchPoint &touchPoints) { QApplicationPrivate *d = self; typedef QPair<Qt::TouchPointStates, QListQTouchEvent::TouchPoint > StatesAndTouchPoints; QHash<QWidget *, StatesAndTouchPoints> widgetsNeedingEvents; //TestTuio if(touchEventPressurFilter>=0) for (int i = 0; i < touchPoints.count(); ++i) { QTouchEvent::TouchPoint touchPoint = touchPoints.at(i); if(touchPoint.pressure()!=touchEventPressurFilter) { //qDebug()<< "Ignore WM_TOUCH Events: filter on pressure value: "<<touchPoint.pressure()<< touchEventPressurFilter; return; } }@ 1./ I have several instance of a class : @class SdcnTUIOApplicationViewer : public QDeclarativeView, TUIO::TuioListener@ 2./ Only one instance is listening the TUIO UDP frames All instance are child of a static global background widget, setparent() is called during initialisation: The filter/pressure value is also set once during initialisation of one of the ApplicationViewer instance @ //GlobalWidget use for multitouch if(globalWidget==NULL) { //globalWidget Must fill the virtual desktop globalWidget = new SdcnBackgroundWidget( 0, Qt::Tool|Qt::FramelessWindowHint ); //Set geometry instead of maximized ! ((QWidget*)globalWidget)->setGeometry(0,0,mGlobalVirtualScreenWidth,mGlobalVirtualScreenHeight); globalWidget->m_initialSize.setWidth( mGlobalVirtualScreenWidth ); globalWidget->m_initialSize.setHeight( mGlobalVirtualScreenHeight ); ((QWidget*)globalWidget)->setVisible(true); //Set the background color of the globalwidget ((QWidget*)globalWidget)->setStyleSheet("* { background-color: rgb(50, 50, 50); }"); this->setParent(globalWidget); //Main application : QApplicationPrivate *qAppPriv = QApplicationPrivate::instance(); //Set pressure filter value to ignore system nativ touch events qAppPriv->touchEventPressurFilter=TUIO_PRESSURE_VALUE; } else this->setParent(globalWidget);@ 3./ The translateRawTouchEvent methode is then alled on the top most widget of the application (even detached popup) @ //Main application : QApplicationPrivate *qAppPriv = QApplicationPrivate::instance(); //Get the topest widget, even Detached popup windows: QWidget* lToplevelWidget= QApplication::topLevelAt(QPoint(posInScreen.x(), posInScreen.y())); qAppPriv->translateRawTouchEvent(lToplevelWidget,QTouchEvent::TouchScreen,touchPointsList);@
  • QML video element could not read from resource

    2
    0 Votes
    2 Posts
    2k Views
    A
    Don't you need to add port to the rtsp source ?
  • 0 Votes
    3 Posts
    809 Views
    L
    second, that database name doesn't look correct. the only db driver that needs file path is sqlite. third, no user name.
  • My TableView Doesn't work

    12
    0 Votes
    12 Posts
    4k Views
    L
    What have you tried and doesn't work? We need more information. 'Doesn't work' is not helpful. If you have read the article, right at the end he showed a generic class extending QSqlQueryModel that is usable from QML. I tested it against Qt 5.2, and yes it does work. Granted, with little work as QAbstractItemModel::setRoleNames was deprecated, you have to reimplement QAbstractItemModel::roleNames instead, but that is 1 minute work.
  • QML: superscript/subscript text

    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Hi, They don't but Qt is big and the developer teams have only so many members. However, you can help getting the bug fixed by voting for it and make it known that it's still an issue in the latest version.
  • How to add integers into array

    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Then you should first get yourself familiar with c++ and Qt before rushing the port. Start by a small simple function and don't forget to add tests to ensure your code is working properly. On a side note, it's Qt, QT stands for Apple QuickTime
  • Swipe Gesture with Qt Quick 2.0 and Qt 5.2

    6
    0 Votes
    6 Posts
    6k Views
    D
    Thanks for your reply, going to try it :)
  • QQuickWidget and TextInput or TextField not working in Qt 5.3.0 RC

    2
    0 Votes
    2 Posts
    946 Views
    A
    Nobody some hint? Can someone ackknowledge that TextInput in QQuickWidget QT5.3.0 RC is working?
  • [Solved] Code editor using QML

    8
    0 Votes
    8 Posts
    7k Views
    Q
    Thanks. That's all very interesting, appreciate the info.
  • Performance rendering performance in QML SequentialAnimation

    2
    0 Votes
    2 Posts
    1k Views
    S
    Hi, I looked into it but I could not really figure out how the animations are managed. Maybe anohter strategy would be to aim ata lower level in QT. Is there a way to set the maximum rendering frame rate? Which reduce the computation ressource?
  • 0 Votes
    10 Posts
    3k Views
    A
    Seems that the issues are fixed in qt 5.3 alpha/beta
  • Drag a copy of an item to Droparea

    7
    0 Votes
    7 Posts
    5k Views
    M
    Thank you I will take a look and try to figure it out. Thank you again.