LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-05-2006, 01:39 AM   #1
darkslack
LQ Newbie
 
Registered: Sep 2006
Distribution: slackware ubuntu
Posts: 23

Rep: Reputation: 15
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.
 
Old 10-05-2006, 08:45 AM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
have you tried the setVisible(bool) function?

check out the qt docs
 
Old 10-05-2006, 11:21 PM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
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.
 
Old 10-06-2006, 08:36 AM   #4
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how should i enable the middle button of 3-button mouse ?? b0nd Slackware 1 07-17-2006 02:46 AM
Mutlipe text/button form, one submit button bappreacher Programming 8 06-27-2006 08:07 AM
make thumb button/third button double-click taboom Linux - Hardware 0 03-20-2006 02:39 PM
Vector 5.1 SOHO. Start button/K button, Sound card suseforge VectorLinux 0 01-30-2006 12:14 PM
3 button mouse (scroll button) Spyiish Slackware 24 07-23-2005 01:37 PM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration