Projet

Général

Profil

Bug #4812

Feature - Fonctionnalité #4800: [Qt5.6] Scaling non fonctionnel

Scaling MessageBox

Ajouté par Icham Sirat il y a environ 8 ans. Mis à jour il y a environ 8 ans.

Statut:
Fixed - Corrigé - Implémenté
Priorité:
Normale
Assigné à:
Icham Sirat
Catégorie:
AbulEduMessageBoxV1
Version cible:
-
Début:
26/04/2016
Echéance:
% réalisé:

100%


Description

Quand la message box est "scaled", c'est pas beau.
Mais j'ai trouvé le coupable :

    m_abuleduMessageBox->setGeometry(10*ratio,10*ratio,400*ratio,250*ratio);

Historique

#1 Mis à jour par Icham Sirat il y a environ 8 ans

c'est là que c'est pas fait dans les règles : si on avait hérité de QMessageBox, la gestion de la taille est toute faire (cf http://cep.xray.aps.anl.gov/software/qt4-x11-4.2.2-browser/d3/dc5/qmessagebox_8cpp-source.html #methode updateSize())

J'essaye de copier la fonction...

#2 Mis à jour par Icham Sirat il y a environ 8 ans

  • Sujet changé de Affichage MessageBox à Scaling MessageBox

#3 Mis à jour par Icham Sirat il y a environ 8 ans

Ah non ça ne marchera pas en copiant mais on peut s'en inspirer =)

#4 Mis à jour par Icham Sirat il y a environ 8 ans

  • % réalisé changé de 0 à 30

D'ailleurs, la messagebox n'apparait plus quand on est en taille minimale...

Peut-être remplacer m_abuleduMessageBox->setGeometry(10*ratio,10*ratio,400*ratio,250*ratio); par m_abuleduMessageBox->setGeometry(10*ratio,10*ratio,m_abuleduMessageBox->width(),m_abuleduMessageBox->height());

Ou alors remplacer/améliorer le slot démo des logiciels.

Test en cours...

#5 Mis à jour par Icham Sirat il y a environ 8 ans

  • % réalisé changé de 30 à 90

C’est bon pour le scaling de l'image. J'envoie un build de test =)

#6 Mis à jour par Icham Sirat il y a environ 8 ans

  • Statut changé de Assigned - En cours à Fixed - Corrigé - Implémenté
  • % réalisé changé de 90 à 100

c'est bon.

Formats disponibles : Atom PDF

Redmine Appliance - Powered by TurnKey Linux