I am using Qt Builder to create a simple window.
I used the menu editor to add a menu.
Now, I figured out how to connect one of the menu items to the close() method of the main window. My problem is how to add a slot to the main window. Here is what I have:
private slots:
void OnAbout();
However, I can't get this method to show ...
Here is my problem:
I send this message on my DBus session bus :
signal sender=:1.3 -> dest=(null destination) path=/; interface=a.a.a; member=a
here is my code :
dbus_interface.h :
#ifndef DBUS_INTERFACE_H
#define DBUS_INTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QString>
#include <QtDBus/QtDBus>
class dbus_interface :...
I'm new to Symfony. The two concepts Partial and Slot seem the same for me. Both of these two features replace placeholders in template with actual markup.
When should I use Partial and when should I use Slot?
...
can i connect two objects that are in different classes ?
lets say i want button1's clicked() signal to clear line2
class A(QGroupBox):
def __init__(self, parent=None):
super(A, self).__init__(parent)
self.button1= QPushButton('bt1')
self.button1.show()
class B(QGroupBox):
def __init__(self, parent=Non...
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 :initarg slot-1)
(slot-2 :accessor my-class-slot-2 :initform (list slot-1))))
However this doesn't compile:
1 compiler notes:
Unknown l...
Hi All
I am new to C++ Qt programming.
Having difficulty with hooking up buttons to signals and events. Not sure what i'm doing wrong, please see code below.
Main.cpp
#include <QtGui/QApplication>
#include "MainWidget.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWidget mainWidget;
mainWidget.s...