Skip to content
  • 0 Votes
    10 Posts
    2k Views
    V
    @JonB said in Trouble Running Python Script in Qt - Using QRC Resources: @Veltroniv I built an .exe file from my .py file with all the dependencies (included libraries etc...). I presume you mean that whatever tool you used to generate a .exe from the .py source embeds a standalone Python interpreter into that executable, so no external Python is needed? yes, i guess. Its working properly so... And, just checking, what did you use to "gathering the path to exe file"? I assume you mean to the top-level executable of your Qt application, and then you locate the other executable generated from the Python script because you know it's relative to where your top-level executable will be installed? Yess, thats correct. It might not have been clear.
  • 0 Votes
    6 Posts
    1k Views
    B
    @PratikTayshete I'm too new to this to suggest a proper solution... but this seems to work for my for pyside6 to correctly import the _rc.py file pyside6-uic appUI.ui -o appUI.py --absolute-imports --python-paths ./icons/ Note: When I run pyside6-uic --help I see the following --rc-prefix Python: Generate "rc_file" instead of "file_rc" import This suggest to me that you are expected to name of your compiled resource python files to either prefix or suffix with rc_ or _rc respectively. [image: 34dd53a6-d861-4c7c-9512-86c962e54b2b.png]
  • 0 Votes
    2 Posts
    796 Views
    SGaistS
    Hi, That's a Qt forum so not really suited for deep learning related questions. You should rather check a dedicated forum. That said, you should check your preprocessing steps to ensure your data are properly prepared.
  • DeprecationWarning QSqlQueryModel.setQuery

    Unsolved Qt for Python qt for python python pyside
    10
    0 Votes
    10 Posts
    977 Views
    SGaistS
    Thanks !
  • String Date to Julian Date

    Unsolved Qt for Python python pyside qt for python
    2
    0 Votes
    2 Posts
    344 Views
    JonBJ
    @britesc How about doing this in Python, nothing to do with Qt? Maybe https://stackoverflow.com/questions/53107367/convert-calendar-date-to-julian-date-python ?
  • 0 Votes
    3 Posts
    1k Views
    JonBJ
    @BrantFF said in How to set QProgressBar widget in vertically from Qt Designer?: It will return to default value( here is Horizontal ) when I change other attributes. Give an example of exactly one further change which causes Vertical to get replaced by Horizontal. And if it really does that the version of Qt Creator you are using. OIC, Qt Designer: v6.5.0. Give the change example (e.g. does it happen if you uncheck textVisible? does it change if you pick some other widget and change one of its attributes, so that you are saying any change at all causes reversion?) and ask someone with that Designer version if it happens to them.
  • 0 Votes
    1 Posts
    416 Views
    No one has replied
  • QStandardItemModel doesn't update QTableView

    Solved Qt for Python pyside python qt for python
    6
    0 Votes
    6 Posts
    614 Views
    JonBJ
    @demberto No need for else: IMHO :) Now you hide if the base class setData() were to fail. To me return super().set_data(index, value, role) as the final line makes sense.
  • Unreal Engine with PyQt5

    Unsolved General and Desktop pyqt5 3drender python
    2
    0 Votes
    2 Posts
    1k Views
    Chris KawaC
    @Pythonic-person Unreal Engine allows you to build it as a library and embed into another app, provided that you can drive it. It needs native window messages and I'm not versed enough in python to give you specifics, but it sounds doable. Make sure to read through the UE EULA though, to be sure that whatever you plan to do is legally allowed by Epic. Just as a comment though. You chose a very slow language (python) to do very expensive task (3D), bind it to a C++ library (pyqt), which adds overhead, interoperate it with external app that has no direct python API, and then drive it with native OS messages in a language that is not directly supported by that platform. In short you chose to do it the hardest and slowest possible way before you even started. It's your decision of course, but I would seriously reconsider.
  • Brings up the image nicely on the label

    Solved General and Desktop pyqt6 image display python
    3
    0 Votes
    3 Posts
    436 Views
    A
    @Pl45m4 Thank you. Documentation for Python : https://doc.qt.io/qtforpython-5/PySide2/QtGui/QPixmap.html Example of code : I give this because of the minimum examples on the internet from PyQt6.QtCore import Qt ... self.labelCropFace.setPixmap(pixmap3.scaled(self.labelCropFace.size(), Qt.AspectRatioMode.KeepAspectRatio)) For other people who need it, hopefully it helps too
  • QListWidget setItemWidget spacing on right

    Unsolved Qt for Python qt for python python pyside
    4
    0 Votes
    4 Posts
    697 Views
    SGaistS
    AFAIK, it should be doable.
  • Several errors in plugins ("windows")

    Unsolved General and Desktop python pyqt dll qwindow bug
    1
    0 Votes
    1 Posts
    471 Views
    No one has replied
  • QtCore.pyqtsignal is a typoed type hint?

    Solved Qt for Python qt for python python
    6
    0 Votes
    6 Posts
    714 Views
    K
    @JonB Thanks for the response! Okay, I will leave the thread as is :)
  • PySide6 layout issue

    Unsolved Qt for Python qt for python pyside python
    3
    0 Votes
    3 Posts
    729 Views
    SGaistS
    Hi and welcome to devnet, You might be interested in the Flow Layout example.
  • What does the "yield" keyword do?

    Unsolved Qt for Python python
    3
    0 Votes
    3 Posts
    491 Views
    A
    @jsulm said in What does the "yield" keyword do?: returns a gerator object which can be iterated to get the values. See https://www.guru99.com/python-yield-return-generator.html Thank you..It has a great overview of how yield works and how to use it.
  • 0 Votes
    2 Posts
    2k Views
    JonBJ
    @Adityamity said in AttributeError: 'bool' object has no attribute 'browsefiles': def browsefiles(self): You have this against the left margin. It is not inside the class. Indent it all by 4 spaces. This is one reason not to like Python ;-) BTW, well done for putting your code inside forum Code tags, in your first post! Most do not. Which would have made this very hard to spot!
  • QT charts extremely slow - QLineSeries

    Solved QML and Qt Quick qtchart qtcharts qlineseries python
    25
    0 Votes
    25 Posts
    7k Views
    fcarneyF
    "append" causes a redraw. There is no way to disable the redraw that I can find. The QML api for charts is kinda crappy for adding data points. Which is why I had to use "replace" in C++. I have done thousands of points this way and it doesn't cause delays in the UI interface.