Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
866 Topics 3.4k Posts
  • How to submit issue/bug to PySide project?

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    Fredrik AverpilF
    @tekojo Thanks, it worked fine when selecting "Bug" :)
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    53 Views
  • Printing QWidget window using python

    Solved python
    22
    0 Votes
    22 Posts
    13k Views
    mrjjM
    @khakhil hehe super :) Good work. Im complete python noob but syntax is somewhat the same :)
  • wrap QApplication::exec() into a function or class

    Unsolved python
    12
    0 Votes
    12 Posts
    6k Views
    R
    @jazzycamel Thanks for reply! 1 . Sorry , I’ve forgot to tell you that you should have Flash Player installed in /Library/Internet Plug-Ins/PepperFlashPlayer/PepperFlashPlayer.plugin On OS X according to the doc before you test the program with my new URLs. 2 . If the URL I want wasn't found , then I agree with your solution QWebEnginePage(loadFinished=qApp.quit) to quit the event loop so the function can return . 3. I am also considering using Chrome extension to solve the problem .
  • Module QtQuick is not installed (PyQt5)

    Unsolved
    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • Put button and icon inside QLineEdit

    Unsolved python
    3
    0 Votes
    3 Posts
    6k Views
    raven-worxR
    @voltron simply put the QSvgWidget and the line edit widget into a QHBoxLayout and set the content-margins and spacing to 0. Then put this layout into a plain container widget.
  • Qt and Objective-C

    Unsolved
    10
    0 Votes
    10 Posts
    13k Views
    S
    See this website and you know how to do it https://el-tramo.be/blog/mixing-cocoa-and-qt/
  • PyQt5 APP Crash at start up on laptop that's not mine...

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    enjoysmathE
    @enjoysmath No, same issue. Re-installing python with 3.4, then 3.5, then, ... and so on...
  • 0 Votes
    1 Posts
    912 Views
    No one has replied
  • QtCore.Qt.FramelessWindowHint not working on my Windows machine ...

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    GofferG
    Okay, apparently I have to set Frameless BEFORE showing the window ...
  • PyQt5.5 vs QML vs C++ QML Plugin under Windows (7 or 10) path problems

    Unsolved
    1
    0 Votes
    1 Posts
    894 Views
    No one has replied
  • QtLua and Qt5.6

    qtlua script
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, Are you using your distribution Qt packages ?
  • PyQt5 + Qt 5.6 proper way to bundle for site-packages redistribution

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    No they are not, PyQt only has two licenses: GPLv3 and commercial. For more information, see their License FAQ You still need to abide by the license rules regarding your static Qt build. The fact that it's "indirectly loaded" doesn't play any role here. Your module uses PyQt which use Qt.
  • dynamicly access ui-elements

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    AdmiralCrunchA
    Thank you :) it took me a while, until I finally got it working :) int i = 0; foreach(const QString &str, patternSlices) { i++; QString labelName = QString("step_%1").arg(i); QLabel* label = findChild<QLabel*>(labelName); if(label) { label->setPixmap(otherStep.scaled(100,100, Qt::KeepAspectRatio)); } }
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • python text editor widget for Qt

    Moved Solved python
    3
    0 Votes
    3 Posts
    2k Views
    GofferG
    @alex_malyu Oh wow ! that's amazing ! I will take a look today. Thank you very much !
  • Drag&Drop QPushButton between QFrame and QGraphicsView

    Moved Unsolved drag and drop qgraphics python
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Stylesheets and sizeFromContents

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    E
    I'm not sure if this is going to fix your problem, but I think things like min-width, max-width, etc are supposed to end with px such as 65px; and 200px;. Also, you might want to post this in the General Desktop category. You posted this in Language Bindings which gets a lot less views than General Desktop. But you aren't using PyQt, PySide, etc.
  • QAbstractItemModel.parent index.internalPointer returning wrong object

    Unsolved
    1
    0 Votes
    1 Posts
    645 Views
    No one has replied
  • 0 Votes
    5 Posts
    4k Views
    L
    Here is my code. I fill my QTableWidget by taking all the values of the attributes of each element of my model (a temperatureStep). The first column should assume the values "Hold" or "Heat up", this is the reason why I use a QComboBox (extendend, in order to recognise which temperatureStep I have to modify when the value of the QComboBox changes). private void showTemperatureCurve() { List<TemperatureStep> temperatureCurve = MainWindowModel.getOven().getTemperatureCurve(); ui.twTemperatureCurve.blockSignals(true); int j = 0; ui.twTemperatureCurve.setRowCount(0); for (TemperatureStep temperatureStep : temperatureCurve) { ui.twTemperatureCurve.setRowCount(ui.twTemperatureCurve.rowCount() + 1); List<String> attributes = new ArrayList<>(); List<Object> values = new ArrayList<>(); for (PropertyDescriptor propertyDescriptor : Introspector.getBeanInfo(temperatureStep.getClass(), Object.class).getPropertyDescriptors()) { attributes.add(propertyDescriptor.getDisplayName()); //System.out.println(propertyDescriptor.getReadMethod()); } for (String attribute : attributes) { Object value = BeanUtils.getProperty(temperatureStep, attribute); values.add(value); //System.out.println(attribute + " " + value.toString()); } List<String> headerLabelsTemperatureCurveNU = Arrays.asList("stepType", "endTemperature", "maxSlope", "minTime"); for (int i = 0; i < attributes.size(); i++) { ui.twTemperatureCurve.setItem(j, headerLabelsTemperatureCurveNU.indexOf(attributes.get(i)), new QTableWidgetItem(values.get(i).toString())); } j += 1; } ui.twTemperatureCurve.blockSignals(false); for (int i = 0; i < temperatureCurve.size(); i++) { QComboBoxExtended qcbTemperatureStep = new QComboBoxExtended(); qcbTemperatureStep.setIndex(i); String currentTemperatureStepType = temperatureCurve.get(i).getStepType(); qcbTemperatureStep.addItem(currentTemperatureStepType); if (currentTemperatureStepType.equals("Heat up")) { qcbTemperatureStep.addItem("Hold"); } else { qcbTemperatureStep.addItem("Heat up"); } ui.twTemperatureCurve.setCellWidget(i, 0, qcbTemperatureStep); qcbTemperatureStep.currentIndexChanged.connect(this, "actionQcbTemperatureStep_itemChanged()"); } ui.twTemperatureCurve.resizeColumnsToContents(); } public static int qcbTemperatureStepClickedIndex; private void actionQcbTemperatureStep_itemChanged() { TemperatureStep temperatureStep = MainWindowModel.getOven().getTemperatureCurve().get(qcbTemperatureStepClickedIndex); if (temperatureStep.getStepType().equals("Hold")) { temperatureStep.setStepType("Heat up"); } else { temperatureStep.setStepType("Hold"); } showTemperatureCurve(); }