IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Discussion :

Auto-connect ne fonctionne pas

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut Auto-connect ne fonctionne pas
    Bonjour,

    J'ai tout d'abord fait un programme sans utiliser QTDesigner, il marche très bien. Mais, il était pas très jolie, donc j'ai décidé d'utiliser QTDesigner. J'ai réussi à compiler, la fenetre s'affiche, pas de problème, mis à part les boutons. J'ai beau tout essayer, ca ne veut pas marcher
    Voilà le code des 3 fichiers main.cpp FenPrincipale.h et FenPrincipale.cpp
    PS : J'utilise l'heritage multiple et sous QTDesigner j'ai nommé mon bouton Credits dans objectName et je n'ai pas d'erreurs au moment de la compilation.

    Main.cpp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
     
    #include <QApplication>
    #include <QtGui>
    #include "ui_design2.h"
     
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
     
        QWidget *fenetre = new QWidget;
        Ui::FenPrincipale ui;
        ui.setupUi(fenetre);
     
        fenetre->show();
     
        return app.exec();
    }

    FenPrincipale.cpp




    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    #include "FenPrincipale.h"
     
    FenPrincipale::FenPrincipale(QWidget *parent) : QWidget(parent)
    {
        setupUi(this);
    }
     
    void FenPrincipale::on_Credits_clicked()
    {
    QMessageBox::information(this, "Crédits", "Codé par guyguy333");
    }

    FenPrincipale.h
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
     
    #ifndef HEADER_FENPRINCIPALE
    #define HEADER_FENPRINCIPALE
     
    #include <QtGui>
    #include "ui_design2.h"
     
    class FenPrincipale : public QWidget, private Ui::FenPrincipale
    {
        Q_OBJECT
     
        public:
    		FenPrincipale(QWidget *parent = 0);
     
        private slots:
    		void on_Credits_clicked();
     
    };
     
     
    #endif

  2. #2
    Membre éprouvé

    Profil pro
    Inscrit en
    Mai 2007
    Messages
    774
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France, Finistère (Bretagne)

    Informations forums :
    Inscription : Mai 2007
    Messages : 774
    Points : 969
    Points
    969
    Par défaut
    Salut,

    J'ai jamais utilisé l'autoconnect, mais j'ai survolé la doc et j'ai vu ça :
    We use QMetaObject's system to enable signal and slot connections:

    QMetaObject::connectSlotsByName(this);
    Sinon une autre piste :

    -le nom de ton button. Tu peux vérifier son nom en l'affichant avec un qDebug par exemple, comme ça tu seras sûr qu'il s'appelle Credits.
    En passant, ce n'est pas très bien de mettre des majuscules aux premières lettres des variables.
    Sinon, es tu sûr de ne pas avoir mis d'accent ? ca pourrait entrâiner des soucis.

    Bonne chance,

    G.

  3. #3
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968

  4. #4
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Alors là je comprend plus, j'ai relit toute la partie Auto Connect, j'ai téléchargé le pack avec le Ui, j'ai lu l'explication, j'ai compilé et lui ca marche. J'ai pourtant relu tout ce que j'avais fait et je vois vraiment pas.

    Après Gulish, j'ai regardé pour QMetaObject::connectSlotsByName(this); mais il est dit qu'il est automatiquement généré si on utilise QtDesigner.

    J'ai regardé qDebug, et le fichier en .h qui est généré à partir du .ui et le nom des boutons est bon, je les ai mis tous en minuscule sans accents.

    2 jours que je suis dessus...

  5. #5
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut

    je regarde ton code et j'ai une question à 10 points :
    - dans ton main, ou utilise tu FenPrincipale???????

  6. #6
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Citation Envoyé par Mongaulois Voir le message

    je regarde ton code et j'ai une question à 10 points :
    - dans ton main, ou utilise tu FenPrincipale???????
    Je l'utilise à cette ligne : Ui::FenPrincipale ui;

  7. #7
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut
    Citation Envoyé par guyguy333 Voir le message
    Je l'utilise à cette ligne : Ui::FenPrincipale ui;
    et si tu fait çà? (faut verifier le header de FenPrincipale)


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
     
    #include <QApplication>
    #include <QtGui>
    #include "FenPrincipale.h"
     
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
     
        FenPrincipale  fenetre; 
        fenetre.show();
     
        return app.exec();
    }

  8. #8
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Citation Envoyé par Mongaulois Voir le message
    et si tu fait çà? (faut verifier le header de FenPrincipale)


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
     
    #include <QApplication>
    #include <QtGui>
    #include "FenPrincipale.h"
     
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
     
        FenPrincipale  fenetre; 
        fenetre.show();
     
        return app.exec();
    }
    Super, les boutons marchent, sauf que j'ai plus le fond d'écran de la fenetre, il se met sur le message quand je clique sur Credits. Moi je voudrais le contraire : pas de fond écran sur les messages mais un fond sur la fenetre principale déjà définit sur QtDesigner et qui marchait avant que les boutons ne marchent.

  9. #9
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut
    Citation Envoyé par guyguy333 Voir le message
    Super, les boutons marchent, sauf que j'ai plus le fond d'écran de la fenetre, il se met sur le message quand je clique sur Credits. Moi je voudrais le contraire : pas de fond écran sur les messages mais un fond sur la fenetre principale déjà définit sur QtDesigner et qui marchait avant que les boutons ne marchent.
    C'est à dire

  10. #10
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Sur le programme, j'ai un fond, une image en fond. Avant quand je compilais tout était nikel, il y avait l'image de fond, mais les boutons ne marchaient pas.
    Maintenant, les boutons marchent, mais l'image de fond à disparu, j'ai pu l'image, et quand je clique sur les boutons pour afficher un Qmessagebox::information, j'ai l'image de fond que je devrais seulement avoir sur la fenetre principale.

  11. #11
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut
    Citation Envoyé par guyguy333 Voir le message
    Sur le programme, j'ai un fond, une image en fond. Avant quand je compilais tout était nikel, il y avait l'image de fond, mais les boutons ne marchaient pas.
    Maintenant, les boutons marchent, mais l'image de fond à disparu, j'ai pu l'image, et quand je clique sur les boutons pour afficher un Qmessagebox::information, j'ai l'image de fond que je devrais seulement avoir sur la fenetre principale.
    Ben je ne sait pas, elle viens d'ou cette image??? y as rien dans le code que tu nous montre

  12. #12
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Alors, voilà j'ai fait des screens pour que vous compreniez mieux :

    Voilà la première version, celle ou les boutons ne marchaient pas, mais l'aspect graphique marche très bien :



    Voilà la version ou les boutons marchent grace à votre code, mais là il y a des bugs, l'image de fond ne s'affiche plus mais elle s'affiche sur les Qmessagebox, mais je ne veux pas.


  13. #13
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut

    J'ai bien compris ton problème mais y as pas un signe que tu utilise une image dans ton code. Je ne voie pas comment on peut t'aider.
    Soit met plus de code, soit explique comment tu ajoute l'image en brackground

  14. #14
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Voilà le fichier du designer compilé en .h :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    /********************************************************************************
    ** Form generated from reading ui file 'FenPrincipale.ui'
    **
    ** Created: Fri 11. Jul 15:23:07 2008
    **      by: Qt User Interface Compiler version 4.4.0
    **
    ** WARNING! All changes made in this file will be lost when recompiling ui file!
    ********************************************************************************/
     
    #ifndef UI_FENPRINCIPALE_H
    #define UI_FENPRINCIPALE_H
     
    #include <QtCore/QVariant>
    #include <QtGui/QAction>
    #include <QtGui/QApplication>
    #include <QtGui/QButtonGroup>
    #include <QtGui/QGroupBox>
    #include <QtGui/QLabel>
    #include <QtGui/QPushButton>
    #include <QtGui/QWidget>
    #include <QtWebKit/QWebView>
     
    QT_BEGIN_NAMESPACE
     
    class Ui_FenPrincipale
    {
    public:
        QWebView *webView;
        QGroupBox *groupBox;
        QPushButton *desactiveraddons;
        QLabel *label;
        QPushButton *vidercache;
        QLabel *label_4;
        QGroupBox *groupBox_2;
        QLabel *label_2;
        QLabel *label_3;
        QPushButton *lancerfun;
        QPushButton *lancermj;
        QWebView *webView_2;
        QPushButton *modedemploi;
        QPushButton *credits;
        QPushButton *Quitter;
     
        void setupUi(QWidget *FenPrincipale)
        {
        if (FenPrincipale->objectName().isEmpty())
            FenPrincipale->setObjectName(QString::fromUtf8("FenPrincipale"));
        FenPrincipale->resize(800, 600);
        FenPrincipale->setMinimumSize(QSize(800, 600));
        FenPrincipale->setMaximumSize(QSize(800, 600));
        QIcon icon;
        icon.addPixmap(QPixmap(QString::fromUtf8(":/icone.ico")), QIcon::Normal, QIcon::Off);
        FenPrincipale->setWindowIcon(icon);
        FenPrincipale->setStyleSheet(QString::fromUtf8("background-image: url(:/image.png);"));
        webView = new QWebView(FenPrincipale);
        webView->setObjectName(QString::fromUtf8("webView"));
        webView->setGeometry(QRect(10, 130, 542, 421));
        webView->setUrl(QUrl("http://kukuy.kukuy"));
        groupBox = new QGroupBox(FenPrincipale);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        groupBox->setGeometry(QRect(580, 130, 200, 200));
        groupBox->setStyleSheet(QString::fromUtf8("\n"
    "\n"
    "color: rgb(255, 255, 255);background-image: url(:/back_gb2.png);"));
        desactiveraddons = new QPushButton(groupBox);
        desactiveraddons->setObjectName(QString::fromUtf8("desactiveraddons"));
        desactiveraddons->setGeometry(QRect(17, 140, 171, 41));
        desactiveraddons->setCursor(QCursor(Qt::PointingHandCursor));
        desactiveraddons->setStyleSheet(QString::fromUtf8("color: rgb(3, 83, 255);"));
        QIcon icon1;
        icon1.addPixmap(QPixmap(QString::fromUtf8(":/b_desactiveraddons.png")), QIcon::Normal, QIcon::Off);
        desactiveraddons->setIcon(icon1);
        desactiveraddons->setIconSize(QSize(176, 46));
        label = new QLabel(groupBox);
        label->setObjectName(QString::fromUtf8("label"));
        label->setGeometry(QRect(60, 30, 83, 11));
        label->setStyleSheet(QString::fromUtf8("background-image: url(:/t_vidercache.png);"));
        vidercache = new QPushButton(groupBox);
        vidercache->setObjectName(QString::fromUtf8("vidercache"));
        vidercache->setGeometry(QRect(17, 55, 171, 41));
        vidercache->setCursor(QCursor(Qt::PointingHandCursor));
        vidercache->setStyleSheet(QString::fromUtf8("image: url(:/b_vidercache.png);\n"
    "background-image: url(:/b_vidercache.png);"));
        QIcon icon2;
        icon2.addPixmap(QPixmap(QString::fromUtf8(":/b_vidercache.png")), QIcon::Normal, QIcon::Off);
        vidercache->setIcon(icon2);
        vidercache->setIconSize(QSize(174, 46));
        label_4 = new QLabel(groupBox);
        label_4->setObjectName(QString::fromUtf8("label_4"));
        label_4->setGeometry(QRect(40, 110, 125, 11));
        label_4->setStyleSheet(QString::fromUtf8("background-image: url(:/t_desactiveraddons.png);"));
        groupBox_2 = new QGroupBox(FenPrincipale);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        groupBox_2->setGeometry(QRect(580, 350, 200, 200));
        groupBox_2->setStyleSheet(QString::fromUtf8("\n"
    "color: rgb(255, 255, 255);background-image: url(:/back_gb2.png);"));
        label_2 = new QLabel(groupBox_2);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        label_2->setGeometry(QRect(15, 30, 175, 13));
        label_2->setStyleSheet(QString::fromUtf8("background-image: url(:/t_jfun.png);"));
        label_3 = new QLabel(groupBox_2);
        label_3->setObjectName(QString::fromUtf8("label_3"));
        label_3->setGeometry(QRect(20, 110, 162, 14));
        label_3->setStyleSheet(QString::fromUtf8("background-image: url(:/t_jmj.png);"));
        lancerfun = new QPushButton(groupBox_2);
        lancerfun->setObjectName(QString::fromUtf8("lancerfun"));
        lancerfun->setGeometry(QRect(17, 55, 171, 41));
        lancerfun->setCursor(QCursor(Qt::PointingHandCursor));
        QIcon icon3;
        icon3.addPixmap(QPixmap(QString::fromUtf8(":/b_lancer.png")), QIcon::Normal, QIcon::Off);
        lancerfun->setIcon(icon3);
        lancerfun->setIconSize(QSize(174, 46));
        lancermj = new QPushButton(groupBox_2);
        lancermj->setObjectName(QString::fromUtf8("lancermj"));
        lancermj->setGeometry(QRect(17, 140, 171, 41));
        lancermj->setCursor(QCursor(Qt::PointingHandCursor));
        lancermj->setStyleSheet(QString::fromUtf8(""));
        lancermj->setIcon(icon3);
        lancermj->setIconSize(QSize(174, 46));
        webView_2 = new QWebView(FenPrincipale);
        webView_2->setObjectName(QString::fromUtf8("webView_2"));
        webView_2->setGeometry(QRect(580, 90, 201, 31));
        webView_2->setUrl(QUrl("http://kukuykuy.mmm/etat.php"));
        modedemploi = new QPushButton(FenPrincipale);
        modedemploi->setObjectName(QString::fromUtf8("modedemploi"));
        modedemploi->setGeometry(QRect(600, 560, 81, 23));
        credits = new QPushButton(FenPrincipale);
        credits->setObjectName(QString::fromUtf8("credits"));
        credits->setGeometry(QRect(700, 560, 75, 23));
        Quitter = new QPushButton(FenPrincipale);
        Quitter->setObjectName(QString::fromUtf8("Quitter"));
        Quitter->setGeometry(QRect(60, 560, 75, 23));
     
        retranslateUi(FenPrincipale);
        QObject::connect(Quitter, SIGNAL(clicked()), FenPrincipale, SLOT(close()));
     
        QMetaObject::connectSlotsByName(FenPrincipale);
        } // setupUi
     
        void retranslateUi(QWidget *FenPrincipale)
        {
        FenPrincipale->setWindowTitle(QApplication::translate("FenPrincipale", "hthtrrh", 0, QApplication::UnicodeUTF8));
        groupBox->setTitle(QApplication::translate("FenPrincipale", "Outils World of Wacraft", 0, QApplication::UnicodeUTF8));
     
    #ifndef QT_NO_TOOLTIP
        desactiveraddons->setToolTip(QApplication::translate("FenPrincipale", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
    "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
    "p, li { white-space: pre-wrap; }\n"
    "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
    "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"><span style=\" color:#ff0000;\">D\303\251sactiver les Addons permet de les sauvegarder pour ne pas qu'ils soient supprim\303\251s. Pour en savoir plus, veuillez consulter le Mode d'Emploi.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
    #endif // QT_NO_TOOLTIP
     
        desactiveraddons->setText(QString());
        label->setText(QString());
     
    #ifndef QT_NO_TOOLTIP
        vidercache->setToolTip(QApplication::translate("FenPrincipale", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
    "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
    "p, li { white-space: pre-wrap; }\n"
    "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
    "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt; color:#ff0000;\">Vider le Cache permet de supprimer des bugs. Pour en savoir plus, veuillez consulter le Mode d'Emploi.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
    #endif // QT_NO_TOOLTIP
     
        vidercache->setText(QString());
        label_4->setText(QString());
        groupBox_2->setTitle(QApplication::translate("FenPrincipale", "Jouer \303\240 World of Warcraft", 0, QApplication::UnicodeUTF8));
        label_2->setText(QString());
        label_3->setText(QString());
        lancerfun->setText(QString());
        lancermj->setText(QString());
        modedemploi->setText(QApplication::translate("FenPrincipale", "Mode d'Emploi", 0, QApplication::UnicodeUTF8));
        credits->setText(QApplication::translate("FenPrincipale", "Cr\303\251dits", 0, QApplication::UnicodeUTF8));
        Quitter->setText(QApplication::translate("FenPrincipale", "Quitter", 0, QApplication::UnicodeUTF8));
        Q_UNUSED(FenPrincipale);
        } // retranslateUi
     
    };
     
    namespace Ui {
        class FenPrincipale: public Ui_FenPrincipale {};
    } // namespace Ui
     
    QT_END_NAMESPACE
     
    #endif // UI_FENPRINCIPALE_H

  15. #15
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut
    Peut tu posté une version compilable pour tester?

  16. #16
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    Oki, je vous est envoyé un mp avec la version du programme compilé et les sources.

    Les programmes compilés :

    La version release_fondecran = fond écran mais les boutons marchent pas
    La version release_bouton = les boutons marchent mais le fond bug

    Pour les sources, tout est là, merci de pas redistribuer

    Merci pour l'aide que vous apportez pour mon programme, c'est très gentil.

  17. #17
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 033
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 033
    Points : 13 968
    Points
    13 968
    Par défaut
    Salut,
    j'ai trouvé ton problème mais pas la solution.
    Le problème viens du styleSheet que tu applique sur le fond dans designer.
    Comme il est parent de tout le monde, il applique le styleSheet aux enfant...
    D'où tes messagebox avec l'image. Par contre je ne sait pas pourquoi cela ne s'applique pas sur ta widget principale...
    Je ne sait pas comment résoudre ton problème. Je n'aime et ne connait pas le designer.
    Au pire tu met l'image a la main. Regarde comment s'utilise les pallettes.

  18. #18
    Membre à l'essai
    Profil pro
    Inscrit en
    Février 2008
    Messages
    40
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 40
    Points : 18
    Points
    18
    Par défaut
    C'est bon j'ai trouvé la solution en ajouter un widget, maintenant tout marche, mon programme est fonctionnel, merci encore pour avoir passer du temps à m'aider. Il me reste juste un petit problème à régler avec Vista . Il faudrait que "Démarrer dans" sur le raccourcir créer par Inno Setup soit rempli par le lien du dossier d'installation sinon il marche pas... Ah Vista... je l'aime vraiment pas
    Plus qu'à chercher une solution

    Merci encore

Discussions similaires

  1. [AJAX] Div résultat auto complétion ne fonctionne pas
    Par chipmunkette dans le forum AJAX
    Réponses: 0
    Dernier message: 27/05/2014, 15h36
  2. [XL-2000] valeur dans filtre auto qui ne fonctionne pas
    Par slavovensky dans le forum Macros et VBA Excel
    Réponses: 9
    Dernier message: 20/05/2010, 10h02
  3. QObject::connect ne fonctionne pas
    Par ProgVal dans le forum Débuter
    Réponses: 29
    Dernier message: 08/09/2009, 23h22
  4. RPC over HTTP (connection ne fonctionne pas)
    Par E n x dans le forum Exchange Server
    Réponses: 0
    Dernier message: 29/11/2008, 17h11
  5. [AIDE] Auto-Completion Ne Fonctionne Pas
    Par Diablo_22 dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 12/11/2008, 17h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo