Results 1 to 3 of 3

Thread: Can I add a QLine

  1. #1
    Join Date
    Aug 2009
    Posts
    1
    Qt products
    Qt Jambi
    Platforms
    Windows

    Default Can I add a QLine

    I want to add a textlabel to a QGraphicsItem that allows user to add text. QGraphicsTextItem doesn't allow user interventions .
    Can you help me?
    Thank you in advance.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can I add a QLine

    have a look at QGraphicsProxyWidget, which allows you to embed a QLineEdit into your QGraphicsView

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Can I add a QLine

    Quote Originally Posted by Danster View Post
    QGraphicsTextItem doesn't allow user interventions .
    Sure it does.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Selecting a QLine
    By Paul Drummond in forum Qt Programming
    Replies: 6
    Last Post: 2nd September 2015, 16:30
  2. Signal problem in Qline Edit
    By awalesminfo in forum Newbie
    Replies: 1
    Last Post: 3rd April 2006, 09:13

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.