Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Qt Development
    3. Language Bindings

    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • N

      PySide QThread.terminate() causing fatal python error
      • nullstellensatz

      5
      0
      Votes
      5
      Posts
      4835
      Views

      JKSH

      [quote author="nullstellensatz" date="1421370989"]The operation that is taking too long is a library function call that I have little control over.[/quote]That's unfortunate. Any chance of getting the library's author to provide a better API?

      [quote]I am looking to understand why I cannot terminate() QThreads in PySide.[/quote]Not sure (I don't have Python experience), but judging from your error message, I'm guessing it's related to how PySide handles the "Global Interpreter Lock":https://docs.python.org/2/c-api/init.html#thread-state-and-the-global-interpreter-lock

    • C

      TableWidget.insertRow(1) fails inside connect() call
      • caver456

      3
      0
      Votes
      3
      Posts
      1490
      Views

      SGaist

      Hi and welcome to devnet,

      It's rather that you are giving the slot a parameter. You also can't connect a parameterless signal to a slot with parameter.

      Anyway, for your purpose the use of a lambda is perfectly fine

    • C

      [SOLVED] String Encoding problem between Python, XHTML, Javascript
      • cefn

      4
      0
      Votes
      4
      Posts
      2474
      Views

      C

      Now even better. I've found that calling toUtf8() turns the unicode array implicit in the QString passed by the original @pyqtSlot decorator into something which can be written to file without messing about, and which preserves special characters. I've no idea why no combination of python str() and bytearray() encode and decode operations could seem to achieve this, but it's done now...
      https://github.com/cefn/firmware-codesign-readinglog/blob/8c315b85c14f83539313bace54453565ba8aa9f6/ui/test/test.py

    • C

      [SOLVED] Signals/Slots not properly bound to an event dispatching loop - Newbie silliness, can you help?
      • cefn

      2
      0
      Votes
      2
      Posts
      994
      Views

      C

      This was the result of two interlocking features of the tools I was using.

      First of all PDB breakpoints seem to be locked to the thread they were inserted from. Consequently, because the QT Eventing thread was the one triggering the update, PDB wasn't able to detect the invocation.

      Secondly, QXMLQuery seems to have inbuilt caching, meaning that changes to focus and query files had no impact on the second invocation of evaluateToString()

      Between these two features, it meant that I was unaware that update WAS in fact being called. After building a minimal test case, I was able to track down the problems.

    • R

      User interface freezed when using concurrent.futures.ThreadPoolExecutor
      • redstoneleo

      1
      0
      Votes
      1
      Posts
      647
      Views

      No one has replied

    • A

      PySide.QtSql: Since QVariant does not esists, how can a null value be used as argument to QSqlQuery.bindValue() ??
      • abdido

      7
      0
      Votes
      7
      Posts
      4919
      Views

      JKSH

      Python's None type represents null values.

    • K

      PySide.QtOpenGL not found
      • kevinbrown

      1
      0
      Votes
      1
      Posts
      1680
      Views

      No one has replied

    • S

      Pyqt: AttributeError: 'Object' has not attribute 'someFunction'
      • s03r3n

      2
      0
      Votes
      2
      Posts
      4634
      Views

      SGaist

      Hi and welcome to devnet,

      Might be a silly question but did you indent your source correctly ? The code you posted shows that setA is not part of Window since it's at the same level as e.g. main

    • H

      Use a QFileDialog as Widget
      • hizoka

      3
      0
      Votes
      3
      Posts
      1413
      Views

      SGaist

      No it doesn't lack, you have all the building blocks to do it yourself. Have a look at QTreeView, QFileSystemModel etc.

    • Y

      Implementing QComboBox in a QTreeView item
      • ynvb

      1
      0
      Votes
      1
      Posts
      968
      Views

      No one has replied

    • H

      Pyqt4 - Select a region and Select a window
      • hizoka

      1
      0
      Votes
      1
      Posts
      639
      Views

      No one has replied

    • M

      Very newbie question how to __init__ classes the right way
      • MSDavid

      1
      0
      Votes
      1
      Posts
      635
      Views

      No one has replied

    • D

      Pyside + Mysql = driver not loaded
      • dviguhix

      8
      0
      Votes
      8
      Posts
      8245
      Views

      Q

      Seems PySide only supports sqlite so far:
      http://stackoverflow.com/a/15944463/1886357

      Not sure where the documentation for this is.

    • D

      PyQt5 Mac Cocoa
      • dionysiusmarquis

      1
      0
      Votes
      1
      Posts
      894
      Views

      No one has replied

    • A

      PySide / SQLite3 - need duplicate code to parse query.first() then while query.next() ???
      • Alabaster

      2
      0
      Votes
      2
      Posts
      947
      Views

      C

      Hi,
      you do not need the lines
      @
      query.first()
      codeToParseRecord()
      @

      simply start with query.exec():

      @
      query = QSqlQuery("SELECT Blahblah, Blippity, Bloop FROM Floozle ORDER BY Bloop")

      if (query.exec()) {
      while query.next():
      codeToParseRecord()
      }
      @

    • D

      [Solved](PySide) in QtCore.Property(unicode, name, notify=changed), error with unicode
      • dmcr

      3
      0
      Votes
      3
      Posts
      1155
      Views

      D

      It works (an helps :) ), thank uou.

    • P

      Problem with starting Lua with QtCreator
      • Piwniczne

      2
      0
      Votes
      2
      Posts
      1084
      Views

      SGaist

      Hi,

      Since the symbol is not found you are missing a library in your LIBS line

    • Z

      Problem with OpenCV3.0 and Qt creator
      • zorro3465

      6
      0
      Votes
      6
      Posts
      2322
      Views

      SGaist

      In the case of a standard use of your computer, you'll probably already have several copies of Qt depending on what application you installed.

      While developing the problem doesn't occur if you use e.g. Qt Creator since it modifies the environment as needed for your application to run.

    • K

      C++ library python binding generation with Shiboken
      • Kepz

      6
      0
      Votes
      6
      Posts
      2140
      Views

      SGaist

      You can try the pyside IRC channel or mailing list :)

    • A

      Use delegates to map button's checked-state to a model's boolean?
      • Alabaster

      3
      0
      Votes
      3
      Posts
      2012
      Views

      A

      Thanks for the response -- I'll have to do some translating to PySideify it but I think that's doable. I'll post back if I'm still confused.

      Thanks!