Skip to content

Qt for Python

For discussion and questions about Qt for Python (PySide & Shiboken)

3.3k Topics 14.6k Posts
  • Compile with icon.

    Unsolved
    2
    0 Votes
    2 Posts
    434 Views
    Kent-DorfmanK
    my approach to this very issue will be to create a python class that holds the binary data (as arrays) that makes up the icons, then feed that data to QPixmap, and then to QIcon instances.
  • How to convert .py to .ui?

    Unsolved
    2
    0 Votes
    2 Posts
    14k Views
    Kent-DorfmanK
    I'm not aware of any tool to do that. UI is an XML description of the interface. PY is the processed output of that description. I'm not sure anyone has ever identified enough need to go the other direction.
  • How to use QTermWidget in PySide2?

    Unsolved
    4
    0 Votes
    4 Posts
    990 Views
    SGaistS
    Let's take it from the other end, why should the Qt project do it ? There's already a Qt based terminal that exists: Konsole from the KDE project.
  • How to set the style (for instance Material) for QtQuick QML PySide2 app?

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    R
    Thanks, it works!
  • Request for Comments - on my PyQt app

    Unsolved
    2
    0 Votes
    2 Posts
    488 Views
    R
    Tip: add the search/filter input :) to search through the logs.
  • __init__ question

    Unsolved
    2
    0 Votes
    2 Posts
    499 Views
    Kent-DorfmanK
    there are two ways to use forms: The first way is to run the setupUi() method on a target widget. The other way is to subclass the Ui_xxxx class itself. You're probably seeing examples of the second method where the subclass has its own init() method.
  • QListWidget signal in pyside2 and attach a dictionary to listwidget

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    B
    Superb @Erudite-Monkey, This is what i was looking for I am working in a 3d package Maya the reference code i created was from PySide2 import QtWidgets from PySide2 import QtGui from PySide2 import QtCore test_lay = QtWidgets.QVBoxLayout() test_lay_wid = QtWidgets.QWidget() test_parentwid = QtWidgets.QWidget() test_button = QtWidgets.QPushButton() test_listwid = QtWidgets.QListWidget(test_parentwid) #QtWidgets.QListWidgetItem(testing_print.out_var, test_listwid) QtWidgets.QListWidgetItem("Test_01", test_listwid) QtWidgets.QListWidgetItem("Test_02", test_listwid) QtWidgets.QListWidgetItem("Test_03", test_listwid) test_lay.addWidget(test_parentwid) test_lay.addWidget(test_button) test_lay_wid.setLayout(test_lay) test_listwid.insertItem(10, QtWidgets.QListWidgetItem("Test_04")) test_lay_wid.show() def print_someting(): print str(test_listwid.currentItem().text()), "apna time aayega" #test_listwid.currentItem().text() test_listwid.itemClicked.connect(print_someting) which i figured out yesterday night :) I rarely have used lambda but with your eg i'll even learn something better when i select an item(key) from the listwidget it should display data(value) stored in it in texteditwid without any looping -- checked want to use only dict to display data on widget as per model/view want to know its possible, if yes will appreciate examples -- checked You nailed it man didn't even require the last point 3) this query relates partially to the first one, if the dict option isn't handy enough kindly suggest provide an example of loop with itemselected signal because whenever i try i prompts Qt native signal Thank You, @Erudite-Monkey
  • How to interact with widgets that are in cells of a tablewidget.

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    Erudite MonkeyE
    @mrjj Thankyou very very much for your help! I guess its time for me to get my hands dirty and do some more suffering experimentation :D
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • QMetaObject.invokeMethod() does not work with arguments

    Unsolved
    1
    0 Votes
    1 Posts
    445 Views
    No one has replied
  • Python QT designer Updating Label and Other stuff in python code issue and error

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to create a String of character with PyQt (Plugin on modeling software)

    Unsolved
    1
    0 Votes
    1 Posts
    307 Views
    No one has replied
  • PySide2.QtSql, How to load the available driver?

    Solved
    3
    0 Votes
    3 Posts
    848 Views
    Volodymyr14V
    @-KRS- Thank You, Solved! Didn`t use QtSql before. :)
  • PySide2 licensing when using PyInstaller, cx_freeze

    Unsolved
    1
    0 Votes
    1 Posts
    597 Views
    No one has replied
  • PySide2/PyQt, zooming in and out UI.

    Unsolved
    1
    0 Votes
    1 Posts
    577 Views
    No one has replied
  • For loop problem!

    Moved Solved
    15
    0 Votes
    15 Posts
    2k Views
    monamourM
    @jsulm for proc in psutil.process_iter(): if proc.name()==x: proc.kill() QMessageBox.information(self, "Success", x2 +"has been terminated") return for proc in psutil.process_iter(): if proc.name()!=x: QMessageBox.information(self, "Error","The process " +x2 + " is not found") return
  • Impossible to connect slots in TabWidget

    Solved
    3
    0 Votes
    3 Posts
    558 Views
    A
    I found out the error and I feel so stupid. I used the same name (ui) for two variables in ClassifyPage = QWidget() ui = ClassifyPageUIClass() ui.setupUi(ClassifyPage) and MainWindow = QMainWindow() ui = MainWindowUIClass() ui.setupUi(MainWindow) so the the slots connects of my QTabWidget were overwrighted.
  • Execute command and display it problem

    Moved Solved
    7
    0 Votes
    7 Posts
    887 Views
    monamourM
    Solved! self.textBrowser.append("The PC is " +s.SystemName +" and the Speed is 1GB ") Thanks,
  • using strings and floats in QTableView, QStandardItemModel, QStandardItem

    Unsolved qt for python
    1
    0 Votes
    1 Posts
    714 Views
    No one has replied
  • Overwritemode don't work in QTextEdit / QTextBrowser

    Unsolved
    1
    0 Votes
    1 Posts
    309 Views
    No one has replied