Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qt for python
    Log in to post
    • All categories
    • D

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

      6
      0
      Votes
      6
      Posts
      42
      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.

    • E

      Unsolved QListWidget setItemWidget spacing on right
      Qt for Python • qt for python python pyside • • emreeeeeeeeeeeee

      4
      0
      Votes
      4
      Posts
      80
      Views

      SGaist

      AFAIK, it should be doable.

    • T

      Unsolved Is it possible to embed QT Designer within PySide6 app ?
      Qt for Python • qt for python pyside • • TKP77

      2
      0
      Votes
      2
      Posts
      65
      Views

      SGaist

      Hi and welcome to devnet,

      You might want to take inspiration from how Qt Creator does it.

      Note that you will likely have to build Python bindings for that yourself.

    • O

      Unsolved pyside6-designer custom widget already deleted issue
      Qt for Python • qt for python • • Okko Willeboordse

      1
      0
      Votes
      1
      Posts
      70
      Views

      No one has replied

    • K

      Solved QtCore.pyqtsignal is a typoed type hint?
      Qt for Python • qt for python python • • kairi

      6
      0
      Votes
      6
      Posts
      110
      Views

      K

      @JonB
      Thanks for the response!
      Okay, I will leave the thread as is :)

    • F

      Unsolved PySide6 layout issue
      Qt for Python • qt for python pyside python • • fackym

      3
      0
      Votes
      3
      Posts
      96
      Views

      SGaist

      Hi and welcome to devnet,

      You might be interested in the Flow Layout example.

    • D

      Solved How to cast c++ quintptr to QWidget in PySide2?
      Qt for Python • pyside2 qt for python • • Dariusz

      2
      0
      Votes
      2
      Posts
      70
      Views

      D

      Meh forgot about shiboken2 sigh
      shiboken2.wrapInstance(widget_pointer, QWidget)
      To the rescue!

    • A

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

      7
      0
      Votes
      7
      Posts
      118
      Views

      A

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

    • T

      Unsolved Pyside6 does not render QOpenGLWidget window when using keypress and updating array using glBufferSubData
      Qt for Python • qt for python • • Tribble

      3
      0
      Votes
      3
      Posts
      71
      Views

      T

      @SGaist Thank you. You are actually quite correct on this one. It seems to be missing the context initialisation and swapbuffer command should work after that.

    • R

      Unsolved Trigger method when number of lines of QTextBlock changed in QPlainTextEdit
      Qt for Python • qt for python • • Regex

      2
      0
      Votes
      2
      Posts
      66
      Views

      JonB

      @Regex
      While you wait for a better answer.

      I don't think you will get a signal from Qt for the increased number of visible lines. You will get one for any change, and I would guess you then have to do the work to calculate if that has changed the number of lines.

      Meanwhile you might Google for qplaintextedit line numbers. There are a few links which you might want to read through, e.g. https://stackoverflow.com/questions/2443358/how-to-add-lines-numbers-to-qtextedit or https://nachtimwald.com/2009/08/19/better-qplaintextedit-with-line-numbers/

    • R

      Solved Trigger signal after text has changed in QPlainTextEdit
      Qt for Python • qt for python • • Regex

      3
      0
      Votes
      3
      Posts
      80
      Views

      R

      Hello @JonB
      It works correctly with QTextDocument::contentsChanged()
      Thanks

    • M

      Unsolved QTableWidget setCellWidget Input crash bug!!
      Qt for Python • qt for python • • minor code

      2
      0
      Votes
      2
      Posts
      76
      Views

      SGaist

      Hi,

      Do you have the same issue with PySide6 ?

    • A

      Unsolved AttributeError: 'bool' object has no attribute 'browsefiles'
      Qt for Python • qt for python python • • Adityamity

      2
      0
      Votes
      2
      Posts
      267
      Views

      JonB

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

    • G

      Solved Occasionally get "QThread: Destroyed while thread is still running" when running multiple threads
      Qt for Python • qt for python • • gunraidan

      25
      0
      Votes
      25
      Posts
      407
      Views

      JonB

      @gunraidan
      It won't be about self (that bit is fine), it will be about when you try to print the value.

      Firstly, you have print(self.d_name) inside a method get_all(). But since your code never actually calls get_all()....

      Even if you did call it. site_request()calls self.nam.get(req). But QNetworkAccessManager.get() only initiates a GET request. It does not wait for it to complete and return. Only when finished signal is received and handle_request() is called does self.d_name = ... get executed. That happens asynchronously at a later time. So trying to access it immediately after calling site_request() is too early.

    • C

      Unsolved PySide 6.4 and QML: Property-Binding doesn't work as expected
      Qt for Python • qt for python • • ChristianL

      1
      0
      Votes
      1
      Posts
      109
      Views

      No one has replied

    • C

      Unsolved QT Widget To Show RTSP Video Stream
      Qt for Python • qt for python pyside • • clandestine

      3
      0
      Votes
      3
      Posts
      108
      Views

      C

      @jsulm Thank you. I gotta take a look at it.

    • D

      Unsolved complexity handle by PYQt5
      Qt for Python • qt for python python • • daisyvish

      1
      0
      Votes
      1
      Posts
      101
      Views

      No one has replied

    • R

      Unsolved How to properly show a window after clicking on a notification?
      Qt for Python • qt for python • • RoinujNosde

      4
      0
      Votes
      4
      Posts
      120
      Views

      SGaist

      I wonder if the two event loops are not walking on each other's foot.

      That said, since you want to use DBus, why not use Qt's QtDBus module to ensure proper integration in your application ?

    • Bored Nerd

      Unsolved PyQt5 - Switch between two QMainWindow with stacked widget
      Qt for Python • qt for python • • Bored Nerd

      10
      0
      Votes
      10
      Posts
      471
      Views

      JonB

      @Bored-Nerd
      Yes it is possible to have a QStackedWidget which alternates between two QMainWindows if that is what you want.

      You would have a main program, with a single QApplicaton, and with the QStackedWidget. There you should create the two separate QMainWindow instances and put them both into the QStackedWidget. Only the first will be shown at this point. Upon pressing a button in one of these, the stacked widget should change its index to show the other QMainWindow instance. Then your issue is that the button press signal in either QMainWindow should have its slot where the QStackedWidget is so that can change the active index for which main window to show.

    • J

      Unsolved Lags on window resize with PySide6 and QML (linux)
      Qt for Python • pyside qt for python • • jiku

      1
      0
      Votes
      1
      Posts
      148
      Views

      No one has replied