Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for jrh
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: What do the number entries mean in the sympy poly.diff(...) tuple syntax? It appears that the tuple syntax works like this: `(variable index, order of derivative)` Where something like: ``` base = poly(xy2 + x, x, y) derivmysterious5 = base.diff((0,1)) print('derivmysterious5 is', derivmysterious5) ``` Means: "Take first derivative of `base` with respect ... (more) |
— | over 3 years ago |
Question | — |
What do the number entries mean in the sympy poly.diff(...) tuple syntax? I am looking to take a partial derivative of a sympy polynomial with respect to a symbol in the polynomial. In the sympy documentation for poly.diff(...) it gives sample code like this: ``` from sympy import Poly from sympy.abc import x, y Poly(xy2 + x, x, y).diff((0, 0), (1, 1)) ``` T... (more) |
— | over 3 years ago |
Answer | — |
A: connect with SLOT/SIGNAL: QPushButton clicked signal not received by main window Qt's `SLOT` macro is very specific in what it accepts. When specifying a slot in the `connect` function, it's required to put parenthesis, so the correct code would be: ``` connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(pushButtonClicked())); ``` With this syntax, the button `click... (more) |
— | over 3 years ago |
Question | — |
connect with SLOT/SIGNAL: QPushButton clicked signal not received by main window I added a `QPushButton` to my ui file named `pushButton`, and manually connected it using `connect`. - There are no errors or warnings emitted at any point in the compilation stage - The button does show up on the UI. - When I click on the button, nothing happens. MainWindow.cpp: ``` #in... (more) |
— | over 3 years ago |