Results 1 to 7 of 7

Thread: copy string from text box

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: copy string from text box

    Quote Originally Posted by Rekha
    hi,
    I have attached my textr.cpp,textr.h,main.cpp files..the function to copy from one textedit to another textedit widget is not working.. please check whats wrong in my coding.. dont now why its not working.. i have tried a lot
    You did not read the link, did you?

    Don't modify the source code generated by the UIC (UI Compiler). Just include the .ui file in your project and go read this link again to see how to use it properly in your project. Pay special attention to sections "The Single Inheritance Approach" and "The Multiple Inheritance Approach" and choose one of them.

    I have attached a small example illustrating how to do what I believe you want to do. The example uses the single inheritance approach.
    Attached Files Attached Files
    J-P Nurmi

  2. The following 2 users say thank you to jpn for this useful post:

    fnmblot (10th August 2006), Rekha (27th July 2006)

  3. #2
    Join Date
    Jun 2006
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    11
    Thanked 1 Time in 1 Post

    Cool Re: copy string from text box

    Hi,

    On the page :
    http://doc.trolltech.com/4.1/designe...component.html
    I have tried the :
    The Multiple Inheritance Approach
    with the :
    A Dialog With Auto-Connect

    The code is ( too ;-) ) simple.

    Regards.

  4. The following user says thank you to marvaneke for this useful post:

    Rekha (2nd August 2006)

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 10:02
  3. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 07:03
  4. signal slot conection using a string, not a SLOT
    By rianquinn in forum Qt Programming
    Replies: 6
    Last Post: 5th February 2006, 19:52

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.