[Qt-interest] Style sheet mistakes

Tiago Correia tiago at cnotinfor.pt
Sat Sep 26 22:58:43 CEST 2009


I agree with William. Having comment messages in the debug window might be
very useful.
Some times might not be possible to use Designer, since we might want to
build CSS using code.

On Fri, Sep 25, 2009 at 5:31 PM, william.crocker at analog.com <
william.crocker at analog.com> wrote:

> Hello:
>
> I find style sheets to be very powerful,
> but difficult to use. They are difficulty
> to use because they can be complicated
> and when I make mistakes Qt does not comment.
>
> For example, the mistake in the following
> spec causes it to fail silently.
> Qt does not catch my mistake so I assume that
> my understanding of the system is incorrect
> and move on to try something else.
>
>    padding-left: 0px; padding-right: 10px  padding-top: 5px;
>         Missing semi-colon after 10px ---^
>
>    I set the style with: QWidget::setStyleSheet()
>
> I don't think there is any other way to
> interpret the above other than user error.
> Silently ignoring incorrect specifications is not helpful.
>
> With a debug build there are plenty of other
> places within the Qt lib where a mistake
> (like accessing an QList out of bounds) generates
> a runtime comment form a Q_ASSERT macro.
> This is great.
>
> Why doesn't a debug Qt build report
> obvious mistakes in my style sheets?
>
> Bill
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Tiago Correia
chief technology officer

cnoti inovação & desenvolvimento – Aprendizagem enRiquecida pela Tecnologia
www.cnotinfor.pt
Telefone: +351 239 499 231

Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de
Interactividade, Comunicação e Aprendizagem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090926/26f27e63/attachment.html 


More information about the Qt-interest-old mailing list