Skip to content
  • 144k Topics
    721k Posts
    SGaistS
    Hi, If using GStreamer directly, they provide the qml6 plugin that will help you achieve what you want in a more integrated fashion.
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    sierdzioS
    It's a very good point :-)
  • Everything related to designing and design tools

    129 392
    129 Topics
    392 Posts
    J
    Using QT Designer might be the simpler route if the main goal is to keep the workflow smooth with Python. QT Design Studio projects often need manual adjustments before they run properly under PySide6.
  • Everything related to the QA Tools

    89 237
    89 Topics
    237 Posts
    H
    @Pieter-Knelissen It is possible to use the following functions to scroll to the desired item. "setValue ", "mouseWheel" Also you can dump the complete List into a variable and access it. For example as follows: **sample test case : ** # -*- coding: utf-8 -*- import names def main(): startApplication("run.bat") # Use "setValue" and "mouseWheel" functions to scroll mouseClick(waitForObjectItem(names.defaultListModel_Example_JList, "Banana"), 75, 14, 0, Button.Button1) mouseClick(waitForObjectItem(names.defaultListModel_Example_JList, "Pineapple"), 77, 3, 0, Button.Button1) setValue(waitForObject(names.defaultListModel_Example_JScrollBar), 504) # setValue -> https://doc.qt.io/squish/java-setvalue-function.html setValue(waitForObject(names.defaultListModel_Example_JScrollBar), 378) # setValue -> https://doc.qt.io/squish/java-setvalue-function.html setValue(waitForObject(names.defaultListModel_Example_JScrollBar), 630) # setValue -> https://doc.qt.io/squish/java-setvalue-function.html setValue(waitForObject(names.defaultListModel_Example_JScrollBar), 74) # setValue -> https://doc.qt.io/squish/java-setvalue-function.html mouseClick(waitForObjectItem(names.defaultListModel_Example_JList, "Raspberry"), 241, 5, 0, Button.Button1) setValue(waitForObject(names.defaultListModel_Example_JScrollBar), 189) # setValue -> https://doc.qt.io/squish/java-setvalue-function.html mouseClick(waitForObjectItem(names.defaultListModel_Example_JList, "Nectarine"), 190, 7, 0, Button.Button1) j = 1 for i in range(0, 25): j = (j * -1) mouseWheel((i * j)) # mouseWheel -> https://doc.qt.io/squish/java-mousewheel-function.html snooze(1) # Dump the complete List into a variable and access it. tmpObj = waitForObject(names.defaultListModel_Example_JList) tmpList = tmpObj.parent.view.getModel() tmpSize = tmpList.size for i in range(0, tmpSize): tmpItem = tmpList.get(i) test.log(f"{i} {tmpItem}") test.breakpoint() **sample application : ** // Example: Basic Usage import javax.swing.*; import java.awt.*; public class ListExample { public static void main(String[] args) { JFrame frame = new JFrame("DefaultListModel Example"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(300, 200); // 1. Create the model DefaultListModel<String> listModel = new DefaultListModel<>(); // 2. Add data to the model listModel.addElement("Apple"); listModel.addElement("Banana"); listModel.add(1, "Orange"); // Insert Orange at index 1 listModel.addElement("Mango"); listModel.addElement("Pineapple"); listModel.addElement("Grapes"); listModel.addElement("Strawberry"); listModel.addElement("Blueberry"); listModel.addElement("Raspberry"); listModel.addElement("Blackberry"); listModel.addElement("Cherry"); listModel.addElement("Peach"); listModel.addElement("Plum"); listModel.addElement("Apricot"); listModel.addElement("Nectarine"); listModel.addElement("Kiwi"); listModel.addElement("Papaya"); listModel.addElement("Guava"); listModel.addElement("Lychee"); listModel.addElement("Dragon fruit"); listModel.addElement("Passion fruit"); listModel.addElement("Pomegranate"); listModel.addElement("Watermelon"); listModel.addElement("Cantaloupe"); listModel.addElement("Honeydew melon"); listModel.addElement("Coconut"); listModel.addElement("Fig"); listModel.addElement("Date"); listModel.addElement("Persimmon"); listModel.addElement("Cranberry"); listModel.addElement("Mulberry"); listModel.addElement("Gooseberry"); listModel.addElement("Starfruit (Carambola)"); listModel.addElement("Jackfruit"); listModel.addElement("Durian"); listModel.addElement("Tamarind"); listModel.addElement("Olive"); listModel.addElement("Avocado"); listModel.addElement("Lemon"); listModel.addElement("Lime"); listModel.addElement("Grapefruit"); listModel.addElement("Tangerine"); listModel.addElement("Clementine"); listModel.addElement("Soursop"); listModel.addElement("Sapodilla"); listModel.addElement("Rambutan"); listModel.addElement("Longan"); listModel.addElement("Mangosteen"); listModel.addElement("Breadfruit"); listModel.addElement("Custard apple"); // 3. Create JList with the model JList<String> fruitList = new JList<>(listModel); fruitList.setFont(new Font("Arial", Font.PLAIN, 16)); // Add list to a scroll pane for better viewing JScrollPane scrollPane = new JScrollPane(fruitList); frame.add(scrollPane, BorderLayout.CENTER); frame.setVisible(true); } }
  • Everything related to learning Qt.

    391 2k
    391 Topics
    2k Posts
    S
    @Jackol Did you or did an AI write that answer?
  • 2k Topics
    13k Posts
    Chris KawaC
    Sometimes, like when you are marooned on a desert island [in an announcer voice] Coming soon, to a desert island near you... :) Yeah, I guess cases where all you have is text search on a big code base are not that uncommon, like when browsing github repo or something like that, but specifically overrides... I don't think I ever had to look for overrides this way. Oh well, different people different use cases.
  • 4k Topics
    18k Posts
    C
    [image: dc2880e7-0937-4483-91de-5cc6b1e0664b.png] 项目升级QT6后启动 ASSERT failure in class QFactoryLoader *__cdecl QtGlobalStatic::ApplicationHolder<struct `anonymous namespace'::Q_QAS_qtlsbLoader>::pointer(void) noexcept(false): "The application static was used without a QCoreApplication instance", file C:/Users/qt/work/qt/qtbase/src/corelib/kernel/qapplicationstatic.h, line 59 这是什么原因造成
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    A
    @JonB Thank you for your reply. I tried creating a thread by sending the original message, and it worked. It looks like the "upvote" worked. Thank you for your help!