Results 1 to 2 of 2

Thread: whenever clicked on the mainwindow the widget name is displayed

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default whenever clicked on the mainwindow the widget name is displayed

    hi
    how to get the names of the widget on which the mouse click has happened without knowing the widgets present in the mainwindow.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: whenever clicked on the mainwindow the widget name is displayed

    If you have the coordinates, you can use QWidget::childAt().

Similar Threads

  1. Replies: 1
    Last Post: 11th September 2007, 13:34
  2. QwtPlot widget in MainWindow
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2007, 11:48
  3. Custom Widget - clicked() signal
    By ak in forum Newbie
    Replies: 3
    Last Post: 13th November 2006, 08:35

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.