Results 1 to 2 of 2

Thread: Reg - QFrame

  1. #1
    Join Date
    Aug 2006
    Location
    Chennai, India
    Posts
    34
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Reg - QFrame

    I inserted the text into QFrame via drawText().
    I don't know how to retrieve the inserted text.
    Anybody know help me.


    suresh.

  2. #2
    Join Date
    Oct 2006
    Location
    Austin, Texas, USA
    Posts
    18
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Reg - QFrame

    I'm not sure if you can retrieve text that's been drawn since Qt is most likely using simple painting algorithms to do only a drawing of the information (the text isn't stored in QFrame or anywhere else).

    If you want to store the text so you can retrieve it, why don't you use the QTextEdit widget to display the text? You'll then have easy access to any text that is displayed via the numerous member functions of the class.

Similar Threads

  1. Dynamically changing QFrame color
    By Doug Broadwell in forum Newbie
    Replies: 6
    Last Post: 16th October 2008, 09:22
  2. QFrame parent, QGLWidget-based child
    By philski in forum Qt Programming
    Replies: 6
    Last Post: 28th August 2006, 19:14
  3. QFrame and its background
    By high_flyer in forum Qt Programming
    Replies: 2
    Last Post: 23rd June 2006, 21:32
  4. QFrame subclass does not reparent
    By high_flyer in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2006, 23:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.