LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to define an invisible button in QT? (https://www.linuxquestions.org/questions/programming-9/how-to-define-an-invisible-button-in-qt-489590/)

darkslack 10-05-2006 01:39 AM

How to define an invisible button in QT?
 
for example
In a 4x4 window which can hold four 1x1 button , there is only an invisible button ,so you dont kown where it is. You can click in the window area,if you click on the invisible button ,you win.

it is only an example,i am interesting in how to define
this invisible button in QT

and thanks beyond.

xhi 10-05-2006 08:45 AM

have you tried the setVisible(bool) function?

check out the qt docs

graemef 10-05-2006 11:21 PM

I'm not certain that a hidden button will receive click events. If so you may need to play with flat and use setIcon to make the button have the same look as the background.

xhi 10-06-2006 08:36 AM

Quote:

Originally Posted by graemef
I'm not certain that a hidden button will receive click events. If so you may need to play with flat and use setIcon to make the button have the same look as the background.

yeh you are right.. i apparently have a bad habit of not reading past the title :eek:


All times are GMT -5. The time now is 06:23 PM.