Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. Nowa Klasa
Forum Updated to NodeBB v4.3 + New Features

Nowa Klasa

Scheduled Pinned Locked Moved Polish
1 Posts 1 Posters 1.1k 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

    Zacząłem pisać w Qt pewien program i do tej pory wszystko wiedziałem z głównego pliku wyświetlałem za pomocą
    @ui->pushButton->setText(“WYKONANO”)@
    ale zrobiłem nową klasę "pomocnicza" w której mam
    @Pomocnicza::pomocnicza(int e, int y)
    {
    this->e = e;
    this->y = y;

    }
    void Pomocnicza::Utwoz(){
    ui->pushButton->setText("WYKONANO");
    }@

    i wyświetla mi błąd: 'ui' was not declared in this scope"
    jeśli dodam
    @MainWindow::ui->pushButton->setText("WYKONANO");@

    to mi wyświetla że jest prywatne a jak przeniose ui do public (w mainwindow.h) błąd: invalid use of non-static data member
    Proszę o pomoc

    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