slot Questions
2
Solved
Let's say I want to define two classes classes, Sentence and Word. Each word object has a character string and a part of speech (pos). Each sentence contains some number of words and has an additio...
2
Solved
After my post here : Associate signal and slot to a qcheckbox create dynamically I need to associate :
• The signal clicked() when I click on a qCheckBox to my function cliqueCheckBox(QTableWidget...
Unfledged asked 17/6, 2014 at 9:37
3
Solved
I've got a very specific problem so I'm going to try to be as clear as possible.
I've got a QTabWidget which contains QTableWidget, every line of my QTableWidget is create dynamically by reading a...
4
Solved
How to pass a function "pointer" from JavaScript to a slot?
in JavaScript:
function f1()
{
alert("f1");
}
qtclass.submit(f1);
and in Qt:
public slots:
void submit(void * ptr)
{
(void)ptr;...
Indemonstrable asked 12/2, 2011 at 1:16
1
I'm trying to build a little app that loads several webpages in an QTabWidget. This already works well. Now I want the tabs / QWebViews to be reloaded when the current Tab is changed.
I think that...
Lengel asked 4/2, 2014 at 20:17
3
Solved
For documenting classes with roxygen(2), specifying a title and description/details appears to be the same as for functions, methods, data, etc. However, slots and inheritance are their own sort of...
2
Solved
I have 2 classes. Class A and Class B. I am emitting a signal from class A which I want the B to recieve.
I am doing it following way
In Listener File
Header File:
Class Listener:public DDSDat...
1
Solved
My original code passed a QStringList from the signal to the slot and then returned a QList .
Everything worked fine but I needed to change both the QStringList and QList into 2 different subclasse...
3
Solved
I would like to generically and temporarily block the signals between two QObjects without modifying the other signals/slots behavior, and without knowing their contexts.
Something like QObject::b...
2
Solved
Qt documentation states that it is possible to connect two signals together:
It is even possible to connect a signal directly to another signal.
I tried:
connect(x, SIGNAL(S()), y, SIGNAL(fu...
Watterson asked 21/3, 2012 at 3:25
1
Solved
The new Qt5 signals and slots syntax allows us to connect signals not only to slots, but also to plain old functions and functors/lambdas. Now the problem is, that lambdas are essentialy objects wi...
1
Solved
I've got two classes; one for my window and one for my controlling object
class window(baseClass, testForm):
scanStarted = QtCore.pyqtSignal(str)
def __init__(self,parent=None):
super(window, s...
1
Solved
I would like to know if the function do_something() is treated as a new thread, when I click on my_button.
connect(my_button, SIGNAL(clicked), this, SLOT(do_something));
Manhattan asked 20/8, 2012 at 5:53
1
Solved
I've "Core" object that handles QMainWindow.
Core.h code
class Core : public QObject
{
Q_OBJECT
public:
explicit Core(QObject *parent = 0);
~Core();
void appInit();
int getAuth();
public sl...
Communalism asked 24/11, 2011 at 8:15
3
Solved
In my class definition, I want to initialize one slot based on the value of another slot. Here is the sort of thing I would like to do:
(defclass my-class ()
((slot-1 :accessor my-class-slot-1 :i...
Periapt asked 1/9, 2010 at 16:37
© 2022 - 2024 — McMap. All rights reserved.