Results 1 to 12 of 12

Thread: keyboard and openGL widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Mar 2011
    Posts
    63
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: keyboard and openGL widget

    just try

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

    Call this in the constructor of the item.

    Qt Code:
    1. myGLWidget::myGLWidget() : QGLWidget()
    2. {
    3. this->setFocusPolicy(Qt::StrongFocus)
    4. }
    To copy to clipboard, switch view to plain text mode 

    like this

  2. The following user says thank you to meazza for this useful post:

    21did21 (5th July 2011)

Similar Threads

  1. Widget Virtual Keyboard
    By embitel in forum Qt-based Software
    Replies: 14
    Last Post: 12th July 2012, 10:22
  2. opengl widget not able to embed in QGraphicsView
    By wagmare in forum Qt Programming
    Replies: 4
    Last Post: 14th December 2010, 07:22
  3. Putting an opengl widget in to a mainwindow
    By bod in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2008, 07:59
  4. Crash when minimizing OpenGL widget
    By MistaPain in forum Qt Programming
    Replies: 5
    Last Post: 7th October 2006, 16:58

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.