Skip to content

Language Bindings

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

    From a user's point of view:

    In this case, word pairs with the same meaning:

    asynch/synch popup/exec non-modal/modal

    Modal: when a thing ( dialog or in this case a menu) causes the GUI to enter a state where the user can do nothing else (other modes) in that app until the thing is finished.

    With some variations: if the user clicks outside a modal menu, it is finished and returns a null result. Whereas in a modal dialog, the user must click in a Cancel button to finish the dialog, and can't click elsewhere in your app with any effect.

    And even when an app is in a modal state, the user might be able to click in the windows of other apps (usually, it depends on the window manager, etc.)

    From a programmer's point of view, your app event loop doesn't receive events when a modal dialog or menu is displayed. (Qt does receive and handle events, but doesn't dispatch them to your event loop.)

  • QtJambi and sqldrivers

    1
    0 Votes
    1 Posts
    870 Views
    No one has replied
  • [Solved] Application icon in PySide GUI

    3
    0 Votes
    3 Posts
    8k Views
    P

    I found another solution that doesn't require having the icon in both PNG and ICO formats. As mentioned in the other answer, qico4.dll is required to read the .ico files. Also, this file needs to be placed in a directory named imageformats that is a subdirectory of your app directory. The folder structure should look like this:

    @
    My Gui

    -- MyGui.exe -- QtCore4.dll -- QtGui4.dll -- ... -- imageformats -- qico4.dll

    @

    qico4.dll is installed with your PySide distribution. If you pick typical installation options the file should be under

    @
    os.path.join(os.path.dirname(sys.executable),
    'Lib',
    'site-packages',
    'PySide',
    'plugins',
    'imageformats' )
    @

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

    Did you solve your problem?

  • QRegExp

    Locked
    3
    0 Votes
    3 Posts
    999 Views
    K

    [quote author="SGaist" date="1370552782"]"Duplicate of":http://qt-project.org/forums/viewthread/28572/[/quote]
    closing

  • Pyside-rcc command line compression question

    2
    0 Votes
    2 Posts
    3k Views
    A

    Try the threshold flag. The argument is given as a percentage (0-100).

    I dug it up here:

    http://qt.gitorious.org/pyside/pyside-tools/blobs/master/pyrcc/rcc.cpp#line124

    The compression itself is done using the qCompress method of the QByteArray class, which is documented here:

    http://qt-project.org/doc/qt-4.8/qbytearray.html#qCompress

  • 0 Votes
    2 Posts
    3k Views
    M

    Wow, I posted the same question today. Any succes?

    http://qt-project.org/forums/viewthread/28360/

  • Can I export my Qt GUI to QtJambi ?

    1
    0 Votes
    1 Posts
    874 Views
    No one has replied
  • 0 Votes
    2 Posts
    4k Views
    L

    "QSqlQuery::addBindValue":http://qt-project.org/doc/qt-5.0/qtsql/qsqlquery.html#addBindValue expects a valid Qt data type such as QString but you are providing STD string instead.

  • How to create a simple class in QT ?

    13
    0 Votes
    13 Posts
    5k Views
    A

    It would be appropriate for you to create another forum thread for this different issue. This way, the moderators will live longer and anyone with similar issues might find such a thread easier. I am not sure about the scope of this forums, though - the question you ask is isolated and has no ties to Qt.

    Basically, if you want to execute a SELECT query for a given value, you compare this value with the name of the table's column:
    @SELECT * FROM evoting WHERE v_id = found_id;@

    Please also do use "@ for code wrapping":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 whenever you want to paste a block of code into your post. :-)

  • QNetworkReply doesn't abort/close

    2
    0 Votes
    2 Posts
    2k Views
    J

    what about sleep do you process when you sleep ?
    try :
    @while reply.isReadable () :

    ans = ans + reply.read()

    print (ans)@

  • 0 Votes
    1 Posts
    3k Views
    No one has replied
  • QUiLoader not loading layouts from .ui file

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • I need some help with Jambi

    2
    0 Votes
    2 Posts
    1k Views
    A

    This normally happens when the wrong library is loaded. Include only the library for the platformyou use.

  • QtWebkit bridge in Qt Jambi

    2
    0 Votes
    2 Posts
    1k Views
    A

    Yes, it's possible to use qt webkit with jambi.

    You can use something like:

    QWebView expendiosWebView = new QWebView();
    expendiosWebView.setUrl(new QUrl("classpath:com/nettrace/lotecarng/gui/resources/html/map2.html"));

  • 0 Votes
    3 Posts
    3k Views
    SGaistS

    Hi,

    AFAIK, when you use the constructor variant with the buffer, you must ensure the buffer exists through all the lifetime of the QImage. Check the QImage documentation.

  • [Solved] QTableView reflected in every tab PyQt

    12
    0 Votes
    12 Posts
    7k Views
    D

    Hey, I am sorry to bother you, but I tried to give everyone a parent, and I think they do?
    (from my src code)
    @def init(self, parent=None , **kwargs):
    QWidget.init(self, parent, **kwargs)
    layout = QVBoxLayout(self)
    self.lv = snifferView.view()
    layout.addWidget(self.lv)
    self.setLayout(layout)

    headers = ['No','Source','Destination','Protocol'] self.model = snifferModel.tableModel(headers=headers) self.lv.tableView.setModel(self.model) self.resultList = [] self.hexDump = '' self.count = 0 self.lv.tableView.selectionModel().selectionChanged.connect(self.rowSelected) @
  • PyQt4: DirectX window

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    3 Posts
    4k Views
    S

    Thank you for you question, I found that you used the wrong column index in your code.

    I try the code below is worked.

    parent= QStandardItem("parent1")
    model.setItem(parent)
    for index in range(10):
    myobj=MyClass()
    child= QStandardItem(myobj.name)
    parent.setChild(index,0,myobj)

    child= QStandardItem(myobj.lName) parent.setChild(index,1,myobj)