Skip to content
  • 144k Topics
    723k Posts
    jeremy_kJ
    @Jackmill said in QListWidget with checkboxes - checking more than one row at a time: @jeremy_k said in QListWidget with checkboxes - checking more than one row at a time: A flag or list of indexes to be modified could accomplish the same goal while leaving view management intact. How might I do this? I'm having trouble thinking of a way to call setData without causing an endless loop. void onDataChanged(const QModelIndex topLeft, const QModelIndex bottomRight, const QList<int> &roles) { static bool updating = false; if (roles.contains(ItemDataRole::CheckStateRole) && !updating) { updating = true; auto value = topLeft.data(ItemDataRole::CheckStateRole); for (auto index : selectionModel.selectedIndexes()) model->setData(index, ItemDataRole::CheckStateRole, value); updating = false; } } The code could also disconnect this (and only this) slot from the signal prior to the loop, and reconnect it at the end.
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    SGaistS
    Hi, Some of my colleagues are speaking highly of Obsidian. It might be worth taking a look at. Otherwise, Trello might be an option as well (or one of its alternative).
  • Everything related to designing and design tools

    127 383
    127 Topics
    383 Posts
    R
    I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me. Go to File > Export Project and select Enable Python Generator. This will create a main.py. Make sure you pip install PySide6-DS Hope this helps someone.
  • Everything related to the QA Tools

    77 213
    77 Topics
    213 Posts
    J
    Hello i am using WinCC OA to develop a qt application. WinCC OA has some custom elements which cannot be detected by squish for example a polygon. Squish is now not able to detect this element with the picker. I know the name of the element but as it is of WinCC OA internal i do not know the type: waitForObject( {"container": "container", "name": "POLYGON1","type": "???","visible": 1} ); How do i get this information? And what to use if unknown? Is there any other way? I mainly just need to click this element. Thanks a lot
  • Everything related to learning Qt.

    382 2k
    382 Topics
    2k Posts
    V
    Thank you 😊
  • 2k Topics
    13k Posts
    SGaistS
    Oh right, I forgot about that one. Depending on the content you can apply the same to rows. In any case, since your issue is fixed, please mark the thread as solved using the "Topic Tools" button so that other forum members may know a solution has been found :-)
  • 4k Topics
    18k Posts
    J
    项目最近有一个手写输入的需求,因为需要在触摸屏设备上工作,所以不能直接用现成的输入法,研究了一下开源的一些手写输入库,最后找到了一个基于 QWidget 和 Windows Ink 的手写输入项目,但是我需要 QML 的实现,所以自己进行了一定的拓展,包括解决了输入框焦点切换的问题,有需要的可以看一看 地址:Windows_handwriting
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    @RokeJulianLockhart to the best of my knowledge, no. The first release of Discourse was in 2014 and the forum is several years older than that.