Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt ui in new class
Forum Updated to NodeBB v4.3 + New Features

Qt ui in new class

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 638 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    donex93
    wrote on last edited by
    #1

    macierz.h
    @#ifndef MACIERZ_H
    #define MACIERZ_H

    #include <ui_mainwindow.h>

    class Macierz
    {
    public:
    Macierz(int wiersze, int kolumny);
    void Utwoz();
    private:

    };

    #endif // MACIERZ_H@

    macierz.cpp

    @#include "macierz.h"
    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include "macierz.h"

    Macierz::Macierz(int wiersze, int kolumny)
    {
    this->wiersze = wiersze;
    this->kolumny = kolumny;

    }

    void Macierz::Utwoz()
    {
    ui->pushButton->setEnabled(false);

    }@

    @ui->pushButton->setEnabled(false);@

    do error: 'ui' was not declared in this scope

    how i can repair this error ?
    in "MainWindow" this

    @ui->pushButton->setEnabled(false);@

    work correctly

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved