Qt-interest Archive, December 2007
QCheckBox readonly?
Message 1 in thread
Hi everybody,
This feels like it should be simple, but I can't find a direct way of
doing it. How do I make a checkbox readonly?
Regards
Marius
--
[ signature omitted ]
Message 2 in thread
Two ways... One, checkBox->setEnabled( false ) but then it will be
greyed out.
Second, create a slot that responds to its "clicked" signal, and force
it to be always the same value.
Scott
> -----Original Message-----
> From: Marius Roets [mailto:roets.marius@xxxxxxxxx]
> Sent: Thursday, December 06, 2007 1:25 AM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: QCheckBox readonly?
>
> Hi everybody,
> This feels like it should be simple, but I can't find a direct way of
> doing it. How do I make a checkbox readonly?
>
> Regards
> Marius
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 3 in thread
On Dec 6, 2007 11:58 AM, Scott Aron Bloom <Scott.Bloom@xxxxxxxxxxxx> wrote:
> Two ways... One, checkBox->setEnabled( false ) but then it will be
> greyed out.
>
> Second, create a slot that responds to its "clicked" signal, and force
> it to be always the same value.
I used the second way, I just thought I'd asked if there wasn't a simpler way.
Thanks
Marius
--
[ signature omitted ]