QT - QPushButton in Designer Form Class Widget with MainWIndow Parent can't be clickedHow to call a parent class function from derived class function?Qt matching signal with custom slotlibvlc-qt realloc error executing example program of libvlc-qtPySide : How to get the clicked QPushButton object in the QPushButton clicked slot?QPushButton setDown on clickQt custom QPushButton clicked signalQPushButton is not clicked on the first clickCall another widget application on QPushButtonSetting the right parent of custom layoutQPushButton alignment on top another widget
Drawing ramified coverings with tikz
Melting point of aspirin, contradicting sources
How to align and center standalone amsmath equations?
Greatest common substring
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
How should I respond when I lied about my education and the company finds out through background check?
Diode in opposite direction?
A social experiment. What is the worst that can happen?
On a tidally locked planet, would time be quantized?
If a character with the Alert feat rolls a crit fail on their Perception check, are they surprised?
Proof of Lemma: Every nonzero integer can be written as a product of primes
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Is there a word to describe the feeling of being transfixed out of horror?
How to get the similar sounding words together
Is it possible to have a strip of cold climate in the middle of a planet?
Java - What do constructor type arguments mean when placed *before* the type?
Sampling Theorem and reconstruction
Journal losing indexing services
How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?
Transformation of random variables and joint distributions
Why is Arduino resetting while driving motors?
Engineer refusing to file/disclose patents
How do I repair my stair bannister?
THT: What is a squared annular “ring”?
QT - QPushButton in Designer Form Class Widget with MainWIndow Parent can't be clicked
How to call a parent class function from derived class function?Qt matching signal with custom slotlibvlc-qt realloc error executing example program of libvlc-qtPySide : How to get the clicked QPushButton object in the QPushButton clicked slot?QPushButton setDown on clickQt custom QPushButton clicked signalQPushButton is not clicked on the first clickCall another widget application on QPushButtonSetting the right parent of custom layoutQPushButton alignment on top another widget
I've got a problem with Qt.
TL;DR
My designer form class inherits from QWidget and contains a pushbutton. I construct an object from this class with a parent parameter, which is a MainWindow object. The widget is shown, but the button can't be clicked, doesn't react to mouse hover, but an onclick-like event is triggered when the button is highlighted with tab key and space is pressed.
Here is my main function:
int main(int argc, char *argv[])
QApplication a(argc, argv);
MainWindow *w;
if(argc == 2)
w = new MainWindow(argv[1]);
else
w = new MainWindow();
w->show();
return a.exec();
Here is the source of MainWindow:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow (parent),
ui(new Ui::MainWindow),
todoWidget(nullptr)
ui->setupUi(this);
todoWidget = new TodoWidget(nullptr, this);
todoWidget->setEnabled(true);
MainWindow::MainWindow(const char *saveFilePath, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
todoWidget(new TodoWidget(saveFilePath, this))
ui->setupUi(this);
MainWindow::~MainWindow()
delete ui;
delete todoWidget;
todoWidget is a private member of MainWindow class. I understand, that if a parent is given in the constructor of a QWidget, the widget is drawn inside the parent. That happens BUT the button in the widget is not clickable. I'm able to trigger something like an onclick if I press tab until it's in focus than press space, but it doesn't react even to mouse hover. The TodoWidget class is a Designer Form Class, and right now I simplified it to have only 1 element, the pushbutton.
Here is the TodoWidget source:
TodoWidget::TodoWidget(const char *path, QWidget *parent) :
QWidget (parent),
t (nullptr),
ui(new Ui::TodoWidget)
ui->setupUi(this);
if(!path)
path = "./tasks/taks";
open(path);
makeConnections();
todoModel = new TaskListModel(t->tasksWithStatus(Task::Status::TODO), this);
inProgressModel = new TaskListModel(t->tasksWithStatus(Task::Status::IN_PROGRESS), this);
finishedModel = new TaskListModel(t->tasksWithStatus(Task::Status::FINISHED), this);
// ui->todoView->setModel(todoModel);
// ui->inProgressView->setModel(inProgressModel);
// ui->finishedView->setModel(finishedModel);
TodoWidget::~TodoWidget()
delete t;
delete ui;
void TodoWidget::open(const char *path)
if(validateSaveFile(path))
delete t;
t = new todo(path, this);
this->path = path;
void TodoWidget::progressTask(unsigned int index)
t->progressTask(index);
void TodoWidget::displaySuccess(const QString &msg)
QMessageBox::information(this, "Success", msg);
void TodoWidget::displayError(const QString &errMsg)
QMessageBox::critical(this, "Error", errMsg);
void TodoWidget::changeProject(const char *path)
open(path);
void TodoWidget::addButtonClicked()
AddWindow *addWindow = new AddWindow(this);
connect(addWindow, &AddWindow::addTask, [this](const QString &args)->voidaddTask(args););
addWindow->show();
bool TodoWidget::validateSaveFile(const QString &path)
/*
* C:/ and (wordchar 0 or more times/) 0 or more times
* ./ and (wordchar 0 or more times/) 0 or more times
* / and (wordchar 0 or more times/) 0 or more times
* (wordchar 0 or more times/) 0 or more times
*
* Note: the parentheses are not present in the regexp
* Note: wordchar is any character which might be part of a word (alfanum and _ I think)
*/
QRegularExpression regexp("([a-zA-Z]:/
void TodoWidget::makeConnections()
connect(t, &todo::taskAdded, this, &TodoWidget::displaySuccess);
connect(t, &todo::taskNotAdded, this, &TodoWidget::displayError);
connect(t, &todo::taskMadeProgress, this, &TodoWidget::displaySuccess);
connect(t, &todo::noProgress, this, &TodoWidget::displayError);
connect(t, &todo::saved, this, &TodoWidget::displaySuccess);
connect(t, &todo::notSaved, this, &TodoWidget::displayError);
connect(this, &TodoWidget::addTask, t, &todo::addTask);
connect(this, &TodoWidget::someError, this, &TodoWidget::displayError);
connect(this->ui->addButton, &QPushButton::clicked, this, &TodoWidget::addButtonClicked);
void TodoWidget::modelStuff()
The t is a private member of TodoWidget. The type is todo. I don't think it's necessary to show the code, because it should have nothing to do with the GUI, because it's a shared library (which I created with Qt).
I've tried several things now, I can't even remember them all, but none worked. I'll appreciate any help. Thanks
c++ forms qt qpushbutton
add a comment |
I've got a problem with Qt.
TL;DR
My designer form class inherits from QWidget and contains a pushbutton. I construct an object from this class with a parent parameter, which is a MainWindow object. The widget is shown, but the button can't be clicked, doesn't react to mouse hover, but an onclick-like event is triggered when the button is highlighted with tab key and space is pressed.
Here is my main function:
int main(int argc, char *argv[])
QApplication a(argc, argv);
MainWindow *w;
if(argc == 2)
w = new MainWindow(argv[1]);
else
w = new MainWindow();
w->show();
return a.exec();
Here is the source of MainWindow:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow (parent),
ui(new Ui::MainWindow),
todoWidget(nullptr)
ui->setupUi(this);
todoWidget = new TodoWidget(nullptr, this);
todoWidget->setEnabled(true);
MainWindow::MainWindow(const char *saveFilePath, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
todoWidget(new TodoWidget(saveFilePath, this))
ui->setupUi(this);
MainWindow::~MainWindow()
delete ui;
delete todoWidget;
todoWidget is a private member of MainWindow class. I understand, that if a parent is given in the constructor of a QWidget, the widget is drawn inside the parent. That happens BUT the button in the widget is not clickable. I'm able to trigger something like an onclick if I press tab until it's in focus than press space, but it doesn't react even to mouse hover. The TodoWidget class is a Designer Form Class, and right now I simplified it to have only 1 element, the pushbutton.
Here is the TodoWidget source:
TodoWidget::TodoWidget(const char *path, QWidget *parent) :
QWidget (parent),
t (nullptr),
ui(new Ui::TodoWidget)
ui->setupUi(this);
if(!path)
path = "./tasks/taks";
open(path);
makeConnections();
todoModel = new TaskListModel(t->tasksWithStatus(Task::Status::TODO), this);
inProgressModel = new TaskListModel(t->tasksWithStatus(Task::Status::IN_PROGRESS), this);
finishedModel = new TaskListModel(t->tasksWithStatus(Task::Status::FINISHED), this);
// ui->todoView->setModel(todoModel);
// ui->inProgressView->setModel(inProgressModel);
// ui->finishedView->setModel(finishedModel);
TodoWidget::~TodoWidget()
delete t;
delete ui;
void TodoWidget::open(const char *path)
if(validateSaveFile(path))
delete t;
t = new todo(path, this);
this->path = path;
void TodoWidget::progressTask(unsigned int index)
t->progressTask(index);
void TodoWidget::displaySuccess(const QString &msg)
QMessageBox::information(this, "Success", msg);
void TodoWidget::displayError(const QString &errMsg)
QMessageBox::critical(this, "Error", errMsg);
void TodoWidget::changeProject(const char *path)
open(path);
void TodoWidget::addButtonClicked()
AddWindow *addWindow = new AddWindow(this);
connect(addWindow, &AddWindow::addTask, [this](const QString &args)->voidaddTask(args););
addWindow->show();
bool TodoWidget::validateSaveFile(const QString &path)
/*
* C:/ and (wordchar 0 or more times/) 0 or more times
* ./ and (wordchar 0 or more times/) 0 or more times
* / and (wordchar 0 or more times/) 0 or more times
* (wordchar 0 or more times/) 0 or more times
*
* Note: the parentheses are not present in the regexp
* Note: wordchar is any character which might be part of a word (alfanum and _ I think)
*/
QRegularExpression regexp("([a-zA-Z]:/
void TodoWidget::makeConnections()
connect(t, &todo::taskAdded, this, &TodoWidget::displaySuccess);
connect(t, &todo::taskNotAdded, this, &TodoWidget::displayError);
connect(t, &todo::taskMadeProgress, this, &TodoWidget::displaySuccess);
connect(t, &todo::noProgress, this, &TodoWidget::displayError);
connect(t, &todo::saved, this, &TodoWidget::displaySuccess);
connect(t, &todo::notSaved, this, &TodoWidget::displayError);
connect(this, &TodoWidget::addTask, t, &todo::addTask);
connect(this, &TodoWidget::someError, this, &TodoWidget::displayError);
connect(this->ui->addButton, &QPushButton::clicked, this, &TodoWidget::addButtonClicked);
void TodoWidget::modelStuff()
The t is a private member of TodoWidget. The type is todo. I don't think it's necessary to show the code, because it should have nothing to do with the GUI, because it's a shared library (which I created with Qt).
I've tried several things now, I can't even remember them all, but none worked. I'll appreciate any help. Thanks
c++ forms qt qpushbutton
add a comment |
I've got a problem with Qt.
TL;DR
My designer form class inherits from QWidget and contains a pushbutton. I construct an object from this class with a parent parameter, which is a MainWindow object. The widget is shown, but the button can't be clicked, doesn't react to mouse hover, but an onclick-like event is triggered when the button is highlighted with tab key and space is pressed.
Here is my main function:
int main(int argc, char *argv[])
QApplication a(argc, argv);
MainWindow *w;
if(argc == 2)
w = new MainWindow(argv[1]);
else
w = new MainWindow();
w->show();
return a.exec();
Here is the source of MainWindow:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow (parent),
ui(new Ui::MainWindow),
todoWidget(nullptr)
ui->setupUi(this);
todoWidget = new TodoWidget(nullptr, this);
todoWidget->setEnabled(true);
MainWindow::MainWindow(const char *saveFilePath, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
todoWidget(new TodoWidget(saveFilePath, this))
ui->setupUi(this);
MainWindow::~MainWindow()
delete ui;
delete todoWidget;
todoWidget is a private member of MainWindow class. I understand, that if a parent is given in the constructor of a QWidget, the widget is drawn inside the parent. That happens BUT the button in the widget is not clickable. I'm able to trigger something like an onclick if I press tab until it's in focus than press space, but it doesn't react even to mouse hover. The TodoWidget class is a Designer Form Class, and right now I simplified it to have only 1 element, the pushbutton.
Here is the TodoWidget source:
TodoWidget::TodoWidget(const char *path, QWidget *parent) :
QWidget (parent),
t (nullptr),
ui(new Ui::TodoWidget)
ui->setupUi(this);
if(!path)
path = "./tasks/taks";
open(path);
makeConnections();
todoModel = new TaskListModel(t->tasksWithStatus(Task::Status::TODO), this);
inProgressModel = new TaskListModel(t->tasksWithStatus(Task::Status::IN_PROGRESS), this);
finishedModel = new TaskListModel(t->tasksWithStatus(Task::Status::FINISHED), this);
// ui->todoView->setModel(todoModel);
// ui->inProgressView->setModel(inProgressModel);
// ui->finishedView->setModel(finishedModel);
TodoWidget::~TodoWidget()
delete t;
delete ui;
void TodoWidget::open(const char *path)
if(validateSaveFile(path))
delete t;
t = new todo(path, this);
this->path = path;
void TodoWidget::progressTask(unsigned int index)
t->progressTask(index);
void TodoWidget::displaySuccess(const QString &msg)
QMessageBox::information(this, "Success", msg);
void TodoWidget::displayError(const QString &errMsg)
QMessageBox::critical(this, "Error", errMsg);
void TodoWidget::changeProject(const char *path)
open(path);
void TodoWidget::addButtonClicked()
AddWindow *addWindow = new AddWindow(this);
connect(addWindow, &AddWindow::addTask, [this](const QString &args)->voidaddTask(args););
addWindow->show();
bool TodoWidget::validateSaveFile(const QString &path)
/*
* C:/ and (wordchar 0 or more times/) 0 or more times
* ./ and (wordchar 0 or more times/) 0 or more times
* / and (wordchar 0 or more times/) 0 or more times
* (wordchar 0 or more times/) 0 or more times
*
* Note: the parentheses are not present in the regexp
* Note: wordchar is any character which might be part of a word (alfanum and _ I think)
*/
QRegularExpression regexp("([a-zA-Z]:/
void TodoWidget::makeConnections()
connect(t, &todo::taskAdded, this, &TodoWidget::displaySuccess);
connect(t, &todo::taskNotAdded, this, &TodoWidget::displayError);
connect(t, &todo::taskMadeProgress, this, &TodoWidget::displaySuccess);
connect(t, &todo::noProgress, this, &TodoWidget::displayError);
connect(t, &todo::saved, this, &TodoWidget::displaySuccess);
connect(t, &todo::notSaved, this, &TodoWidget::displayError);
connect(this, &TodoWidget::addTask, t, &todo::addTask);
connect(this, &TodoWidget::someError, this, &TodoWidget::displayError);
connect(this->ui->addButton, &QPushButton::clicked, this, &TodoWidget::addButtonClicked);
void TodoWidget::modelStuff()
The t is a private member of TodoWidget. The type is todo. I don't think it's necessary to show the code, because it should have nothing to do with the GUI, because it's a shared library (which I created with Qt).
I've tried several things now, I can't even remember them all, but none worked. I'll appreciate any help. Thanks
c++ forms qt qpushbutton
I've got a problem with Qt.
TL;DR
My designer form class inherits from QWidget and contains a pushbutton. I construct an object from this class with a parent parameter, which is a MainWindow object. The widget is shown, but the button can't be clicked, doesn't react to mouse hover, but an onclick-like event is triggered when the button is highlighted with tab key and space is pressed.
Here is my main function:
int main(int argc, char *argv[])
QApplication a(argc, argv);
MainWindow *w;
if(argc == 2)
w = new MainWindow(argv[1]);
else
w = new MainWindow();
w->show();
return a.exec();
Here is the source of MainWindow:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow (parent),
ui(new Ui::MainWindow),
todoWidget(nullptr)
ui->setupUi(this);
todoWidget = new TodoWidget(nullptr, this);
todoWidget->setEnabled(true);
MainWindow::MainWindow(const char *saveFilePath, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
todoWidget(new TodoWidget(saveFilePath, this))
ui->setupUi(this);
MainWindow::~MainWindow()
delete ui;
delete todoWidget;
todoWidget is a private member of MainWindow class. I understand, that if a parent is given in the constructor of a QWidget, the widget is drawn inside the parent. That happens BUT the button in the widget is not clickable. I'm able to trigger something like an onclick if I press tab until it's in focus than press space, but it doesn't react even to mouse hover. The TodoWidget class is a Designer Form Class, and right now I simplified it to have only 1 element, the pushbutton.
Here is the TodoWidget source:
TodoWidget::TodoWidget(const char *path, QWidget *parent) :
QWidget (parent),
t (nullptr),
ui(new Ui::TodoWidget)
ui->setupUi(this);
if(!path)
path = "./tasks/taks";
open(path);
makeConnections();
todoModel = new TaskListModel(t->tasksWithStatus(Task::Status::TODO), this);
inProgressModel = new TaskListModel(t->tasksWithStatus(Task::Status::IN_PROGRESS), this);
finishedModel = new TaskListModel(t->tasksWithStatus(Task::Status::FINISHED), this);
// ui->todoView->setModel(todoModel);
// ui->inProgressView->setModel(inProgressModel);
// ui->finishedView->setModel(finishedModel);
TodoWidget::~TodoWidget()
delete t;
delete ui;
void TodoWidget::open(const char *path)
if(validateSaveFile(path))
delete t;
t = new todo(path, this);
this->path = path;
void TodoWidget::progressTask(unsigned int index)
t->progressTask(index);
void TodoWidget::displaySuccess(const QString &msg)
QMessageBox::information(this, "Success", msg);
void TodoWidget::displayError(const QString &errMsg)
QMessageBox::critical(this, "Error", errMsg);
void TodoWidget::changeProject(const char *path)
open(path);
void TodoWidget::addButtonClicked()
AddWindow *addWindow = new AddWindow(this);
connect(addWindow, &AddWindow::addTask, [this](const QString &args)->voidaddTask(args););
addWindow->show();
bool TodoWidget::validateSaveFile(const QString &path)
/*
* C:/ and (wordchar 0 or more times/) 0 or more times
* ./ and (wordchar 0 or more times/) 0 or more times
* / and (wordchar 0 or more times/) 0 or more times
* (wordchar 0 or more times/) 0 or more times
*
* Note: the parentheses are not present in the regexp
* Note: wordchar is any character which might be part of a word (alfanum and _ I think)
*/
QRegularExpression regexp("([a-zA-Z]:/
void TodoWidget::makeConnections()
connect(t, &todo::taskAdded, this, &TodoWidget::displaySuccess);
connect(t, &todo::taskNotAdded, this, &TodoWidget::displayError);
connect(t, &todo::taskMadeProgress, this, &TodoWidget::displaySuccess);
connect(t, &todo::noProgress, this, &TodoWidget::displayError);
connect(t, &todo::saved, this, &TodoWidget::displaySuccess);
connect(t, &todo::notSaved, this, &TodoWidget::displayError);
connect(this, &TodoWidget::addTask, t, &todo::addTask);
connect(this, &TodoWidget::someError, this, &TodoWidget::displayError);
connect(this->ui->addButton, &QPushButton::clicked, this, &TodoWidget::addButtonClicked);
void TodoWidget::modelStuff()
The t is a private member of TodoWidget. The type is todo. I don't think it's necessary to show the code, because it should have nothing to do with the GUI, because it's a shared library (which I created with Qt).
I've tried several things now, I can't even remember them all, but none worked. I'll appreciate any help. Thanks
c++ forms qt qpushbutton
c++ forms qt qpushbutton
asked Mar 21 at 13:54
YoFreakinLoYoFreakinLo
104
104
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The mainWindow has predefined layout in form of central widget dockareas, status bar ,menu bar etc.So any of the widget need to be set into those areas for working properly.
Try setting your dialog with call mainWindow.setcentralwidget(todowidget).
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55282034%2fqt-qpushbutton-in-designer-form-class-widget-with-mainwindow-parent-cant-be-c%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The mainWindow has predefined layout in form of central widget dockareas, status bar ,menu bar etc.So any of the widget need to be set into those areas for working properly.
Try setting your dialog with call mainWindow.setcentralwidget(todowidget).
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
add a comment |
The mainWindow has predefined layout in form of central widget dockareas, status bar ,menu bar etc.So any of the widget need to be set into those areas for working properly.
Try setting your dialog with call mainWindow.setcentralwidget(todowidget).
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
add a comment |
The mainWindow has predefined layout in form of central widget dockareas, status bar ,menu bar etc.So any of the widget need to be set into those areas for working properly.
Try setting your dialog with call mainWindow.setcentralwidget(todowidget).
The mainWindow has predefined layout in form of central widget dockareas, status bar ,menu bar etc.So any of the widget need to be set into those areas for working properly.
Try setting your dialog with call mainWindow.setcentralwidget(todowidget).
answered Mar 21 at 14:02
codeKarmacodeKarma
417
417
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
add a comment |
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
Thank you it worked :)
– YoFreakinLo
Mar 21 at 23:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55282034%2fqt-qpushbutton-in-designer-form-class-widget-with-mainwindow-parent-cant-be-c%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown