Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • 0 Votes
    6 Posts
    3k Views
    H
    I'm currently experiencing a similar problem and looking for some guidance. When I run the .exe I also get a blank screen. I have copied all the relevant dlls into the release dir, created a qt.conf file with the above info in. When I run Process Monitor I get this: release\imports\QtQuick.1.1 NAME NOT FOUND What do I need to copy into the release directory to solve this? Or is there something else that i'm missing. I'm using the QtDesktop components. If i remove these from the project the exe runs fine, its when the "import QtDesktop 0.1" is added, the window is blank when the exe is run. Process explorer isn't showing any errors with finding QtDesktop components though: release\imports\QtDesktop.0.1 SUCCESS I'm only seeing this issue when i'm building release. Debug works fine.
  • Singleton Item

    6
    0 Votes
    6 Posts
    2k Views
    L
    What you can do is separate all the visual aspects of the item from the data. Then you can have several instances of the visual item all sharing the same data. If it's the data that is expensive to to create, this should be a suitable solution. If it's the visual item that is expensive to create, then I'm really wondering what that visual item does and how it is created...
  • 0 Votes
    5 Posts
    3k Views
    X
    I just created a Meego app using the Qt Simulator and there it doesn't work, too. Maybe it doesn't work in Qt 4.8?
  • Not getting Key and mouse events.

    3
    0 Votes
    3 Posts
    3k Views
    A
    Did you use sendEvent with keyEvent ?
  • Virtual keyboard is covering my TextField when typing text

    28
    0 Votes
    28 Posts
    22k Views
    A
    Did you use QCoreApplication::sendEvent() ?
  • How can i control the interval of qml animation ?

    8
    0 Votes
    8 Posts
    6k Views
    A
    No - I have not
  • Did anybody used virtual keyboard with TextInput ?

    5
    0 Votes
    5 Posts
    2k Views
    A
    I created a virtual keyboard (Qt C++) which use QCoreApplication::sendEvent(). When i send QKeyEvent to some QML item the return value of QCoreApplication::sendEvent() is false and the QML item does not receive that event.
  • How can I send keyevent into a qml textedit?

    5
    0 Votes
    5 Posts
    5k Views
    A
    I tried to send key event to TextInput with coreapplication.sendevent but it does not work. Anyone has a code sample ?
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Loading Image in DocumentGalleryModel takes extremely long time

    5
    0 Votes
    5 Posts
    2k Views
    Q
    First of all, set asynchronous property of Image in delegate to true. Then use sourceSize property to set optimal size of image. Result - Image of this size will be loaded in memory asynchronously! So UI will not be blocked!
  • Unable to open webpage sections using WebView

    4
    0 Votes
    4 Posts
    3k Views
    C
    I had the same problem. My "Fix" is this function: @ function checkForAnchor(scrollObject,webOject,url){ var a = new String(url); if (a.split("#").length > 1){ var textPosition = webOject.evaluateJavaScript("document.getElementById('"+a.split("#")[1]+"').getClientRects()"); if (textPosition == 'undefined'){ evaluateJavaScript('function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue){ var arrElements = (strTagName == "" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); var oAttributeValue = (typeof strAttributeValue != "undefined")? new RegExp("(^|\s)" + strAttributeValue + "(\s|$)", "i") : null; var oCurrent; var oAttribute; for(var i=0; i<arrElements.length; i++){ oCurrent = arrElements[i]; oAttribute = oCurrent.getAttribute && oCurrent.getAttribute(strAttributeName); if(typeof oAttribute == "string" && oAttribute.length > 0){ if(typeof strAttributeValue == "undefined" || (oAttributeValue && oAttributeValue.test(oAttribute))){ arrReturnElements.push(oCurrent); } } } return arrReturnElements; }') textPosition = webOject.evaluateJavaScript('getElementsByAttribute(document,"", "title", "'+a.split("#")[1]+'")[0].getClientRects()') } if (textPosition != undefined){ scrollObject.contentY = textPosition[0]["top"]; } } } @ After this, on webView call: @ onLoadFinished: { checkForAnchor(flickable,pageViewer,url); } @ I know is a old post, but maybe will help someone in the future. Happy Qt-ing
  • Children vs. resources

    3
    0 Votes
    3 Posts
    2k Views
    W
    Ah thanks. I understood it as "all items inherit from Item" that is, I seemingly overlooked the word "visual".
  • Portable QML app using Qt Component

    3
    0 Votes
    3 Posts
    2k Views
    L
    Thanks, I'm trying that...
  • How to get information about a object which is drag?

    2
    0 Votes
    2 Posts
    1k Views
    L
    Any idea about this?
  • Qt::QueuedConnection from QML

    5
    0 Votes
    5 Posts
    4k Views
    C
    Or make box2dCppEngine.deleteObject() add the object to a list and trigger a 0-timer to delete the objects in the list.
  • N9 virtual keyboard feedback effect

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Is it possible to use qDeclarativeView in QtQuick 2.0

    8
    0 Votes
    8 Posts
    4k Views
    C
    Ah, I see. QtQuick2 requires opengl, and doesn't directly use a software rasteriser. I imagine that VMware Player provides opengl support via a software pipeline with greatly reduced performance, which could result in the performance problems you are seeing. I'm not 100% certain, of course.
  • QSqlTableModel in QML

    3
    0 Votes
    3 Posts
    6k Views
    R
    I have the same issue, not happy with the design of Model/View with QML. It seems that only very basic use cases are possible without tons of workarounds. Model/View was a pain using plain Qt, it is even worse now with QML. Thanks for your input, I will try this.
  • App is always launched in landscape orientation in N9

    5
    0 Votes
    5 Posts
    3k Views
    L
    I have the same problem. I simply created e new mobile widget Qt application with only a QLabel in the center. When I deploy in my N9 I only see the MainWindow in Landscape. Is this a bug?
  • Synchronize ListViews

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