Results 1 to 14 of 14

Thread: Using text document ALREADY uploaded on another window

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Posts
    83
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using text document ALREADY uploaded on another window

    Many thanks Reddy for your code.
    Ii is very helpfull, although the problem is not overcome. The code you sent me deals only with the main window. In my case, and due to your help of yesterday, the problem with the main window was solved. My main problem now it to use the document on the TextEdit of the main window from childwindow withough having to upload it again.
    If I have a fucntion such as "functionxxx" for example of the childwindow, how can I get the path to the text on the main window and its text? When I am compiling my initial code, the error message is that "No file name specified" and that MyMainWindow ist private in this context.

    Any help? Please!

  2. #2
    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: Using text document ALREADY uploaded on another window

    Quote Originally Posted by Stanfillirenfro View Post
    My main problem now it to use the document on the TextEdit of the main window from childwindow withough having to upload it again.
    No, your main problem is that you are ignoring any information about the actual solution, i.e. what wysota is writing.

    Obviously other people not reading what you are trying to achieve and posting solutions to problems you are not having doesn't help either.

    So either share the QTextDocument created by your main text edit with the secondary one, or create a stand alone QTextDocument and use it on both text edits.

    Cheers,
    _

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

    Default Re: Using text document ALREADY uploaded on another window

    I think the real problem is that the OP has only a minimal understanding of C++ programming in general and has no idea how to implement the suggestions being posted. He is way over his head with this project and needs to stop asking us basic C++ questions and start by reading a good C++ textbook until he understands some basic concepts.

    There is no magic to using the Qt class library; it is just C++ classes in the end, and if you don't understand the basics of passing C++ instances around a program either by pointer or by reference, you won't be able to write any C++ program, much less a Qt program.

Similar Threads

  1. Open and display a document on a window
    By Stanfillirenfro in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2013, 09:53
  2. Replies: 0
    Last Post: 2nd August 2010, 09:37
  3. Multi-window document structure
    By JariV in forum Newbie
    Replies: 2
    Last Post: 16th February 2009, 20:42
  4. listing the files that has been uploaded to postgres
    By aekilic in forum Qt Programming
    Replies: 2
    Last Post: 10th September 2007, 10:43

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.