跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • QT virtualkeyboard size

    Unsolved
    3
    0 評價
    3 貼文
    822 瀏覽
    ?
    Yes, I tried to set only with according to documentation. It works in landscape mode. But if I rotate the keyboard and set width only, it is working like I described.
  • How to insert Qxlsx data into sqlite database table?

    Solved qml qxlsx dat database sqlite database qsqldatabase
    16
    0 評價
    16 貼文
    3k 瀏覽
    J
    @JonB sorry for that, insert into Dataset(AT) values(?): I know nothing about SQLite. Dataset(AT) is a (syntactically valid) table to insert into, is it? Yes, it is valid statement in sqlite. Also QSqlQuery::prepare() returns a bool for success/failure, which you should be checking. Returns true if the query is prepared successfully; otherwise returns false. Plus, you check QSqlDatabase::lastError() after QSqlQuery::exec() fails, but that says yes, I got error. like QSqlError("","",""); I checked again there was a problem in database but it solved thanks alot. Now, I'm able to insert data into database from QXlsx file.
  • Use column as role in delegateChooser

    Unsolved
    2
    0 評價
    2 貼文
    321 瀏覽
    IntruderExcluderI
    I dunno what your model looks like, but have you tried it this way? DelegateChooser { DelegateChoice { column: 1; ItemDelegate { ... } } ... } You can also try 'display' as a role for DelegateChooser.
  • 0 評價
    2 貼文
    190 瀏覽
    IntruderExcluderI
    The easiest way to pass such data to QML is using QStringListModel.
  • Dynamic addition of component inside a grid (by click Button) and swap elements capability

    Unsolved
    1
    0 評價
    1 貼文
    255 瀏覽
    尚無回覆
  • QML Txt with multiple links - keyboard navigation

    Unsolved
    1
    0 評價
    1 貼文
    187 瀏覽
    尚無回覆
  • QML ToggleButton and StatusIndicator in Qt6

    Unsolved
    1
    1 評價
    1 貼文
    630 瀏覽
    尚無回覆
  • How to avoid a circular dependency in Qt creator

    Unsolved
    7
    0 評價
    7 貼文
    743 瀏覽
    M
    @sierdzio I want to avoid a circular dependency. If I inherit QObject to ProessSlot and send a signal to Process , a circular dependency doesn't happen as you told me.The reason why I make this component is that I have multi classes like ProcessSlot which Process delegates and multi classes which a child class like ProcessSlot delegate. And I want to utilize "QmlAcessSignal" in child class and send signals in that.
  • How to create LED indicator in QML

    Solved
    5
    0 評價
    5 貼文
    2k 瀏覽
    P
    @ndias said in How to create LED indicator in QML: Hi @James-A, You can use StatusIndicator QML Type if you are using Qt5: https://doc.qt.io/qt-5/qml-qtquick-extras-statusindicator.html Regards Hi, A bit related - I have a project that used Qt5.13 and the StatusIndicator QML type. After upgrading the project to Qt6, I now get the error: module "QtQuick.Extras" is not installed I have since discovered, that these controls have moved to the Enterprise Controls? https://doc.qt.io/QtQuickEnterpriseControls/qml-qtquick-enterprise-controls-statusindicator.html So I am not able to use it in this standard Open Source project anymore?
  • Use Qt5Compat.GraphicalEffects in Qt6 and QtGraphicalEffects in Qt5 in the same QML file

    Unsolved
    1
    0 評價
    1 貼文
    286 瀏覽
    尚無回覆
  • SoundEffect on Android

    Solved
    2
    0 評價
    2 貼文
    316 瀏覽
    mrdebugM
    The audio track must be at 48000 Hz
  • Animations in a state (QuickUltralite)

    Unsolved
    2
    0 評價
    2 貼文
    190 瀏覽
    jeremy_kJ
    @reneb86 said in Animations in a state (QuickUltralite): I want to create "states" for my character. States like "idle", "waving", "angry", "shouting", "talking", "walking", etc. Now the mechanisms for states are there, and even transition animations between states are there. But it seems to be impossible to create any kind of animation while the character stays within a state. I might want my "talking" state to be as long as 3 minutes, if that's how long the dialog is. But within those 3 minutes, there should be an animation looping. But states seem to always be entirely static. I tried to define States within the top item of the character. I can define a lot of it. But I can't define the animation within the state it belongs in it seems. The animations types are not allowed to live in State or PropertyChanged. Now. I may be able to solve this by defining states in every Image. But that is the wrong kind of encapsulation in my mind. The logic of waving animations, should be located in the same place, not spread across many different images. It can't seem to be done in QML though. Or am I missing something? My inclination is to: Define the animations outside of the states definitions, but adjacent in the QML file. Use a PropertyChanges or StateChangeScript to set the Animation's state to running and adjust loops if appropriate.
  • How to use FolderDialog in Qt 6.2

    已移動 Unsolved
    2
    0 評價
    2 貼文
    427 瀏覽
    B
    @AndreyBastien I believe new dialogs have just been introduced in 6.2 if you are able to use that version.
  • How to create a Visio type interface with QML?

    Solved view workflow stingray studio user interface
    3
    0 評價
    3 貼文
    872 瀏覽
    jeanmilostJ
    Thank you very much for the tip, this looks good and is effectively the best option I know until now.
  • 'Binding loop detected for property "layoutHeight" after adding a FileDialog

    Unsolved
    6
    0 評價
    6 貼文
    3k 瀏覽
    KroMignonK
    @Rufledore said in 'Binding loop detected for property "layoutHeight" after adding a FileDialog: I have the same issue and I don't know how to proceed. Take a look at this tutorial https://www.youtube.com/watch?v=aSMEcAmcPDc This will help you to understand binding loops, and perhaps to find out what's going wrong.
  • Text.RichText <img> error

    Unsolved
    2
    0 評價
    2 貼文
    181 瀏覽
    MarkkyboyM
    I'll go out on a limb here and say your syntax is wrong. I tackled this sometime ago for a client. I got there eventually. Your line for 'text'; text: '<img src="myimage.jpg" height="10" width="10">' Should look like; text: `<img src='myimage.jpg' height='10' width='10'>` The difference is not noticeable immediately, but looking closer, you'll notice that we have to use a backwards tick ( ` ) top open and close our line of text. Hope this helps. . . Here's how it looks from my project using a wifi logo image in a line of text; [image: 8691ad55-57ec-4fe3-bd69-a5a0aadcc6a2.JPG]
  • how to edit the property of dynamically created object?

    Solved
    2
    0 評價
    2 貼文
    293 瀏覽
    sierdzioS
    You need to expose the text as a property. The id you set in your QML file is local - visible only inside of that same file. When you try to access it from another file (main.qml), it will never work. Does not matter if it is a dynamic component or not. So, for example: //dyRec.qml Rectangle { property alias text: rectText.text id: rect TextEdit { id: rectText text: qsTr("Default") } } // main.qml var dyRect = Qt.createComponent("dyRec.qml") var dyRectObj = dyRect.createObject(root) dyRectObj.text = qsTr("1111")
  • GridLayout equal size Text and Rectange

    Unsolved
    3
    0 評價
    3 貼文
    471 瀏覽
    F
    @AxelVienna I would want my grid columns equal size. The text is not big, there is no need to allocate 90% of grid space for text. Run this example, you will see. Anyway, fixed this by setting preferredWidth to 0 for text. But the inconsistency is annoying.
  • 0 評價
    4 貼文
    534 瀏覽
    J
    Its working now, due to main.cpp it didn't work. Thanks a lot. can I place those speed values in lineseries chart instead of Listview can i take lineseries chart
  • Memory use with repeated creation/destruction of ListView's

    6
    0 評價
    6 貼文
    5k 瀏覽
    JoeCFDJ
    @Hornsj2 you may need to make a debug build of Qt in order to see the leaks of Qt code. Often people install Qt release build and will not be able to see the leaks of Qt.