跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Deactivate click-ability on TextInput if something above. How?

    Solved
    4
    0 評價
    4 貼文
    284 瀏覽
    B
    @dheerendra there might be different numbers and of areas that should be blocked. I've been developing universal background for loader sign (not QML component Loader). For me it simpler to use empty function because I don't care about number and types of mouse areas.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    4 瀏覽
    尚無回覆
  • Not able to resolve std::atomic operations in Qt 5.15.2

    Solved
    8
    0 評價
    8 貼文
    2k 瀏覽
    kshegunovK
    @Praveen-Illa said in Not able to resolve std::atomic operations in Qt 5.15.2: Not resolving <iostream> and <atomic> directives Install the c++ development packages for your platform and compiler, possibly for the atomic library, drop the superfluous INCLUDEPATH+= from your project and link against the atomic library if necessary: LIBS += -latomic.
  • selectionMode property not available in TreeView 2

    Solved
    7
    0 評價
    7 貼文
    661 瀏覽
    ocgltdO
    There are quite a few problems with the TreeView 2 docs - there is already post already escalating this issue. Even conceptually I'm unsure about how things work: Shouldn't a selectionMode be tied to a view? The way I read the TreeView 2 docs the ItemSelectionModel is an independant object that I add/delete items to/from. In that case why bother with the 'flags' method in QAbstractItemModel? If I need to add/remove to/from the selection model on my own, can't I just ignore those flags? As well, shouldn't 2 views allow different items be selectable? (So why associated the selectable flag with the QAbstractItemModel)
  • When to use Qt::DirectConnection and QueuedConnection

    Solved
    2
    0 評價
    2 貼文
    7k 瀏覽
    sierdzioS
    If it is in a different thread, you should use QueuedConnection for sure. This way you can be certain no thread synchronization issues occur. Or, if you leave connection type argument empty, Qt will choose the right type automatically for you (queued for threaded connections, direct otherwise). You can also use QueuedConnection in single-thread connections to delay slot execution a bit, allow the event loop to spin etc. In short: direct connection is the same as direct function call - it is called immediately and in the same thread queued connection is inserted into event loop and will be called "some time in the future, by receiving thread". Where "some time" is usually "very quickly"
  • How to load Popup component from other .qml

    Solved
    2
    0 評價
    2 貼文
    1k 瀏覽
    J
    Solution https://stackoverflow.com/questions/45469881/access-items-in-different-qml-files
  • Infinite scrolling of a TableView

    infinite scroll tableview dynamic scroll
    6
    0 評價
    6 貼文
    5k 瀏覽
    sierdzioS
    @ParCHAT1497 said in Infinite scrolling of a TableView: @sierdzio Hi i want to implement something similar... i am not able to fetch the position of scrollbar.. how can I do it ? See the original post by @tezine it includes exact code you need.
  • TabButton implicitWidth Strange Behaviour (in TabBar)

    Unsolved
    2
    0 評價
    2 貼文
    225 瀏覽
    P
    I have created a SO question as well in case someone wants to answer there instead: https://stackoverflow.com/questions/64267727/qml-why-does-tabbars-implicitwidth-depend-on-binding-inner-tabbuttons-width/64330266
  • Changing TableView columnWidthProvider from 0 (hidden) to non-zero

    Solved
    3
    0 評價
    3 貼文
    1k 瀏覽
    P
    Turns out it was a bug: https://bugreports.qt.io/browse/QTBUG-92076
  • Qt Application Crashes, with coredump Bt not providing enough information

    Unsolved
    1
    0 評價
    1 貼文
    235 瀏覽
    尚無回覆
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    12 瀏覽
    尚無回覆
  • How to use/enable TreeView 2 from marketplace

    Solved
    8
    0 評價
    8 貼文
    1k 瀏覽
    JKSHJ
    @ocgltd I don't know of any other documentation, sorry. Your best bet might be to post at the Interest mailing list (subscribe before posting). Qt engineers are active on that list.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    4 瀏覽
    尚無回覆
  • Attempting to change QImage text

    Solved
    4
    0 評價
    4 貼文
    341 瀏覽
    SGaistS
    No, you have to redraw it as setText is for metadata. What is the issue with the solution I suggested ?
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    3 瀏覽
    尚無回覆
  • QtRpt build failure

    Unsolved
    4
    0 評價
    4 貼文
    349 瀏覽
    SGaistS
    What was it ?
  • Common properties across a number of controls?

    Unsolved
    1
    0 評價
    1 貼文
    126 瀏覽
    尚無回覆
  • Drag and Drop of underlying Mousearea

    Unsolved
    1
    0 評價
    1 貼文
    178 瀏覽
    尚無回覆
  • How to check suitable version of components in qt

    已移動 Unsolved
    3
    0 評價
    3 貼文
    365 瀏覽
    J
    @jsulm I meant modules such as import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.15
  • adding a color value to a ListElement

    Unsolved
    4
    0 評價
    4 貼文
    665 瀏覽
    oria66O
    @mzimmers Right, ListElements are a collection of roles. If you want to set "dynamically" those roles, you should play with the javascript functions of ListModel, and implement some kind of mechanism (depends on your use case) to update it.