Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
860 Topics 3.4k Posts
  • 0 Votes
    2 Posts
    2k Views
    EddyE

    Please dont make duplicate posts. I will close this one

  • 0 Votes
    9 Posts
    8k Views
    A

    Another question regarding the indentation : )
    I have one child that has a QWidgets set for all the columns in a row (each row has it's own QWIdget)... It has some gradient in the background. And then the indentation is just a solid color depending on what row it gets to.. Is there a way that I can set QWidget to cover that indentation? (I tryed simpliest: QWidget.move(-30, 0) but that didn't work :) ) Do I have to make a Delegate or can I avoid that?

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    Y

    Oh, sorry, the wrong email AD ;(

    Email yurenjimi@gmail.com

    [quote author="wwolff" date="1390431009"]I try send it , but your e-mail is invalid.[/quote]

  • Hide and show group at runtime

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS

    Then you should make a separate widget for each group, it will simplify the handling.

    For the undo part, have a look at QUndoStack

    For the layout part, it seems you will do it vertically, so you can use a QVBoxLayout

    Hope it helps

  • 0 Votes
    6 Posts
    4k Views
    SGaistS

    removeRow to remove a row of text.

    And to save take the other way of loading, go trough each row of your model and write its content to a QFile

  • QComboBox User select Signal

    2
    0 Votes
    2 Posts
    1k Views
    C

    Create a QComboBox derived class and reimplement "mousePressEvent":http://qt-project.org/doc/qt-5.0/qtwidgets/qwidget.html#mousePressEvent

  • 0 Votes
    4 Posts
    2k Views
    S

    Thank you very much for these they look like they will do the job nicely.

  • Pyside Dynamic Object Management of QML

    1
    0 Votes
    1 Posts
    857 Views
    No one has replied
  • Pyside createObject() Bug

    1
    0 Votes
    1 Posts
    911 Views
    No one has replied
  • [SOLVED] Using Prolog in my c++ app

    5
    0 Votes
    5 Posts
    2k Views
    SGaistS

    You're welcome !

    If this replies to your question, please, update the thread title prepending [solved] so other forum users may know a solution has been found :)

  • Qt GUI with OpenCV C API

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi and welcome to devnet,

    Yes it is, however depending on your needs, OpenCV provides highgui which can be build to use Qt.

  • Writing to/reading from disk via QDataStream()

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS

    Very good suggestion, less dependencies is better.

    QComboBox doesn't have a setData function, did you mean setItemData ? When using QComboBox you don't have to handle the item themselves only their content

  • Is bindVariable() in the XML classes two-way?

    3
    0 Votes
    3 Posts
    1k Views
    N

    Oh I'm so sorry, my apologies

  • 0 Votes
    2 Posts
    3k Views
    T

    I'm looking at C++ Reference, so I may be wrong about this but in Qt C++ addItem / setItemData declaration shows "QVariant". maybe you might want to use row index or "Item n" for the ItemData

  • 0 Votes
    1 Posts
    698 Views
    No one has replied
  • Set waitcursor on qtextedit

    5
    0 Votes
    5 Posts
    3k Views
    B

    Switch to QProcess, which is what I intended to use from the start, and had some success.

    I can now set the wait cursor for the textWidget only.

    @def run_process(self):
    self.textEdit.viewport().setCursor(Qt.WaitCursor)
    self.textEdit.clear()
    self.textEdit.append("Standby, this proc takes time.")
    self.runner = QProcess(self)
    self.runner.readyReadStandardOutput.connect(self.GetStd)
    self.runner.start('ext_proc.sh')

    def GetStd(self)
    StdOut = str(self.runner.readAllStandardOutput())
    self.textEdit.append(StdOut)
    self.textEdit.viewport().setCursor(Qt.IBeamCursor@

    The problem now is that the Ibeam cursor is reset upon the first input of standard out. However, ext_proc.sh is still running.

    Tried some things with waitForFinished() but it froze the interface.

    Is there a way to keep the wait cursor until the external process is complete without locking the GUI?

    Thanks in advance,
    Cheers,

  • 0 Votes
    2 Posts
    3k Views
    T

    After working with some examples found on the web, my paint function looks like this now. My understanding the below code should render - but respect the stylesheet.
    @
    def paint(self, painter, option, index):
    super(MyStyleDelegate, self).paint(painter, option, index)

    modelIndex = index model = index.model() if isinstance(model, QtGui.QAbstractProxyModel): modelIndex = model.mapToSource(index) options = QtGui.QStyleOptionViewItemV4(option) self.initStyleOption(options, index) style = options.widget.style() if options.widget else QtGui.QApplication.style() style.drawControl(style.CE_ItemViewItem, options, painter, options.widget) QtGui.QStyledItemDelegate.paint(self, painter, option, modelIndex)

    @

    Some thing of interest - my options.widget is always None. Would that have the the effect that I'm seeing?

  • Datachanged signal does not work

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Run Qt Jambi From Eclipse

    7
    0 Votes
    7 Posts
    9k Views
    Q

    Windows7 中文