main_window := QMainWindow()
main_window:setMinimumSize(350, 350)
main_window:setMaximumSize(350, 350)
main_window:setAttribute(Qt_WA_DeleteOnClose, .f.)
main_window:setWindowTitle("test")
main_window:setObjectName("ventana_principal")
main_window:setStyleSheet( 'QMainWindow#ventana_principal { background-image: url("resource/images/harbour.png"); background-repeat: no-repeat; ' + ;
'background-size: containt }' )There anything special need to consider to use jpg image files?, I have also tried:palette := QPalette()
palette:setBrush(QPalette_Background,QBrush(QPixmap("resource/images/img.jpg")))
main_window:setPalette(palette)
orimagen := QImage("resource/images/img.jpg")
brush := QBrush(imagen)
main_window:setBackgroundBrush(brush)
And nothing seems to work correctly, some indication here please.
Regards,
Javier
If i remember correctly there is a plugin for jpeg..
--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+unsubscribe@googlegroups.com.
To post to this group, send email to qtcon...@googlegroups.com.
Visit this group at https://groups.google.com/group/qtcontribs.
For more options, visit https://groups.google.com/d/optout.