Results 1 to 5 of 5

Thread: Open File in a class and have access to it in another class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Open File in a class and have access to it in another class

    I assume you mean the moveToThread, everything else is basic C++ just like creating on the heap.

    Qt Code:
    1. file->moveToThread(this);
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  2. #2
    Join Date
    Oct 2015
    Posts
    50
    Thanks
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Open File in a class and have access to it in another class

    Ah okay, should have googled it. Thank You.

Similar Threads

  1. How to access the UI from another class ?
    By fitzy in forum Qt Programming
    Replies: 22
    Last Post: 20th July 2016, 14:21
  2. Replies: 4
    Last Post: 2nd April 2013, 09:13
  3. Replies: 4
    Last Post: 29th May 2010, 12:56
  4. Replies: 3
    Last Post: 27th December 2008, 19:34
  5. Replies: 5
    Last Post: 14th July 2006, 22:42

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.