跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.6k 貼文
  • Help with values the slider

    Unsolved
    5
    0 評價
    5 貼文
    421 瀏覽
    Gabriela20G
    yes, this causes the error.
  • QML and QUndoStack? do we still need a C++ wrapper?

    Unsolved
    4
    0 評價
    4 貼文
    522 瀏覽
    SGaistS
    I do not know, it's something you can ask on the interest mailing list. As for the Declarative Widgets project, I don't think they do anything special for look and feel. The goal is to be able to use widgets in QtQuick applications. I don't know the current plans for widgets on mobile.
  • States Question, Retractable display controlled by a button

    已移動 Unsolved
    1
    0 評價
    1 貼文
    121 瀏覽
    尚無回覆
  • Call function in ui.qml!

    Unsolved
    3
    0 評價
    3 貼文
    543 瀏覽
    H
    thank you for your response I started a project on Qt Design Studio and then convert it into a Quick project Now the only files I have are ui.qml files Now I need to call the signals from the c ++ files this is my question: how can i call c++ function when i clicked on a shape in ui.qml file?
  • Strange QSqlQueryModel and QML behavior

    Solved
    3
    0 評價
    3 貼文
    254 瀏覽
    S
    Well, after a some close investigation I have solved my issue. I could not call model's methods because of using the following syntax in delegate's items: model.close() So as far I understood in this case we don't have access directly to model's methods. But if I define my model as a context property: engine.rootContext()->setContextProperty("wordsStorage", backend.wordsStorage()); everything works well and pretty enough. Finally QSqlQueryModel has nothing to do with it. Such thing happens with an arbitrary model. I'm going to mark this topic as 'solved', but anyway: is there a way to do this without using root context? Otherwise QML part is going to be full of this contexts in a large project. Is it okay or not?
  • Graph plotting issue in QML

    Unsolved
    2
    0 評價
    2 貼文
    226 瀏覽
    ODБOïO
    @mnhg hi for(var i in ary) grp1.append(ary[i],i)
  • Get file name, line number and function name in QML Javascript from C++. How?

    Unsolved
    1
    0 評價
    1 貼文
    166 瀏覽
    尚無回覆
  • Qt Scene Graph Problem

    Solved
    3
    0 評價
    3 貼文
    297 瀏覽
    lightwindL
    Thank you very much! I find that glviewport() function control this. It draws everything by four elements. I draw what I want at right position, and it worked!
  • How to push a button on a bottom of a QWidget window from a overlayed QML window ?

    Solved
    5
    0 評價
    5 貼文
    366 瀏覽
    M
    @raven-worx Thank you so much . I finally make it .
  • Scrolling a ColumnLayout

    Solved
    4
    0 評價
    4 貼文
    502 瀏覽
    ODБOïO
    @LorenDB do you mean https://doc.qt.io/qt-5/qml-qtquick-layouts-layout.html#fillHeight-attached-prop https://doc.qt.io/qt-5/qml-qtquick-layouts-layout.html#fillWidth-attached-prop
  • How to Change ProgressBarStyle In QT 5.14

    Unsolved
    2
    0 評價
    2 貼文
    216 瀏覽
    ODБOïO
    @SumitK hi see https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-progressbar
  • How to limit the tilt angle to 180 deg in QML?

    Unsolved
    2
    0 評價
    2 貼文
    332 瀏覽
    kshegunovK
    You don't. Write your own camera controller and handle the transformation yourself.
  • Print current timestamp in Milliseconds since epoch time in QML

    Solved
    4
    0 評價
    4 貼文
    10k 瀏覽
    ODБOïO
    @Philomath-Qt said in Print current timestamp in Milliseconds since epoch time in QML: Unfortunately my QML file prints the time two times, because for some reason the signal of the qobject is received twice instead of once. I'm not the first one that has this problem, but to find the root of this problem is rather complecated (origin seems to be multithreading). If you know a easy workaround, so that the the console.log only gets printed every second time, please let me know. I would rather try to fix the real issue, but if you really want to do that then go ahead.. @Philomath-Qt said in Print current timestamp in Milliseconds since epoch time in QML: edit: getTime() doesn't work for some reason, i had to use Date.now() the reason should be printed in the "application output" tab of you editor this works var date = new Date() console.log(date.getTime())
  • I am trying to call multiple qml item in swipeview but its not working?

    已移動 Unsolved
    1
    0 評價
    1 貼文
    561 瀏覽
    尚無回覆
  • Quick Controls 1 - ComboBox items unselectable on MacOS

    Solved combobox macos
    9
    0 評價
    9 貼文
    1k 瀏覽
    SGaistS
    The patch is public so you can build the module yourself to have the fix.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    11 瀏覽
    尚無回覆
  • Deployment of QML/C++ app on windows

    Solved qml c++ qml windows windeployqt
    7
    0 評價
    7 貼文
    3k 瀏覽
    K
    @J-Hilk I got it to work with ifw as well. However, the option --plugindir apparently does not work correctly. The plugins were stored in the folder of the exe. However, also the installation using ifw was finally successful.
  • keyboard does not show up

    Unsolved
    6
    0 評價
    6 貼文
    712 瀏覽
    Aleksey_KA
    So the problem was obvious because of following lines: #ifdef Q_OS_LINUX qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); #endif Changed to #if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); #endif And voila: Android keyboard works! :)
  • Shortcuts & QtQuick.Controls

    Unsolved
    1
    1 評價
    1 貼文
    203 瀏覽
    尚無回覆
  • How to implement TextInput drag and drop

    Unsolved qml textedit
    2
    0 評價
    2 貼文
    778 瀏覽
    fcarneyF
    You are trying to do 2 things that require the same actions. Drag and drop is not built into the TextInput object. So you need to learn how drag and drop works. Next, since you need to be able to change the mode of your TextInput you need to control when a selection can occur. Say for instance if text is selected that you do NOT want selection motion to work. Then use the selectedText property to control the selectByMouse property: selectByMouse: selectedText <= 0 I do not know if this will lock you into that mode. So you may need a way to back out of a selection. What happens when you click the text again? Does it deselect the text?