Syntax Error
Hectopat
- Katılım
- 2 Ocak 2021
- Mesajlar
- 1.456
- Çözümler
- 9
@TerabyteForeverTam program kodunu atar mısın? Bulabildiğim tüm bug'ları veya daha iyi nasıl yazılacağını söyleyeyim.
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPixmap>
#include <QApplication>
#include "islembasladi.h"
void neofetch()
{
system("pkexec");
system("sudo pacman -S neofetch --noconfirm");
}
void screenfetch()
{
system("pkexec");
system("sudo pacman -S screenfetch --noconfirm");
}
void opera()
{
system("pkexec");
system("sudo pacman -S opera --noconfirm");
}
void woeusb()
{
system("cd");
system("pkexec");
system("yay -S woeusb-gui --noconfirm");
}
void googlechrome()
{
system("cd");
system("pkexec");
system("yay -S google-chrome --noconfirm");
}
void git()
{
system("pkexec");
system("sudo pacman -S git base-devel --noconfirm");
}
void ventoy()
{
system("cd");
system("pkexec");
system("yay -S ventoy-bin --noconfirm");
}
void chromium()
{
system("pkexec");
system("sudo pacman -S chromium --noconfirm");
}
void plank()
{
system("pkexec");
system("sudo pacman -S plank --noconfirm");
}
void gimp()
{
system("pkexec");
system("sudo pacman -S gimp --noconfirm");
}
void k3b()
{
system("pkexec");
system("sudo pacman -S k3b --noconfirm");
}
void uget()
{
system("pkexec");
system("sudo pacman -S uget --noconfirm");
}
void gparted()
{
system("pkexec");
system("sudo pacman -S gparted --noconfirm");
}
void dockbarx()
{
system("cd");
system("pkexec");
system(" yay -S xfce4-dockbarx-plugin --noconfirm");
}
void openoffice()
{
system("cd");
system("pkexec");
system("yay -S openoffice-bin --noconfirm");
}
void freeoffice()
{
system("cd");
system("pkexec");
system("yay -S freeoffice --noconfirm");
}
void libreoffice()
{
system("pkexec");
system("sudo pacman -S libreoffice-fresh --noconfirm");
}
void wpsoffice()
{
system("cd");
system("pkexec");
system("sudo yay -S wps-office --noconfirm");
}
void zip()
{
system("cd");
system("pkexec");
system("yay -S 7-zip --noconfirm");
}
void işlemBasladi()
{
QWindow *window_2 = new QWindow(this);
QLabel *label_12= new QLabel(this);
ui->label_12.setText("İşlem başladı.")
QPushButton *okbutton_1 = new QPushButton(this);
ui->okbutton_1.setText("Ok");
window_2->show();
}
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
QPixmap pix("/home/christopherlinux/Downloads/Google-Chrome-Google-Chrome.ico");
ui->label->setPixmap(pix.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix2("/home/christopherlinux/Downloads/opera.png");
ui->label_2->setPixmap(pix2.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix3("/home/christopherlinux/Downloads/l.png");
ui->label_3->setPixmap(pix3.scaled(30,30,Qt::KeepAspectRatio));;
QPixmap pix4("/home/christopherlinux/Downloads/asjajs-removebg-preview.png");
ui->label_4->setPixmap(pix4.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix5("/home/christopherlinux/Downloads/as-removebg-preview.png");
ui->label_5->setPixmap(pix5.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix6("/home/christopherlinux/Downloads/z.png");
ui->label_6->setPixmap(pix6.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix7("/home/christopherlinux/Downloads/p.png");
ui->label_7->setPixmap(pix7.scaled(40,40,Qt::KeepAspectRatio));
QPixmap pix8("/home/christopherlinux/Downloads/d.png");
ui->label_8->setPixmap(pix8.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix9("/home/christopherlinux/Downloads/c.png");
ui->label_9->setPixmap(pix9.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix10("/home/christopherlinux/Downloads/g.png");
ui->label_10->setPixmap(pix10.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix11("/home/christopherlinux/Downloads/woe.png");
ui->label_11->setPixmap(pix11.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix16("/home/christopherlinux/Downloads/v.png");
ui->label_16->setPixmap(pix16.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix17("/home/christopherlinux/Downloads/gi.png");
ui->label_17->setPixmap(pix17.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix18("/home/christopherlinux/Downloads/u.png");
ui->label_18->setPixmap(pix18.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix19("/home/christopherlinux/Downloads/k.png");
ui->label_19->setPixmap(pix19.scaled(30,30,Qt::KeepAspectRatio));
QPixmap pix20("/home/christopherlinux/Downloads/di.png");
ui->label_20->setPixmap(pix20.scaled(30,30,Qt::KeepAspectRatio));
QObject* button=QObject::sender();
if(button == ui->pushButton_17)
{
neofetch();
}
}
MainWindow::~MainWindow()
{
delete ui;
}
Biraz yarım kaldı işlem başladı ve işlem bitti penceresi yapmaya çalışıyorum Void ile.