Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. pyqt4
    Log in to post
    • All categories
    • cerr

      Solved Why does QPushButton not respect absolute pixel size?
      Mobile and Embedded • pyqt4 qpushbutton size layout issues • • cerr

      5
      0
      Votes
      5
      Posts
      336
      Views

      cerr

      @SGaist Yes Thank! It all makes sense now!

    • cerr

      Solved Problems to adjust QGridLayout to requirements
      General and Desktop • qgridlayout qtcreator 3.5.1 pyqt4 • • cerr

      5
      0
      Votes
      5
      Posts
      314
      Views

      cerr

      @nagesh Haha :boom: I knew it was something along these lines:
      "select combo box and expand horizontally in right direction it should occupy the
      empty space right to it"
      Shame on me and awesome! Thank you very much! lol
      I never asked that question, right? :D

    • cerr

      Solved 'str' object has no attribute 'chop'
      Mobile and Embedded • pyqt4 python2 • • cerr

      3
      0
      Votes
      3
      Posts
      286
      Views

      cerr

      @SGaist said in 'str' object has no attribute 'chop':

      Hi,

      You write your code as if you where using QString objects. With either PySide2 or PyQt5 you'll have Python str objects. You need to translate these bits.

      rrrrrrright, Duh!
      I'm still kind of new to writing Qt in Python...
      changing my code to using pin[:-1] works as expected! Thanks!

    • cerr

      Solved problem with aligning text underneath buttons
      General and Desktop • pyqt4 layout qlabel qpushbutton • • cerr

      3
      0
      Votes
      3
      Posts
      266
      Views

      SGaist

      Hi,

      To add a layout to a layout there's the "addLayout" method.

    • M

      Unsolved segmentation fault triggered in QKeyMapper::changeKeyboard()
      General and Desktop • pyqt4 qt4.8 segfault • • Marc_Van_Daele

      3
      0
      Votes
      3
      Posts
      1070
      Views

      M

      In the PyQt 4.9.4 code downoaded from https://sourceforge.net/projects/pyqt/files/PyQt4/ I find
      (Note that we are using 4.9.3 but I couldn't find the sources of that version)

      void sipQLineEdit::changeEvent(QEvent *a0) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_changeEvent); if (!sipMeth) { QLineEdit::changeEvent(a0); return; } typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *); ((sipVH_QtCore_17)(sipModuleAPI_QtGui_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0); }
    • H

      Unsolved Segmentation fault when move a group item (combining a rectangle and a point) in pyQT
      General and Desktop • pyqt4 python2 segmentation fa parent children • • helloworld12345

      4
      0
      Votes
      4
      Posts
      1698
      Views

      H

      @jsulm When the pop up Message Box shows "python has stopped working", I clicked "debug" rather than close, then visual studio was started, in visual studio,
      it shows
      Unhandled exception at 0x0000000059A17DF1 (QtGui4.dll) in python.exe: 0xC000041D: An unhandled exception was encountered during a user
      callback

      I was using pycharm to trace code step by step, however it nev, aer run to this issue by step by step since there are two many small steps/callback/signal/slot to go through, as long as I let it run without breakpoint, it will crash with segmentation fault.

    • M

      Unsolved PyQt Combobox with QtGui.QDataWidgetMapper not saving key to database
      General and Desktop • pyqt4 combobox relational • • mkdev

      2
      0
      Votes
      2
      Posts
      1865
      Views

      M

      By default a QComboBox reads and saves its currentText property when being mapped to a data model column. I wonder if this is causing your problem?

    • A

      Unsolved PyQt5 Events
      Language Bindings • python python3 pyqt5 pyqt pyqt4 • • alekssandrap

      1
      0
      Votes
      1
      Posts
      2126
      Views

      No one has replied

    • D

      Unsolved PyQt4 and scip for python on Mac OS Sierra
      Language Bindings • pyqt4 • • Devineurons

      4
      0
      Votes
      4
      Posts
      3380
      Views

      SGaist

      The module name is PyQt4 case sensitive.

    • B

      Unsolved QProcess event queue
      Language Bindings • python pyqt4 • • borisruna

      10
      0
      Votes
      10
      Posts
      3743
      Views

      B

      @SGaist said in QProcess event queue:

      Hi,

      Unless you put that in a loop, readLine will only read one line each time. One thing you can do is split the content of trace_output on the carriage return and parse each element after that.

      Sry didn't get notified about your reply. I have managed to solve this using subprocess module on a different thread. Would like to see it working with QProcess too though. Did you find any bug on my code?

    • P

      Unsolved PyQt4 graphics : contextMenu does not appear if graphics item is not movable...
      Language Bindings • pyqt4 graphics context menu • • ppuiseux

      1
      0
      Votes
      1
      Posts
      658
      Views

      No one has replied

    • curiosport

      Unsolved How to compile a project of qt-app.org? for install a widget in QtDesigner.
      General and Desktop • qtdesigner python pyqt4 cpp compile • • curiosport

      1
      0
      Votes
      1
      Posts
      685
      Views

      No one has replied

    • curiosport

      Solved How to create this widget with PySide or QtDesigner?
      General and Desktop • pyside pyqt qtdesigner pyqt4 python • • curiosport

      8
      0
      Votes
      8
      Posts
      2795
      Views

      mrjj

      @curiosport
      this is cpp files so you need cpp compiler.
      Then you would open the qiron.pro and compile it all.
      It would produce some DLLS in the plugin folder.
      Those should be copied to the plugin folder in QtCreator.

      Note: the source is for older Qt 4.6 so it might have compile
      errors u need to fix if using newer Qt.

    • Y

      Unsolved Adding signal on table items
      General and Desktop • qt4.8 qtablewidget pyqt4 • • yvesm

      3
      0
      Votes
      3
      Posts
      1742
      Views

      Y

      Thanx bsomervi. Good point. I could go with an even more general signal (like itemClicked) but finding the signal that will more rightly pick only a checkbox checked/unchecked action would be optimal.

    • S

      Unsolved QListWidgetItem is not being selected
      General and Desktop • qlistwidgetitem qlistwidget pyqt4 list • • Streakflash

      2
      0
      Votes
      2
      Posts
      1110
      Views

      SGaist

      Hi,

      Why not use the parameters of currentItemChanged to get the current item ?

    • J

      Unsolved QFileSystemModel setRootPath segfault
      General and Desktop • pyqt4 pyqt linux • • jdwiegman

      3
      0
      Votes
      3
      Posts
      1177
      Views

      J

      The crash dump only tells me that its a shared memory error, I can't seem to get more detail than that.

      It seems related to the system clock time (my application lets users change the time), if it has changed that is when the crashing is occuring.

    • K

      Embedding custom QWidgets inside a QTextEdit
      General and Desktop • qtextedit qt4 pyqt4 • • kfkf

      8
      0
      Votes
      8
      Posts
      2766
      Views

      SGaist

      One alternative might be to implement a QAbstractTextDocumentLayout

    • N

      Compile PyQt program into a stadarlone exacutable for Linux
      General and Desktop • pyqt4 deploy standalone exam • • Nick96

      1
      0
      Votes
      1
      Posts
      655
      Views

      No one has replied

    • T

      Problem with program that performs multiple processes.
      General and Desktop • python python3 pyqt pyqt4 pyuic thread threading threads multithreads gui qtdesigner • • Tas-sos

      3
      0
      Votes
      3
      Posts
      2931
      Views

      T

      How can i create my signal for text edit with python3 ?
      With as many ways i tried, but I did not succeed .. :(