Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • [Solved] Module "XXX" is not installed

    4
    0 Votes
    4 Posts
    6k Views
    sierdzioS
    Pleasure. If that resolves your problem, please prepend "[Solved]" to this topic's title (you need to edit your initial post).
  • Q_ENUMS as property variant index

    3
    0 Votes
    3 Posts
    3k Views
    O
    Thanks for reply! I know, that indexes is a strings or digits. But enums it is a digits too! If i write @console.log(TestClass.Low)@ i watch "1" If i write @console.log(1)@ i watch "1" Why i do not write @ property variant dict:{ TestClass.Low: "Low string", TestClass.Mid: "Mid string", TestClass.High: "High string", }@ but i may write @ property variant dict:{ 0: "Low string", 1: "Mid string", 2: "High string", } @ ?
  • Painting inside a transformed Canvas

    1
    0 Votes
    1 Posts
    934 Views
    No one has replied
  • Custom fonts only works the first time

    2
    0 Votes
    2 Posts
    2k Views
    A
    Solved SymbianFontLoader.h @ #ifndef SYMBIANFONTLOADER_H #define SYMBIANFONTLOADER_H #include <QString> #include <coemain.h> #include <w32std.h> #include <badesca.h> #include <gulutil.h> class SymbianFontLoader { public: SymbianFontLoader(bool retainFonts = false) { m_retainFonts = retainFonts; m_screenDevice = CCoeEnv::Static()->ScreenDevice(); } ~SymbianFontLoader() { if (!m_retainFonts) foreach(int id, m_fontIds) m_screenDevice->RemoveFile&#40;id&#41;; } QStringList loadedFonts() { QStringList fonts; TRAPD(err, listFontsL(fonts)); qt_symbian_throwIfError(err); return fonts; } void load(QString path) { qDebug() <<";"<<path<<";"; TPtrC fontFile&#40;path.utf16(&#41;, path.length()); // TPtrC fontFile&#40;qt_QString2TPtrC(path&#41;); //TPtrC fontFile&#40;path, path.length(&#41;); qDebug()<<"path" << path.utf16() << "length" <<path.length(); int fontId; int err = m_screenDevice->AddFile&#40;fontFile, fontId&#41;; qDebug() <<err; qt_symbian_throwIfError(err); qDebug() << "after error"; if (!m_retainFonts) m_fontIds << fontId; } private: void listFontsL(QStringList& fonts) { CDesCArrayFlat *fontNames = new (ELeave) CDesCArrayFlat(5); CleanupStack::PushL(fontNames); FontUtils::GetAvailableFontsL(*m_screenDevice, *fontNames, EGulAllFonts); int fontCount = fontNames->Length(); for (int i=0; i < fontCount; i++) { TPtrC fontName = fontNames->MdcaPoint(i); QString font = QString::fromUtf16(fontName.Ptr(), fontName.Length()); fonts << font; } CleanupStack::PopAndDestroy(); } private: CWsScreenDevice* m_screenDevice; bool m_retainFonts; QList<int> m_fontIds; }; #endif // SYMBIANFONTLOADER_H @ main.cpp @ #ifdef Q_OS_SYMBIAN SymbianFontLoader fontLoader(true); fontLoader.load("C:\\data\\2006126c\\gurbaniwebthick.ttf"); fontLoader.load("C:\\data\\2006126c\\Gurhindi.ttf"); #endif @ Make sure you restart the phone. .pro file LIBS += -lcone -lws32 -lbafl -legul font_files.pkg_postrules += ""C:\QTproj\QTDeploy\gurbaniwebthick.ttf" - "C:\data\2006126c\gurbaniwebthick.ttf"" font_files.pkg_postrules += ""C:\QTproj\QTDeploy\Gurhindi.ttf" - "C:\data\2006126c\Gurhindi.ttf"" DEPLOYMENT += font_files my_deployment
  • [SOLVED] QML using QGLWidget as viewport not getting TouchEvents

    3
    0 Votes
    3 Posts
    3k Views
    A
    Modifying code in qgesturemanager.cpp function deliverEvents allows the gesture event to be delivered. The new code is invoked if existing methods produce a NULL target widget. The search only operates on gestures that have a hot spot. The search looks at all widgets for the best target widget that contains the hot spot. After that modification a target widget is found in deliverEvents and the gesture events that previously were not being delivered are processed. Not ideal to search all widgets, but its better than leaving the target widget null and eating a perfectly good gesture event.
  • What is QSpotify 1.0?

    2
    0 Votes
    2 Posts
    1k Views
    P
    you can get it from here. git://gitorious.org/qtify/qtify.git its a playground project by qt devs to show the power of qml
  • QML Keyboard for touch screen

    37
    0 Votes
    37 Posts
    50k Views
    D
    i know its pretty late, but i just stumbled upon colibri and i had (as rodrigob) quite a hard time to figure how to use clkeyboard together with a lineedit. But it is possible by letting the lineedit read the keyboard internal text. So basically the lineedit is just used to show a text which belongs to the keyboard itself! @CLLineEdit{ id: textInput text: keyboard.text } Rectangle{ height: 100 width: 200 color: "black" CLKeyboard{ id: keyboard anchors.fill: parent } } @
  • How add symbol for closing (deleting) "cross in circle" outside icon?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    3 Posts
    3k Views
    _
    no, i mean else things. but thank you for your answer! i mean i want create dragdown notification panel. as it was made in ios and adroid- so it place for a clock, unanswered calls and news. i want make absolutelly as ios drag-down information panel by qml. it functional named Notification center. [quote author="shav" date="1365665589"]Hi, _dmp If I understand you correctly you want to fire some action when user is scrolling content to up or down, right? If this true, you may use signals for this. Qt is based on slot-signal technology. It's looks like iOS Notification centre. Please read more about signals from this "link":http://qt-project.org/forums/viewthread/1730 or "here":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html. skiped -[/quote]
  • Qml / Javascript XMLHttpRequest issues in Qt 5 beta 2

    3
    0 Votes
    3 Posts
    3k Views
    P
    Hi, At least here it is stated that the callback should not be denifed before calling "open" https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#Properties
  • 0 Votes
    3 Posts
    1k Views
    W
    It is duplicated with https://bugreports.qt-project.org/browse/QTBUG-29686
  • Is it actually possible to use a C++ QList as a model for a QML PathView?

    3
    0 Votes
    3 Posts
    4k Views
    T
    I got some help from a couple of experts on IRC (#qt-qml) last night and my example is working now. I've answered the StackOverflow question that I linked to above if anyone is interested.
  • PathView Using QAbstractListModel Determines Count Late

    3
    0 Votes
    3 Posts
    3k Views
    T
    Not sure if you're still interested, but I had a conversation with a couple of former Trolltech employees on IRC last night. They helped me with this and I've posted the answer to my StackOverflow question.
  • QML Loader and loaded item context. Is it a feature or a bug?

    6
    0 Votes
    6 Posts
    6k Views
    M
    This is exactly what http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-loader.html#using-a-loader-within-a-view-delegate tells about :) Moving the sub-delegate inside the parent delegate, or to a separate file, should make it work. With the Desktop Components example that was mentioned, it should be the same.
  • Qt3D Qt3DQuick not in Qt5 source

    8
    0 Votes
    8 Posts
    4k Views
    D
    [quote author="amund_l" date="1364392619"]Included in QtCreator 2.7 is the "OpenGL under QML":http://qt-project.org/doc/qt-5.0/qtquick/quick-scenegraph-openglunderqml.html. This might be what you are looking for. It let you explore the new feature where QML is redered on top of your OpenGL ES context, so you can merge your OpenGL and QtQuick UI. Pretty cool.[/quote] Well...apart from perspective, rotating in more then one direction, an ambitious model loader that calculates matrices like Jackson Pollock before it hands over to QGLAbstract scene which is even more liberal... Yeah....Polys are for chumps :) https://www.shadertoy.com/
  • 0 Votes
    2 Posts
    776 Views
    J
    I got it, guys. When we set @width: rect.width * 0.5;@ is happening a binding. Not an assignment. What I should do to assign the value: @Component.onCompleted: { width = rect.width * 0.5; }@
  • QtQuickView doesn't work inside of a QtCreator plugin

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QML2 Books / Tutorials?

    10
    0 Votes
    10 Posts
    4k Views
    U
    In the future perhaps, hopefully, for 5.0 and 5.0.1 doc building failed for me (and not just me) and only HTML docs were generated, and worse than the online version - the missing snippets are still missing, plus there is entire articles that are missing too.
  • How to show a widget by WId in Qt Quick 2 (Qt 5.0.1)

    8
    0 Votes
    8 Posts
    4k Views
    P
    Hi All, everything works fine in 5.1! Thanks everybody. If somebody need help please let me know...
  • Accessing blind data in a base object via external view objects

    1
    0 Votes
    1 Posts
    889 Views
    No one has replied