Sorry still not clear enough
This is the code of my widget
#include "loginwidget.h"
#include "ui_loginwidget.h"
#include <QDesktopServices>
#include <QUrl>
LoginWidget
::LoginWidget(QWidget *parent
) : ui(new Ui::LoginWidget)
{
ui->setupUi(this);
}
LoginWidget::~LoginWidget()
{
delete ui;
}
void LoginWidget::on_NewpushButton_clicked()
{
}
void LoginWidget::on_ConfigurepushButton_clicked()
{
// Action an button clicked
}
#include "loginwidget.h"
#include "ui_loginwidget.h"
#include <QDesktopServices>
#include <QUrl>
LoginWidget::LoginWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::LoginWidget)
{
ui->setupUi(this);
}
LoginWidget::~LoginWidget()
{
delete ui;
}
void LoginWidget::on_NewpushButton_clicked()
{
QDesktopServices::openUrl(QUrl("http://www.google.com", QUrl::TolerantMode));
}
void LoginWidget::on_ConfigurepushButton_clicked()
{
// Action an button clicked
}
To copy to clipboard, switch view to plain text mode
I should mention that to show this widget in the stacked Widget i have implemented inside the stacked widget a widget that I've promoted to LoginWidget
could you help me modifying this code i am still a beginner in Qt
Bookmarks