Results 1 to 2 of 2

Thread: Connecting paintever to other widget?

  1. #1
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default Connecting paintever to other widget?

    Hi.

    I've 2 widgets in my application screen.

    On the left is a list of items to choose. On the right, is the widget that draws the items based on what is chosen on the left. Now, the question is, how do I connect the left widget selection to the update of the paintevent on the right widget? If it is in the same widget, I could just call the update() function. But now the widgets are separate. How do you manually invoke another widget's paintevent or update?

    Thanks!!
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Connecting paintever to other widget?

    By using signals and slots?

Similar Threads

  1. GPS module connecting
    By radeknati in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 20th April 2010, 15:03
  2. Connecting to my database
    By miguel_mark in forum Qt Programming
    Replies: 6
    Last Post: 22nd October 2007, 09:50
  3. Connecting to Oracle from QT App
    By KaptainKarl in forum Qt Programming
    Replies: 2
    Last Post: 17th August 2007, 08:06
  4. Replies: 1
    Last Post: 7th August 2007, 08:27
  5. connecting to MySQL through it's API
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 20
    Last Post: 30th May 2006, 23:22

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.