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

Qt Discussion :

undefined reference to `KURLComboReques


Sujet :

Qt

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    108
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 108
    Par défaut undefined reference to `KURLComboReques
    Bonjour, :p
    je debute en Qt et voici mon probleme
    j utilise KDevelop sous Linux pour developpez une interface en c++, sauf que lorsque j essaye de compiler, je rencontre cette erreur :

    /home/souayah/project/debug/src/Home.cpp:129: undefined reference to `KURLComboRequester::KURLComboRequester(QWidget*, char const*)'
    /home/souayah/project/debug/src/Home.cpp:174: undefined reference to `KURLComboRequester::KURLComboRequester(QWidget*, char const*)'
    /home/souayah/project/debug/src/Home.cpp:129: undefined reference to `KURLComboRequester::KURLComboRequester(QWidget*, char const*)'
    /home/souayah/project/debug/src/Home.cpp:174: undefined reference to `KURLComboRequester::KURLComboRequester(QWidget*, char const*)'


    voici le code de ma fenetre Home.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
    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
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    #include <kdialog.h>
    #include <klocale.h>
    /****************************************************************************
    ** Form implementation generated from reading ui file '/home/souayah/project/src/Home.ui'
    **
    ** Created: Di Jun 9 16:36:51 2009
    **
    ** WARNING! All changes made in this file will be lost!
    ****************************************************************************/
    
    #include "Home.h"
    
    #include <qvariant.h>
    #include <qlabel.h>
    #include <qframe.h>
    #include <qlineedit.h>
    #include <qpushbutton.h>
    #include <kurlrequester.h>
    #include <qlayout.h>
    #include <qtooltip.h>
    #include <qwhatsthis.h>
    #include "kurlrequester.h"
    #include "kcombobox.h"
    #include "kpushbutton.h"
    
    /*
     *  Constructs a Form1 as a child of 'parent', with the
     *  name 'name' and widget flags set to 'f'.
     */
    Form1::Form1( QWidget* parent, const char* name, WFlags fl )
        : QWidget( parent, name, fl )
    {
        if ( !name )
    	setName( "Form1" );
        QFont f( font() );
        f.setFamily( "Courier Std" );
        f.setPointSize( 14 );
        f.setBold( TRUE );
        f.setItalic( TRUE );
        setFont( f ); 
    
        textLabel1_3 = new QLabel( this, "textLabel1_3" );
        textLabel1_3->setGeometry( QRect( 280, 20, 460, 90 ) );
    
        frame31 = new QFrame( this, "frame31" );
        frame31->setGeometry( QRect( 620, 430, 441, 210 ) );
        frame31->setFrameShape( QFrame::StyledPanel );
        frame31->setFrameShadow( QFrame::Raised );
    
        textLabel1_2_2_2 = new QLabel( frame31, "textLabel1_2_2_2" );
        textLabel1_2_2_2->setGeometry( QRect( 30, 10, 160, 30 ) );
    
        frame33 = new QFrame( frame31, "frame33" );
        frame33->setGeometry( QRect( 10, 50, 400, 90 ) );
        frame33->setFrameShape( QFrame::StyledPanel );
        frame33->setFrameShadow( QFrame::Raised );
    
        textLabel1_2_2_3_2 = new QLabel( frame33, "textLabel1_2_2_3_2" );
        textLabel1_2_2_3_2->setGeometry( QRect( 20, 10, 90, 20 ) );
        QFont textLabel1_2_2_3_2_font(  textLabel1_2_2_3_2->font() );
        textLabel1_2_2_3_2_font.setPointSize( 10 );
        textLabel1_2_2_3_2_font.setItalic( FALSE );
        textLabel1_2_2_3_2->setFont( textLabel1_2_2_3_2_font ); 
    
        lineEdit2 = new QLineEdit( frame33, "lineEdit2" );
        lineEdit2->setGeometry( QRect( 100, 50, 40, 22 ) );
        QFont lineEdit2_font(  lineEdit2->font() );
        lineEdit2_font.setFamily( "Century Schoolbook L" );
        lineEdit2_font.setPointSize( 10 );
        lineEdit2_font.setBold( FALSE );
        lineEdit2_font.setItalic( FALSE );
        lineEdit2->setFont( lineEdit2_font ); 
    
        textLabel5 = new QLabel( frame33, "textLabel5" );
        textLabel5->setGeometry( QRect( 100, 30, 133, 20 ) );
        QFont textLabel5_font(  textLabel5->font() );
        textLabel5_font.setPointSize( 10 );
        textLabel5_font.setBold( FALSE );
        textLabel5_font.setItalic( FALSE );
        textLabel5->setFont( textLabel5_font ); 
    
        textLabel3 = new QLabel( frame33, "textLabel3" );
        textLabel3->setGeometry( QRect( 20, 30, 74, 20 ) );
        textLabel3->setPaletteForegroundColor( QColor( 5, 30, 255 ) );
        QFont textLabel3_font(  textLabel3->font() );
        textLabel3_font.setPointSize( 10 );
        textLabel3_font.setBold( FALSE );
        textLabel3_font.setItalic( FALSE );
        textLabel3->setFont( textLabel3_font ); 
    
        textLabel4 = new QLabel( frame33, "textLabel4" );
        textLabel4->setGeometry( QRect( 20, 50, 80, 20 ) );
        textLabel4->setPaletteForegroundColor( QColor( 5, 30, 255 ) );
        QFont textLabel4_font(  textLabel4->font() );
        textLabel4_font.setPointSize( 10 );
        textLabel4_font.setBold( FALSE );
        textLabel4_font.setItalic( FALSE );
        textLabel4->setFont( textLabel4_font ); 
    
        pushButton2 = new QPushButton( frame33, "pushButton2" );
        pushButton2->setGeometry( QRect( 330, 60, 60, 20 ) );
        QFont pushButton2_font(  pushButton2->font() );
        pushButton2_font.setPointSize( 12 );
        pushButton2_font.setBold( FALSE );
        pushButton2_font.setItalic( FALSE );
        pushButton2->setFont( pushButton2_font ); 
    
        frame25 = new QFrame( this, "frame25" );
        frame25->setGeometry( QRect( 50, 230, 540, 560 ) );
        frame25->setFrameShape( QFrame::StyledPanel );
        frame25->setFrameShadow( QFrame::Raised );
    
        textLabel1_2 = new QLabel( frame25, "textLabel1_2" );
        textLabel1_2->setGeometry( QRect( 10, 10, 210, 30 ) );
    
        frame27 = new QFrame( frame25, "frame27" );
        frame27->setGeometry( QRect( 20, 40, 490, 490 ) );
        frame27->setFrameShape( QFrame::StyledPanel );
        frame27->setFrameShadow( QFrame::Raised );
    
        frame26 = new QFrame( this, "frame26" );
        frame26->setGeometry( QRect( 50, 120, 540, 90 ) );
        frame26->setFrameShape( QFrame::StyledPanel );
        frame26->setFrameShadow( QFrame::Raised );
    
        textLabel1 = new QLabel( frame26, "textLabel1" );
        textLabel1->setGeometry( QRect( 10, 10, 140, 30 ) );
    
        --> kURLComboRequester3 = new KURLComboRequester( frame26, "kURLComboRequester3" ); 
        kURLComboRequester3->setGeometry( QRect( 10, 40, 500, 40 ) );
        QFont kURLComboRequester3_font(  kURLComboRequester3->font() );
        kURLComboRequester3_font.setPointSize( 10 );
        kURLComboRequester3_font.setBold( FALSE );
        kURLComboRequester3_font.setItalic( FALSE );
        kURLComboRequester3->setFont( kURLComboRequester3_font ); 
    
        frame28 = new QFrame( this, "frame28" );
        frame28->setGeometry( QRect( 620, 120, 440, 290 ) );
        frame28->setFrameShape( QFrame::StyledPanel );
        frame28->setFrameShadow( QFrame::Raised );
    
        textLabel1_2_2 = new QLabel( frame28, "textLabel1_2_2" );
        textLabel1_2_2->setGeometry( QRect( 20, 10, 160, 30 ) );
    
        pushButton2_2 = new QPushButton( frame28, "pushButton2_2" );
        pushButton2_2->setGeometry( QRect( 350, 260, 60, 20 ) );
        QFont pushButton2_2_font(  pushButton2_2->font() );
        pushButton2_2_font.setPointSize( 12 );
        pushButton2_2_font.setBold( FALSE );
        pushButton2_2_font.setItalic( FALSE );
        pushButton2_2->setFont( pushButton2_2_font ); 
    
        textLabel1_2_2_3 = new QLabel( frame28, "textLabel1_2_2_3" );
        textLabel1_2_2_3->setGeometry( QRect( 30, 40, 390, 30 ) );
        QFont textLabel1_2_2_3_font(  textLabel1_2_2_3->font() );
        textLabel1_2_2_3_font.setPointSize( 10 );
        textLabel1_2_2_3_font.setBold( FALSE );
        textLabel1_2_2_3_font.setItalic( FALSE );
        textLabel1_2_2_3->setFont( textLabel1_2_2_3_font ); 
    
        frame29 = new QFrame( frame28, "frame29" );
        frame29->setGeometry( QRect( 30, 81, 380, 170 ) );
        frame29->setFrameShape( QFrame::StyledPanel );
        frame29->setFrameShadow( QFrame::Raised );
    
        frame26_2 = new QFrame( this, "frame26_2" );
        frame26_2->setGeometry( QRect( 620, 680, 440, 110 ) );
        frame26_2->setFrameShape( QFrame::StyledPanel );
        frame26_2->setFrameShadow( QFrame::Raised );
    
        textLabel1_4 = new QLabel( frame26_2, "textLabel1_4" );
        textLabel1_4->setGeometry( QRect( 10, 10, 140, 30 ) );
    
       -->  kURLComboRequester3_2 = new KURLComboRequester( frame26_2, "kURLComboRequester3_2" );
        kURLComboRequester3_2->setGeometry( QRect( 20, 50, 380, 40 ) );
        QFont kURLComboRequester3_2_font(  kURLComboRequester3_2->font() );
        kURLComboRequester3_2_font.setPointSize( 10 );
        kURLComboRequester3_2_font.setBold( FALSE );
        kURLComboRequester3_2_font.setItalic( FALSE );
        kURLComboRequester3_2->setFont( kURLComboRequester3_2_font ); 
        languageChange();
        resize( QSize(1104, 827).expandedTo(minimumSizeHint()) );
        clearWState( WState_Polished );
    }
    
    /*
     *  Destroys the object and frees any allocated resources
     */
    Form1::~Form1()
    {
        // no need to delete child widgets, Qt does it all for us
    }
    
    /*
     *  Sets the strings of the subwidgets using the current
     *  language.
     */
    void Form1::languageChange()
    {
        setCaption( tr2i18n( "Home" ) );
        textLabel1_3->setText( tr2i18n( "<font size=\"+3\" face=\"Adobe Courier\"><font face=\"Georgia\"> <b>  <p align=\"center\"> Picture Recognition Project</p></b></font></font>" ) );
        textLabel1_2_2_2->setText( tr2i18n( "<font size=\"-1\" face=\"Adobe Courier\"><font face=\"Georgia\"><b> 4- </b>Select a character</font></font>" ) );
        textLabel1_2_2_3_2->setText( tr2i18n( "<i>\n"
    "character 1:\n"
    "</i>" ) );
        textLabel5->setText( tr2i18n( "P1(x1/y1)*P2(x2/y2)" ) );
        textLabel3->setText( tr2i18n( "<i>Position:</i>" ) );
        textLabel4->setText( tr2i18n( "<i>character:</i>" ) );
        pushButton2->setText( tr2i18n( "Delet&e" ) );
        pushButton2->setAccel( QKeySequence( tr2i18n( "Alt+E" ) ) );
        textLabel1_2->setText( tr2i18n( "<font size=\"-1\" face=\"Adobe Courier\"><font face=\"Georgia\"><b> 2- </b>Select a part of  the picture</font></font>" ) );
        textLabel1->setText( tr2i18n( "<font size=\"-1\" face=\"Adobe Courier\"><font face=\"Georgia\"> <b>1-</b> Upload a picture</font></font>" ) );
        textLabel1_2_2->setText( tr2i18n( "<font size=\"-1\" face=\"Adobe Courier\"><font face=\"Georgia\"><b> 3- </b>Select a character</font></font>" ) );
        pushButton2_2->setText( tr2i18n( "O&K" ) );
        pushButton2_2->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) );
        textLabel1_2_2_3->setText( tr2i18n( "<i>Position of the section: PtTL(x1/y1)*PtTR(x2/y2)*PtLL(x3/y3)*PtLR(x4/y4)</i>" ) );
        textLabel1_4->setText( tr2i18n( "<font size=\"-1\" face=\"Adobe Courier\"><font face=\"Georgia\"> <b>5-</b> Store in XML File</font></font>" ) );
    }
    
    #include "Home.moc"
    edit:les lignes d erreurs sont marque en rouge

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    108
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 108
    Par défaut
    je pense aue c est en relation avec les filebrowser!!

Discussions similaires

  1. winsock.h : undefined reference...
    Par abraxas dans le forum Dev-C++
    Réponses: 14
    Dernier message: 06/08/2012, 13h42
  2. Undefined reference compilation réseau
    Par Ren97 dans le forum Dev-C++
    Réponses: 11
    Dernier message: 08/03/2005, 09h46
  3. Compilation de xmms : undefined reference to...
    Par Michaël dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 04/02/2005, 19h05
  4. undefined reference to `xmlParseFile'
    Par Clemaster dans le forum Autres éditeurs
    Réponses: 2
    Dernier message: 25/06/2004, 20h38
  5. g++ : undefined reference to ...
    Par le_barbu dans le forum Autres éditeurs
    Réponses: 16
    Dernier message: 14/05/2004, 07h23

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