跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Unexpected behavior of operator= in Qml/JavaScript

    3
    0 評價
    3 貼文
    1k 瀏覽
    C
    Yes, it would work to specify the values one at a time, the problem is that I would like to copy all of the values from myVar2 to myVar1, which means I need to write @myVar1.name = myVar2.name; myVar1.target = myVar2.target; myVar1.size = myVar2.size; etc. etc. etc. @ which is not only annoying, but is error-prone and violates several object-oriented design principles. And yes, Qml and JavaCcript are interpreted and C++ is compiled, the problem is that the interpreter doesn't give me warnings or errors ever - including when the program is running and the Qml is interpreted and executed. I realize that JavaScript doesn't really support copying of objects by value, I'm working around this limitation in the language, my concern I guess is that by JavaScript rules, if I say @myVar1 = myVar2; @ it should make myVar1 refer to the same object as myVar2 but that isn't happening, and no errors or warnings are being generated.
  • The way to go with complex animations

    6
    0 評價
    6 貼文
    2k 瀏覽
    D
    Hmm, the butterflies should be a "animated sprite":http://qt-project.org/doc/qt-5/qtquick-effects-sprites.html for the butterfly animation itself. For moving the butterflies i would use the animation elements from qt. Hope this help. Another option is to use scnenegraph and create your own custom butterfly element.
  • Importing files with evaluate() function

    7
    0 評價
    7 貼文
    3k 瀏覽
    W
    Thanks for the pointers. The app I'm working on is heavily GPU oriented. I tried to use QML, but it doesn't play well with OpenGL 3 or 4 right now. Supposedly this will change in Qt 5.4? I'm trying to use JavaScript as a string manipulation engine. I have some JS libs from another project that I use to run templates through to generate GLSL. WebKit is out of the question for this project, so I'm trying to use the JSEngine as my text processor in concert with a QGLWidget.
  • Styling Qml desktop components

    6
    0 評價
    6 貼文
    2k 瀏覽
    JKSHJ
    Keep in mind that Qt Desktop Components was an experimental module, and it was not properly polished and released until Qt 5.1. In Qt 4.8, it was missing many important features. Are you sure it's a good idea to use it in a large project? I can't think of a simple way to style QML components in Qt 4.8, sorry. The simplest ones are listed at https://qt-project.org/wiki/QmlStyling But here's another idea: Use Qt Widgets for the desktop-style components instead of QML. Embed QML components into your widgets using QDeclarativeView.
  • Is there a Qt Quick example like 40000 Chips?

    1
    0 評價
    1 貼文
    504 瀏覽
    尚無回覆
  • [SOLVED] "YouTube view example" doesn't display video on OSX – known issue? (YES)

    1
    0 評價
    1 貼文
    604 瀏覽
    尚無回覆
  • [SOLVED] getting today name in Qml

    3
    0 評價
    3 貼文
    888 瀏覽
    A
    thank you, i'm not so familiar with [removed])
  • Playing RTSP Video with QML over windows

    3
    0 評價
    3 貼文
    2k 瀏覽
    R
    Hello, aabc. The URL is a local stream from a DVR. rtsp://192.168.50.10:8082/user=admin&password=admin&channel=1&stream=0.sdp?real_stream
  • [SOLVED] QML WebView the problem with white space on the bottom

    5
    0 評價
    5 貼文
    2k 瀏覽
    shavS
    thanks I've solved the problem.
  • To Display Video Frame on QML

    2
    0 評價
    2 貼文
    3k 瀏覽
    R
    So. Have you managed to do that? I am trying it too with no success. :(
  • Parent and Anchor Animations done well

    1
    0 評價
    1 貼文
    594 瀏覽
    尚無回覆
  • [Solved] Sizing an svg icon in a QML Button

    3
    0 評價
    3 貼文
    1k 瀏覽
    D
    Thanks, I am getting the icon from an Action, but think your answer will still work
  • [SOLVED] QQuickItem change property with animation

    2
    0 評價
    2 貼文
    1k 瀏覽
    Y
    I solved it by adding initial value m_items.back()->setProperty("y",0); for the first element of my list. Not sure what type of magic is that but it works just fine now
  • QMl Image source change cause the application process to crash

    4
    0 評價
    4 貼文
    1k 瀏覽
    slettaS
    It sounds like one of the bugs I fixed some time ago, so I would think so, yes. If the problem persists, then please file a bugreport through https://bugreports.qt-project.org and assign it to me.
  • Default Controls Style not the same as no style given

    7
    0 評價
    7 貼文
    2k 瀏覽
    J
    Thanks for the information, that's clarify the observed behavior.
  • TextEdit on ListView don't keep text after scrolling.

    15
    0 評價
    15 貼文
    4k 瀏覽
    M
    Thanks, for the info. What can be a good workarround or a proper workflow for my app? Suggestions are welcome.
  • [SOLVED]Accessing QML component property dynamically

    3
    0 評價
    3 貼文
    950 瀏覽
    K
    Its done. That helped me. Thanq.
  • Qt Quick apps crash when clicking on ComboBox/drop-down menu

    11
    0 評價
    11 貼文
    6k 瀏覽
    _
    I am try use QSG_RENDER_LOOP=basic and have no effect - app still crashed. Qt 5.3.1 Buildroot 3.10.17 I.MX6 soc
  • [SOLVED] Can't use keyboard commands in QtQuick.Controls.Menubar on Windows 8.1

    3
    0 評價
    3 貼文
    1k 瀏覽
    M
    I tested this functionality in Ubuntu 14.04 and it didn't worked too. So I guess this is not implemented yet. I will use the QtWidgets module to build de main window for now. Thanks.
  • StackView & Transitions

    2
    0 評價
    2 貼文
    1k 瀏覽
    p3c0P
    Hi, Use Item instead of Window as root object. And provide a width and height to ListView or use anchors.fill: parent. To load Item based component you will need QQuickView.