Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Widgets out of scope?

Widgets out of scope?

Scheduled Pinned Locked Moved C++ Gurus
2 Posts 2 Posters 1.0k 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
    Dn588
    wrote on last edited by
    #1

    Hi all

    I am trying to write a program that stores staff details in a container and also writes it to a file. I keep getting error messages saying that the gui widgets I am trying to read the data from are not declared in the scope of the slot submit_button_clicked. I declared the widgets in the gui constructor shouldn't it then also be accessible to the submit_button_clicked slot?

    my code:
    https://www.dropbox.com/sh/mae4u74zayqyebn/AAAMBA_HroXkkP8FkuG_YUW6a

    Thanks

    Deon

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Change to void staffgui::submit_button_clicked(). Scope resolution is missing for submitt_button_clicked()..

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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