Results 1 to 7 of 7

Thread: Widget Focus

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Widget Focus

    Hi,
    I have created a custom widget which will be drawn in parent widget. There can be number of custom widget drawn in parent widget(using mouse). To draw all the custom widget in parent widget, I am using following code

    Qt Code:
    1. for(int iter = 0; iter < count; iter++)
    2. {
    3. option1.initFrom(m_List->at(iter));
    4.  
    5. m_List->at(iter)->show();
    6. style()->drawPrimitive(QStyle::PE_Widget, &option1, &p, this);
    7. }
    To copy to clipboard, switch view to plain text mode 
    here m_List is QList contains all the custom Widget.
    But i am facing a problem with focus. if I draw 5 custom widget , only lat drawn widget will be active. I cannot do nothing on other 4 custom widget.


    Can any one tell me how can i resolve this issue.???


    Thank You
    Last edited by jpn; 13th September 2008 at 13:06. Reason: missing [code] tags

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. widget focus ---------
    By jrodway in forum Qt Programming
    Replies: 11
    Last Post: 27th April 2009, 09:16
  3. Customize on focus widget
    By vql in forum Qt Programming
    Replies: 9
    Last Post: 9th April 2008, 18:58
  4. Managing widget focus behaviour
    By mnemonic_fx in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2008, 10:27
  5. Force focus to a QTabWidget page's widget
    By thomaspu in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 06:54

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.