Results 1 to 4 of 4

Thread: Debug says vaiable is empty but it isn't

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debug says vaiable is empty but it isn't

    mScan in dialog,h and file.h is not the same object.

  2. #2
    Join Date
    Apr 2020
    Posts
    14
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Debug says vaiable is empty but it isn't

    Ok, how can I access the variable for File else? I wanted to avoid using a global variable.
    Last edited by vitalic; 15th May 2020 at 17:03.

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Debug says vaiable is empty but it isn't

    Keep mScan in one class (your File class, for example). Add a setScans() method to your Dialog class to copy this data into the Dialog class instance before your call to exec(). Or keep it in your Dialog class and pass it as an argument to File:: dab_write_file().
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QT C++ Empty Console when compiling in Debug mode
    By Kuma in forum Installation and Deployment
    Replies: 0
    Last Post: 21st April 2016, 22:51
  2. Qt + Linux + Eclipse - debug using debug build?
    By will49 in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2012, 06:27
  3. Replies: 4
    Last Post: 30th September 2010, 10:31
  4. remove directory empty or not empty
    By raphaelf in forum Newbie
    Replies: 12
    Last Post: 27th October 2006, 07:30
  5. Replies: 11
    Last Post: 22nd March 2006, 19:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.