Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Qt Development
    3. Qt for Python
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • D

      Unsolved matplotlib fails because of incomplatible qt versions
      • Deep Red

      4
      0
      Votes
      4
      Posts
      31
      Views

      SGaist

      Did you use emerge to install all the packages ?

      Did you also consider using a virtual environment ?

    • M

      Unsolved QtSerialPort write() problems
      • Moldy01

      2
      0
      Votes
      2
      Posts
      5
      Views

      JonB

      @Moldy01 said in QtSerialPort write() problems:

      For some reason inside of the bowels of Qt, serial.Serial doesn't exist

      Don't know what this means, don't know what serial.Serial might be.

      Your code does not seem to use anything Qt, no QSerialPort class. Don't know what self.openPort() might or might not do. Don't know what self.port is.

      The only Qt code here is the setText(), which won't work anyway in the sense that it won't appear because you don't allow the Qt event loop to run.

      All your code seems maybe to use Python serial port handling/code, so look there for answers.

    • Q

      Unsolved Network error while downloading for win 11
      • Quyet

      2
      0
      Votes
      2
      Posts
      14
      Views

      SGaist

      Hi and welcome to devnet,

      You need to try a different mirror.

      See this thread.

    • L

      Unsolved Segmentation fault after migrating to PySide2 from PyQT5
      pyside2 • • lokeshdotp

      5
      0
      Votes
      5
      Posts
      44
      Views

      jeremy_k

      @lokeshdotp said in Segmentation fault after migrating to PySide2 from PyQT5:

      #0 0x00000000021b3f90 in ?? ()
      #1 0x00007fffe8bb7986 in Shiboken::BindingManager::runDeletionInMainThread() () from /PathToBin/venv/lib/python3.6/site-packages/shiboken2/libshiboken2.abi3.so.5.15

      Shiboken::BindingManager::runDeletionInMainThread():

      void BindingManager::runDeletionInMainThread() { for (const DestructorEntry &e : m_d->deleteInMainThread) e.destructor(e.cppInstance); m_d->deleteInMainThread.clear(); }

      Of the options for a functional call, my guess is that e.destructor() is stack frame #0. Presuming the naming is accurate, I suspect a double deletion. Python and Qt object lifetime management sometimes collide unless extra precautions are taken. https://www.riverbankcomputing.com/static/Docs/PyQt5/gotchas.html#garbage-collection discusses the topic at a high level. Perhaps PySide has slightly different object lifetime tracking.

      Connecting a debug print statement to QObject::destroyed() has helped me diagnose similar situations with PyQt programs.

    • britesc

      Unsolved What object to use that sllows class access to toolbar, menu, statusbar?
      • britesc

      9
      0
      Votes
      9
      Posts
      63
      Views

      JonB

      @britesc
      Quite understand. Maybe there are some youtube videos or spoken books which would allow to learn with overstressing sight.

      Read up on classes and instances, you will need a thorough understanding for Python/OOP no matter what you do. Remember usage works like:

      class SomeClass(optionalClassItDerivesFrom): # class definition def __init__(self, optionalAnyParameters): # class constructor, called first whenever an instance is created ... # outside world classInstanceVariable = SomeClass() # create an instance of the class

      A class is like Animal or Lion --- it defines attributes and behaviours for animals/lions, but it does not create any animal or lion. lion1 = Lion() creates an instance of a Lion(), i.e. some individual lion with Lion attributes.

    • D

      Unsolved Font icons with Qt widgets
      • demberto

      1
      0
      Votes
      1
      Posts
      17
      Views

      No one has replied

    • D

      Solved QStandardItemModel doesn't update QTableView
      pyside python qt for python • • demberto

      6
      0
      Votes
      6
      Posts
      26
      Views

      JonB

      @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.

    • S

      Solved QtMqtt not found in PySide6
      • swifty

      5
      0
      Votes
      5
      Posts
      49
      Views

      S

      Thanks for the help everybody! I will look into the commercial side.

    • M

      Unsolved NotImplementedError: pure virtual method 'QAbstractCameraController.moveCamera' not implemented.
      • manuelo

      5
      0
      Votes
      5
      Posts
      95
      Views

      SGaist

      @manuelo It's a now know issue, see PYSIDE-2255.

    • K

      Unsolved QT Image Scaling taking long time
      • kgenbio

      11
      0
      Votes
      11
      Posts
      64
      Views

      SGaist

      @kgenbio you misunderstood me, QPixmap is mandatory for QLabel. What I wrote is that recreating it every time was not the most performance friendly way to handle it.

    • superaga

      Solved How to link custom widgets to model data
      • superaga

      19
      0
      Votes
      19
      Posts
      103
      Views

      superaga

      It is not possible attach files, so here the code (from an external hosting):
      https://mega.nz/file/FDIThArB#wf8nzrveUSlaj76gx_Qmtu7yv_1K4Ivj_BRfkdIB6mw

      I hope it helps!
      AGA

    • D

      Unsolved import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.
      • Diptanshu Malviya

      5
      0
      Votes
      5
      Posts
      53
      Views

      D

      @friedemannkleint I am using window 11

    • D

      Solved Using two different keys for an Action
      • dschiller

      1
      0
      Votes
      1
      Posts
      18
      Views

      No one has replied

    • A

      Solved pyqt checkbox resolution for different scales
      qt for python • • andverdu

      7
      0
      Votes
      7
      Posts
      104
      Views

      A

      Issue solved by implementing the checkboxes through Qt.ItemIsUserCheckable, rather than through a delegate

    • A

      Unsolved Unable to plot
      • ALI-

      5
      0
      Votes
      5
      Posts
      24
      Views

      JonB

      @ALI
      What is the point of you asking this question in another post, I answered it there, now you ask here... ? This is why double-posting is unhelpful.

    • A

      Unsolved Question for my application
      • ALI-

      2
      0
      Votes
      2
      Posts
      19
      Views

      JonB

      @ALI
      The code you show has a MatplotlibWidget derived from QMainWindow but no indication it defines a variable named MplWidget inside that, as you can see by searching the code you posted. Hence the error message.

    • katekyy

      Solved Issue when entering design tab.
      • katekyy

      2
      0
      Votes
      2
      Posts
      27
      Views

      katekyy

      The issue seems to be solved when i switched to Qt Creator 10.0.0-beta2.

    • A

      Unsolved Dependency error of StudioWelcome plugin
      • AhMeD_JuTt

      1
      0
      Votes
      1
      Posts
      17
      Views

      No one has replied

    • N

      Unsolved Cant use QSoundEffect
      • Not0_0Parsa

      2
      0
      Votes
      2
      Posts
      29
      Views

      SGaist

      Hi and welcome to devnet,

      Might be a silly question but did you check that the URL built is correct ?

    • F

      Solved QPushButton clicked connect strange behavior
      • ForeverNoob

      3
      0
      Votes
      3
      Posts
      25
      Views

      F

      @Chris-Kawa said in QPushButton clicked connect strange behavior:

      This actually calls the newNote() function

      Yes, because you called it (used the () operator). You're supposed to pass the function address, not call it i.e.

      newNoteButton.clicked.connect(self.newNote)

      Right, it works now. Thanks a bunch.