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

C++ Discussion :

probleme d'execution :segmentation fault


Sujet :

C++

  1. #1
    Membre du Club
    Inscrit en
    Avril 2007
    Messages
    71
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 71
    Points : 46
    Points
    46
    Par défaut probleme d'execution :segmentation fault
    Bonjour,
    j'ai u probleme dans mon application ou j'ai une erreur dans la lib de QT4 qui se declenche lorsque j'execute et non pas je compile cette erreur est la suivante apres un run avec gdb :


    (gdb) run
    Starting program: /home/lassoued/ogr2gui-0.5/ogr2gui-0
    [Thread debugging using libthread_db enabled]
    Hello, new world!
    [New Thread 0xb6817920 (LWP 7643)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb6817920 (LWP 7643)]
    0xb6fb8ea9 in QObject::objectName () from /usr/lib/libQtCore.so.4
    voila mon code :

    App.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
    #ifndef APP
    #define APP
     
    /*!
     *      \class App
     *
     */
    #include "../inc/Frm.h"
     
    class App 
    {
    	public:
    		App(void );
    		~App( void );
     
     
    	private:
     
    		//Frm *theFrm;
     
    		/*!
                     *      \fn virtual bool OnInit( void );
                     *      \brief Inits the Application
                     */
    		virtual bool OnInit( void );
    };
     
    #endif

    App.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
     
    #include "../src/Frm.cpp"
     
    #include "../inc/App.h"
     
    #include <iostream>
     
     
     
    #include <qapplication.h>
    #include <QtGui/QMainWindow>
     
     
     
    //IMPLEMENT_APP( App )
     
    App::App( void )
    {
     
    }
     
    App::~App( void )
    {
     
    }
    bool App::OnInit( void )
    {
     
     
        return true;
    }
     
     
    int main( void )
    {
     
    QMainWindow *MainWindow;
     
    Frm *theFrm = new Frm(  );
    theFrm->setupUi(MainWindow);
    std::cin>>x;
        return 0;
    }

    Frm.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
     
    #ifndef FRM
    #define FRM
    #include <QtCore/QVariant>
    #include <QtGui/QAction>
    #include <QtGui/QApplication>
    #include <QtGui/QButtonGroup>
    #include <QtGui/QComboBox>
    #include <QtGui/QGridLayout>
    #include <QtGui/QGroupBox>
    #include <QtGui/QHBoxLayout>
    #include <QtGui/QLabel>
    #include <QtGui/QLineEdit>
    #include <QtGui/QMainWindow>
    #include <QtGui/QMenu>
    #include <QtGui/QMenuBar>
    #include <QtGui/QPushButton>
    #include <QtGui/QRadioButton>
    #include <QtGui/QStatusBar>
    #include <QtGui/QTabWidget>
    #include <QtGui/QTextEdit>
    #include <QtGui/QToolBar>
    #include <QtGui/QVBoxLayout>
    #include <QtGui/QWidget>
     
    QT_BEGIN_NAMESPACE
    /*!
     *      \class Frm
     *      \brief wxWidgets Frame
     *      \author Olivier Pilotte
     */
    class Frm 
    {
    	private:
     
    		// ogr
    		Ogr *ogr;
     
    		string error;
     
    		bool source;
    		bool driver;
    		bool target;
     
     
     
     
     
     
    	public:
        //QMainWindow *MainWindow;
        QAction *mnuQuit;
        QAction *mnuGdalHelp;
        QAction *mnuOgr2guiHelp;
        QAction *mnuAbout;
        QAction *actionAbout;
        QWidget *centralwidget;
        QHBoxLayout *horizontalLayout_37;
        QTabWidget *thePanel;
        QWidget *pnlFile;
        QWidget *widget;
        QWidget *verticalLayoutWidget;
        QVBoxLayout *verticalLayout_5;
        QGroupBox *grpFileSource;
        QWidget *gridLayoutWidget;
        QGridLayout *gridLayout_17;
        QHBoxLayout *horizontalLayout_2;
        QLineEdit *txtFolderSource;
        QPushButton *btnFileSource_2;
        QLabel *lblFileSQuery;
        QLabel *lblFileSourceProjection;
        QLabel *lblFolderSource;
        QLineEdit *txtFileSQuery;
        QLineEdit *txtFileSourceProjection;
        QGroupBox *groupBox_2;
        QWidget *gridLayoutWidget_2;
        QGridLayout *gridLayout;
        QLabel *lblFileFormat;
        QLabel *lblFileProjection;
        QLabel *label_5;
        QComboBox *cmbFileFormat;
        QHBoxLayout *horizontalLayout_3;
        QLineEdit *lineEdit_4;
        QPushButton *btnFileTarget;
        QHBoxLayout *horizontalLayout_4;
        QLineEdit *txtFileProjection;
        QComboBox *cmbFileProjection;
        QHBoxLayout *horizontalLayout;
        QRadioButton *radFileAppend;
        QRadioButton *radFileOvrwrt;
        QRadioButton *radFileUpdate;
        QTextEdit *txtFileOutput;
        QWidget *widget_2;
        QWidget *horizontalLayoutWidget;
        QHBoxLayout *horizontalLayout_11;
        QPushButton *btnFileExecute;
        QPushButton *btnFileQuit;
        QWidget *pnlFolder;
        QWidget *widget_3;
        QWidget *verticalLayoutWidget_2;
        QVBoxLayout *verticalLayout_4;
        QGroupBox *groupBox_5;
        QWidget *gridLayoutWidget_5;
        QGridLayout *gridLayout_5;
        QVBoxLayout *verticalLayout_6;
        QLabel *label_13;
        QRadioButton *radAllFolderSourceFiles;
        QRadioButton *radNonFolderSourceFiles;
        QLabel *label_14;
        QHBoxLayout *horizontalLayout_12;
        QLineEdit *lineEdit_9;
        QPushButton *btnFolderSource;
        QTextEdit *textEdit_5;
        QGroupBox *groupBox_6;
        QWidget *gridLayoutWidget_6;
        QGridLayout *gridLayout_6;
        QLabel *lblFolderTarget;
        QLabel *lblFolderFormat;
        QLabel *lblFolderProjection;
        QLabel *lblFolderTargetFiles;
        QHBoxLayout *horizontalLayout_13;
        QLineEdit *txtFolderTarget;
        QPushButton *btnFolderTarget;
        QComboBox *cmbFolderFormat;
        QHBoxLayout *horizontalLayout_14;
        QLineEdit *txtFolderProjection;
        QComboBox *cmbFolderProjection;
        QTextEdit *lstFolderTargetFiles;
        QTextEdit *txtFolderOutput;
        QWidget *widget_4;
        QWidget *horizontalLayoutWidget_2;
        QHBoxLayout *horizontalLayout_6;
        QPushButton *btnFolderExecute;
        QPushButton *pushButton_9;
        QMenuBar *theMenu;
        QMenu *fileMenu;
        QMenu *aboutMenu;
        QStatusBar *statusbar;
        QToolBar *toolBar;
     
      //    methode setup of the window *****
     
     
    void setupUi(QMainWindow* );
     
     
    void retranslateUi(QMainWindow* );
     
    	/*!
                     *      \fn Frm( const wxString &, const wxPoint &, const wxSize & );
                     *      \brief Constructor
                     */
    		Frm(void );
     
    		/*!
                     *      \fn ~Frm
                     *      \brief Destructor
                     */
    		~Frm( void );
    };
     
    namespace Ui {
        class MainWindow: public Frm {};
    } // namespace Ui
     
    QT_END_NAMESPACE
     
    #endif
     
     
    //*********************************************************
    /********************************************************************************
    ** Form generated from reading ui file 'FrmW10261.ui'
    **
    ** Created: Tue Jun 2 20:33:12 2009
    **      by: Qt User Interface Compiler version 4.4.0
    **
    ** WARNING! All changes made in this file will be lost when recompiling ui file!
    ********************************************************************************/


    Frm.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
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
     
     
    //#include "../src/Ldr.cpp"
    //#include "../src/Dnd.cpp"
    #include "../src/Ogr.cpp"
     
    #include "../inc/Frm.h"
     
    Frm::Frm( void )
    {
     
    }
     
    Frm::~Frm( void )
    {
     
    }
     
    void Frm::setupUi(QMainWindow *MainWindow)
        {
        if (MainWindow->objectName().isEmpty())
           MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
        MainWindow->resize(572, 595);
        mnuQuit = new QAction(MainWindow);
        mnuQuit->setObjectName(QString::fromUtf8("mnuQuit"));
        mnuGdalHelp = new QAction(MainWindow);
        mnuGdalHelp->setObjectName(QString::fromUtf8("mnuGdalHelp"));
        mnuOgr2guiHelp = new QAction(MainWindow);
        mnuOgr2guiHelp->setObjectName(QString::fromUtf8("mnuOgr2guiHelp"));
        mnuAbout = new QAction(MainWindow);
        mnuAbout->setObjectName(QString::fromUtf8("mnuAbout"));
        actionAbout = new QAction(MainWindow);
        actionAbout->setObjectName(QString::fromUtf8("actionAbout"));
        centralwidget = new QWidget(MainWindow);
        centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
        centralwidget->setGeometry(QRect(0, 37, 572, 535));
        centralwidget->setLayoutDirection(Qt::LeftToRight);
        horizontalLayout_37 = new QHBoxLayout(centralwidget);
        horizontalLayout_37->setObjectName(QString::fromUtf8("horizontalLayout_37"));
        thePanel = new QTabWidget(centralwidget);
        thePanel->setObjectName(QString::fromUtf8("thePanel"));
        QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(thePanel->sizePolicy().hasHeightForWidth());
        thePanel->setSizePolicy(sizePolicy);
        thePanel->setMaximumSize(QSize(16777215, 16777215));
        pnlFile = new QWidget();
        pnlFile->setObjectName(QString::fromUtf8("pnlFile"));
       /* j'ai suprimé une partie ici pour que le code peut etre inserer dans ce forum 30000 caractere */
     
        btnFileSource_2 = new QPushButton(gridLayoutWidget);
        btnFileSource_2->setObjectName(QString::fromUtf8("btnFileSource_2"));
     
        horizontalLayout_2->addWidget(btnFileSource_2);
     
     
        gridLayout_17->addLayout(horizontalLayout_2, 0, 1, 1, 1);
     
        lblFileSQuery = new QLabel(gridLayoutWidget);
        lblFileSQuery->setObjectName(QString::fromUtf8("lblFileSQuery"));
     
        gridLayout_17->addWidget(lblFileSQuery, 2, 0, 1, 1);
     
        lblFileSourceProjection = new QLabel(gridLayoutWidget);
        lblFileSourceProjection->setObjectName(QString::fromUtf8("lblFileSourceProjection"));
     
        gridLayout_17->addWidget(lblFileSourceProjection, 1, 0, 1, 1);
     
        lblFolderSource = new QLabel(gridLayoutWidget);
        lblFolderSource->setObjectName(QString::fromUtf8("lblFolderSource"));
     
        gridLayout_17->addWidget(lblFolderSource, 0, 0, 1, 1);
     
        txtFileSQuery = new QLineEdit(gridLayoutWidget);
        txtFileSQuery->setObjectName(QString::fromUtf8("txtFileSQuery"));
     
        gridLayout_17->addWidget(txtFileSQuery, 2, 1, 1, 1);
     
        txtFileSourceProjection = new QLineEdit(gridLayoutWidget);
        txtFileSourceProjection->setObjectName(QString::fromUtf8("txtFileSourceProjection"));
     
        gridLayout_17->addWidget(txtFileSourceProjection, 1, 1, 1, 1);
     
     
        verticalLayout_5->addWidget(grpFileSource);
     
        groupBox_2 = new QGroupBox(verticalLayoutWidget);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        groupBox_2->setEnabled(false);
        QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Preferred);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(groupBox_2->sizePolicy().hasHeightForWidth());
        groupBox_2->setSizePolicy(sizePolicy2);
        gridLayoutWidget_2 = new QWidget(groupBox_2);
        gridLayoutWidget_2->setObjectName(QString::fromUtf8("gridLayoutWidget_2"));
        gridLayoutWidget_2->setGeometry(QRect(9, 9, 511, 161));
        gridLayout = new QGridLayout(gridLayoutWidget_2);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        gridLayout->setVerticalSpacing(20);
        gridLayout->setContentsMargins(0, 10, 0, 10);
        lblFileFormat = new QLabel(gridLayoutWidget_2);
        lblFileFormat->setObjectName(QString::fromUtf8("lblFileFormat"));
        QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Minimum);
        sizePolicy3.setHorizontalStretch(0);
        sizePolicy3.setVerticalStretch(0);
        sizePolicy3.setHeightForWidth(lblFileFormat->sizePolicy().hasHeightForWidth());
        lblFileFormat->setSizePolicy(sizePolicy3);
     
        gridLayout->addWidget(lblFileFormat, 0, 0, 1, 1);
     
        lblFileProjection = new QLabel(gridLayoutWidget_2);
        lblFileProjection->setObjectName(QString::fromUtf8("lblFileProjection"));
     
        gridLayout->addWidget(lblFileProjection, 2, 0, 1, 1);
     
        label_5 = new QLabel(gridLayoutWidget_2);
        label_5->setObjectName(QString::fromUtf8("label_5"));
     
        gridLayout->addWidget(label_5, 1, 0, 1, 1);
     
        cmbFileFormat = new QComboBox(gridLayoutWidget_2);
        cmbFileFormat->setObjectName(QString::fromUtf8("cmbFileFormat"));
        QSizePolicy sizePolicy4(QSizePolicy::Minimum, QSizePolicy::Fixed);
        sizePolicy4.setHorizontalStretch(170);
        sizePolicy4.setVerticalStretch(0);
        sizePolicy4.setHeightForWidth(cmbFileFormat->sizePolicy().hasHeightForWidth());
        cmbFileFormat->setSizePolicy(sizePolicy4);
     
        gridLayout->addWidget(cmbFileFormat, 0, 1, 1, 1);
     
        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        horizontalLayout_3->setSizeConstraint(QLayout::SetDefaultConstraint);
        lineEdit_4 = new QLineEdit(gridLayoutWidget_2);
        lineEdit_4->setObjectName(QString::fromUtf8("lineEdit_4"));
     
        horizontalLayout_3->addWidget(lineEdit_4);
     
        btnFileTarget = new QPushButton(gridLayoutWidget_2);
        btnFileTarget->setObjectName(QString::fromUtf8("btnFileTarget"));
     
        horizontalLayout_3->addWidget(btnFileTarget);
     
     
        gridLayout->addLayout(horizontalLayout_3, 1, 1, 1, 1);
     
        horizontalLayout_4 = new QHBoxLayout();
        horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
        txtFileProjection = new QLineEdit(gridLayoutWidget_2);
        txtFileProjection->setObjectName(QString::fromUtf8("txtFileProjection"));
        txtFileProjection->setMaximumSize(QSize(50, 16777215));
     
        horizontalLayout_4->addWidget(txtFileProjection);
     
        cmbFileProjection = new QComboBox(gridLayoutWidget_2);
        cmbFileProjection->setObjectName(QString::fromUtf8("cmbFileProjection"));
        sizePolicy2.setHeightForWidth(cmbFileProjection->sizePolicy().hasHeightForWidth());
        cmbFileProjection->setSizePolicy(sizePolicy2);
     
        horizontalLayout_4->addWidget(cmbFileProjection);
     
     
        gridLayout->addLayout(horizontalLayout_4, 2, 1, 1, 1);
     
        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        radFileAppend = new QRadioButton(gridLayoutWidget_2);
        radFileAppend->setObjectName(QString::fromUtf8("radFileAppend"));
     
        horizontalLayout->addWidget(radFileAppend);
     
        radFileOvrwrt = new QRadioButton(gridLayoutWidget_2);
        radFileOvrwrt->setObjectName(QString::fromUtf8("radFileOvrwrt"));
     
        horizontalLayout->addWidget(radFileOvrwrt);
     
        radFileUpdate = new QRadioButton(gridLayoutWidget_2);
        radFileUpdate->setObjectName(QString::fromUtf8("radFileUpdate"));
     
        horizontalLayout->addWidget(radFileUpdate);
     
     
        gridLayout->addLayout(horizontalLayout, 3, 1, 1, 1);
     
        lblFileFormat->raise();
        lblFileProjection->raise();
        label_5->raise();
        cmbFileFormat->raise();
     
        verticalLayout_5->addWidget(groupBox_2);
     
        txtFileOutput = new QTextEdit(verticalLayoutWidget);
        txtFileOutput->setObjectName(QString::fromUtf8("txtFileOutput"));
        sizePolicy1.setHeightForWidth(txtFileOutput->sizePolicy().hasHeightForWidth());
        txtFileOutput->setSizePolicy(sizePolicy1);
        txtFileOutput->setMaximumSize(QSize(16777215, 60));
     
        verticalLayout_5->addWidget(txtFileOutput);
     
        widget_2 = new QWidget(verticalLayoutWidget);
        widget_2->setObjectName(QString::fromUtf8("widget_2"));
        widget_2->setMaximumSize(QSize(16777215, 50));
        horizontalLayoutWidget = new QWidget(widget_2);
        horizontalLayoutWidget->setObjectName(QString::fromUtf8("horizontalLayoutWidget"));
        horizontalLayoutWidget->setGeometry(QRect(0, 0, 521, 51));
        horizontalLayout_11 = new QHBoxLayout(horizontalLayoutWidget);
        horizontalLayout_11->setSpacing(50);
        horizontalLayout_11->setObjectName(QString::fromUtf8("horizontalLayout_11"));
        horizontalLayout_11->setContentsMargins(50, 0, 50, 0);
        btnFileExecute = new QPushButton(horizontalLayoutWidget);
        btnFileExecute->setObjectName(QString::fromUtf8("btnFileExecute"));
     
        horizontalLayout_11->addWidget(btnFileExecute);
     
        btnFileQuit = new QPushButton(horizontalLayoutWidget);
        btnFileQuit->setObjectName(QString::fromUtf8("btnFileQuit"));
     
        horizontalLayout_11->addWidget(btnFileQuit);
     
     
        verticalLayout_5->addWidget(widget_2);
     
        thePanel->addTab(pnlFile, QString());
        pnlFolder = new QWidget();
        pnlFolder->setObjectName(QString::fromUtf8("pnlFolder"));
        pnlFolder->setGeometry(QRect(0, 0, 550, 489));
        sizePolicy.setHeightForWidth(pnlFolder->sizePolicy().hasHeightForWidth());
        pnlFolder->setSizePolicy(sizePolicy);
        widget_3 = new QWidget(pnlFolder);
        widget_3->setObjectName(QString::fromUtf8("widget_3"));
        widget_3->setGeometry(QRect(0, 0, 541, 461));
        sizePolicy.setHeightForWidth(widget_3->sizePolicy().hasHeightForWidth());
        widget_3->setSizePolicy(sizePolicy);
        verticalLayoutWidget_2 = new QWidget(widget_3);
        verticalLayoutWidget_2->setObjectName(QString::fromUtf8("verticalLayoutWidget_2"));
        verticalLayoutWidget_2->setGeometry(QRect(0, 0, 531, 461));
        verticalLayout_4 = new QVBoxLayout(verticalLayoutWidget_2);
        verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
        verticalLayout_4->setContentsMargins(0, 0, 0, 0);
        groupBox_5 = new QGroupBox(verticalLayoutWidget_2);
        groupBox_5->setObjectName(QString::fromUtf8("groupBox_5"));
        sizePolicy.setHeightForWidth(groupBox_5->sizePolicy().hasHeightForWidth());
        groupBox_5->setSizePolicy(sizePolicy);
        gridLayoutWidget_5 = new QWidget(groupBox_5);
        gridLayoutWidget_5->setObjectName(QString::fromUtf8("gridLayoutWidget_5"));
        gridLayoutWidget_5->setGeometry(QRect(10, 20, 511, 131));
        gridLayout_5 = new QGridLayout(gridLayoutWidget_5);
        gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
        gridLayout_5->setContentsMargins(0, 0, 0, 0);
        verticalLayout_6 = new QVBoxLayout();
        verticalLayout_6->setObjectName(QString::fromUtf8("verticalLayout_6"));
        label_13 = new QLabel(gridLayoutWidget_5);
        label_13->setObjectName(QString::fromUtf8("label_13"));
     
        verticalLayout_6->addWidget(label_13);
     
        radAllFolderSourceFiles = new QRadioButton(gridLayoutWidget_5);
        radAllFolderSourceFiles->setObjectName(QString::fromUtf8("radAllFolderSourceFiles"));
     
        verticalLayout_6->addWidget(radAllFolderSourceFiles);
     
        radNonFolderSourceFiles = new QRadioButton(gridLayoutWidget_5);
        radNonFolderSourceFiles->setObjectName(QString::fromUtf8("radNonFolderSourceFiles"));
     
        verticalLayout_6->addWidget(radNonFolderSourceFiles);
     
     
        gridLayout_5->addLayout(verticalLayout_6, 2, 0, 1, 1);
     
        label_14 = new QLabel(gridLayoutWidget_5);
        label_14->setObjectName(QString::fromUtf8("label_14"));
     
        gridLayout_5->addWidget(label_14, 1, 0, 1, 1);
     
        horizontalLayout_12 = new QHBoxLayout();
        horizontalLayout_12->setObjectName(QString::fromUtf8("horizontalLayout_12"));
        lineEdit_9 = new QLineEdit(gridLayoutWidget_5);
        lineEdit_9->setObjectName(QString::fromUtf8("lineEdit_9"));
     
        horizontalLayout_12->addWidget(lineEdit_9);
     
        btnFolderSource = new QPushButton(gridLayoutWidget_5);
        btnFolderSource->setObjectName(QString::fromUtf8("btnFolderSource"));
     
        horizontalLayout_12->addWidget(btnFolderSource);
     
     
        gridLayout_5->addLayout(horizontalLayout_12, 1, 1, 1, 1);
     
        textEdit_5 = new QTextEdit(gridLayoutWidget_5);
        textEdit_5->setObjectName(QString::fromUtf8("textEdit_5"));
     
        gridLayout_5->addWidget(textEdit_5, 2, 1, 1, 1);
     
     
        verticalLayout_4->addWidget(groupBox_5);
     
        groupBox_6 = new QGroupBox(verticalLayoutWidget_2);
        groupBox_6->setObjectName(QString::fromUtf8("groupBox_6"));
        sizePolicy.setHeightForWidth(groupBox_6->sizePolicy().hasHeightForWidth());
        groupBox_6->setSizePolicy(sizePolicy);
        gridLayoutWidget_6 = new QWidget(groupBox_6);
        gridLayoutWidget_6->setObjectName(QString::fromUtf8("gridLayoutWidget_6"));
        gridLayoutWidget_6->setGeometry(QRect(9, 19, 511, 141));
        gridLayout_6 = new QGridLayout(gridLayoutWidget_6);
        gridLayout_6->setObjectName(QString::fromUtf8("gridLayout_6"));
        gridLayout_6->setContentsMargins(0, 0, 0, 0);
        lblFolderTarget = new QLabel(gridLayoutWidget_6);
        lblFolderTarget->setObjectName(QString::fromUtf8("lblFolderTarget"));
     
        gridLayout_6->addWidget(lblFolderTarget, 0, 0, 1, 1);
     
        lblFolderFormat = new QLabel(gridLayoutWidget_6);
        lblFolderFormat->setObjectName(QString::fromUtf8("lblFolderFormat"));
     
        gridLayout_6->addWidget(lblFolderFormat, 1, 0, 1, 1);
     
        lblFolderProjection = new QLabel(gridLayoutWidget_6);
        lblFolderProjection->setObjectName(QString::fromUtf8("lblFolderProjection"));
     
        gridLayout_6->addWidget(lblFolderProjection, 2, 0, 1, 1);
     
        lblFolderTargetFiles = new QLabel(gridLayoutWidget_6);
        lblFolderTargetFiles->setObjectName(QString::fromUtf8("lblFolderTargetFiles"));
     
        gridLayout_6->addWidget(lblFolderTargetFiles, 3, 0, 1, 1);
     
        horizontalLayout_13 = new QHBoxLayout();
        horizontalLayout_13->setObjectName(QString::fromUtf8("horizontalLayout_13"));
        txtFolderTarget = new QLineEdit(gridLayoutWidget_6);
        txtFolderTarget->setObjectName(QString::fromUtf8("txtFolderTarget"));
     
        horizontalLayout_13->addWidget(txtFolderTarget);
     
        btnFolderTarget = new QPushButton(gridLayoutWidget_6);
        btnFolderTarget->setObjectName(QString::fromUtf8("btnFolderTarget"));
     
        horizontalLayout_13->addWidget(btnFolderTarget);
     
     
        gridLayout_6->addLayout(horizontalLayout_13, 0, 1, 1, 1);
     
        cmbFolderFormat = new QComboBox(gridLayoutWidget_6);
        cmbFolderFormat->setObjectName(QString::fromUtf8("cmbFolderFormat"));
     
        gridLayout_6->addWidget(cmbFolderFormat, 1, 1, 1, 1);
     
        horizontalLayout_14 = new QHBoxLayout();
        horizontalLayout_14->setObjectName(QString::fromUtf8("horizontalLayout_14"));
        txtFolderProjection = new QLineEdit(gridLayoutWidget_6);
        txtFolderProjection->setObjectName(QString::fromUtf8("txtFolderProjection"));
        txtFolderProjection->setMaximumSize(QSize(50, 16777215));
     
        horizontalLayout_14->addWidget(txtFolderProjection);
     
        cmbFolderProjection = new QComboBox(gridLayoutWidget_6);
        cmbFolderProjection->setObjectName(QString::fromUtf8("cmbFolderProjection"));
        QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Fixed);
        sizePolicy5.setHorizontalStretch(0);
        sizePolicy5.setVerticalStretch(0);
        sizePolicy5.setHeightForWidth(cmbFolderProjection->sizePolicy().hasHeightForWidth());
        cmbFolderProjection->setSizePolicy(sizePolicy5);
     
        horizontalLayout_14->addWidget(cmbFolderProjection);
     
     
        gridLayout_6->addLayout(horizontalLayout_14, 2, 1, 1, 1);
     
        lstFolderTargetFiles = new QTextEdit(gridLayoutWidget_6);
        lstFolderTargetFiles->setObjectName(QString::fromUtf8("lstFolderTargetFiles"));
     
        gridLayout_6->addWidget(lstFolderTargetFiles, 3, 1, 1, 1);
     
     
        verticalLayout_4->addWidget(groupBox_6);
     
        txtFolderOutput = new QTextEdit(verticalLayoutWidget_2);
        txtFolderOutput->setObjectName(QString::fromUtf8("txtFolderOutput"));
        txtFolderOutput->setMaximumSize(QSize(16777215, 70));
     
        verticalLayout_4->addWidget(txtFolderOutput);
     
        widget_4 = new QWidget(verticalLayoutWidget_2);
        widget_4->setObjectName(QString::fromUtf8("widget_4"));
        sizePolicy2.setHeightForWidth(widget_4->sizePolicy().hasHeightForWidth());
        widget_4->setSizePolicy(sizePolicy2);
        widget_4->setMinimumSize(QSize(0, 50));
        horizontalLayoutWidget_2 = new QWidget(widget_4);
        horizontalLayoutWidget_2->setObjectName(QString::fromUtf8("horizontalLayoutWidget_2"));
        horizontalLayoutWidget_2->setGeometry(QRect(-1, 0, 521, 51));
        horizontalLayout_6 = new QHBoxLayout(horizontalLayoutWidget_2);
        horizontalLayout_6->setSpacing(50);
        horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
        horizontalLayout_6->setContentsMargins(50, 0, 50, 0);
        btnFolderExecute = new QPushButton(horizontalLayoutWidget_2);
        btnFolderExecute->setObjectName(QString::fromUtf8("btnFolderExecute"));
     
        horizontalLayout_6->addWidget(btnFolderExecute);
     
        pushButton_9 = new QPushButton(horizontalLayoutWidget_2);
        pushButton_9->setObjectName(QString::fromUtf8("pushButton_9"));
     
        horizontalLayout_6->addWidget(pushButton_9);
     
     
        verticalLayout_4->addWidget(widget_4);
     
        thePanel->addTab(pnlFolder, QString());
     
        horizontalLayout_37->addWidget(thePanel);
     
        MainWindow->setCentralWidget(centralwidget);
        theMenu = new QMenuBar(MainWindow);
        theMenu->setObjectName(QString::fromUtf8("theMenu"));
        theMenu->setGeometry(QRect(0, 0, 572, 26));
        fileMenu = new QMenu(theMenu);
        fileMenu->setObjectName(QString::fromUtf8("fileMenu"));
        aboutMenu = new QMenu(theMenu);
        aboutMenu->setObjectName(QString::fromUtf8("aboutMenu"));
        MainWindow->setMenuBar(theMenu);
        statusbar = new QStatusBar(MainWindow);
        statusbar->setObjectName(QString::fromUtf8("statusbar"));
        statusbar->setGeometry(QRect(0, 572, 572, 23));
        MainWindow->setStatusBar(statusbar);
        toolBar = new QToolBar(MainWindow);
        toolBar->setObjectName(QString::fromUtf8("toolBar"));
        toolBar->setGeometry(QRect(0, 26, 572, 11));
        MainWindow->addToolBar(Qt::TopToolBarArea, toolBar);
     
        theMenu->addAction(fileMenu->menuAction());
        theMenu->addAction(aboutMenu->menuAction());
        fileMenu->addAction(mnuQuit);
        aboutMenu->addAction(mnuGdalHelp);
        aboutMenu->addAction(mnuOgr2guiHelp);
        aboutMenu->addSeparator();
        aboutMenu->addAction(actionAbout);
     
        retranslateUi(MainWindow);
     
        thePanel->setCurrentIndex(1);
     
     
        QMetaObject::connectSlotsByName(MainWindow);
        } // setupUi
     
     
    void Frm::retranslateUi(QMainWindow *MainWindow)
        {
        MainWindow->setWindowTitle(QApplication::translate("MainWindow", "ogr2gui - Inventis", 0, QApplication::UnicodeUTF8));
        mnuQuit->setText(QApplication::translate("MainWindow", "Quit", 0, QApplication::UnicodeUTF8));
        mnuQuit->setShortcut(QApplication::translate("MainWindow", "Ctrl+Q", 0, QApplication::UnicodeUTF8));
        mnuGdalHelp->setText(QApplication::translate("MainWindow", "ogr2gui", 0, QApplication::UnicodeUTF8));
        mnuOgr2guiHelp->setText(QApplication::translate("MainWindow", "ogr2ogr", 0, QApplication::UnicodeUTF8));
        mnuAbout->setText(QApplication::translate("MainWindow", "About", 0, QApplication::UnicodeUTF8));
        actionAbout->setText(QApplication::translate("MainWindow", "About", 0, QApplication::UnicodeUTF8));
     
    #ifndef QT_NO_ACCESSIBILITY
        thePanel->setAccessibleName(QString());
    #endif // QT_NO_ACCESSIBILITY
     
        grpFileSource->setTitle(QApplication::translate("MainWindow", "Source", 0, QApplication::UnicodeUTF8));
        btnFileSource_2->setText(QApplication::translate("MainWindow", "Open", 0, QApplication::UnicodeUTF8));
        lblFileSQuery->setText(QApplication::translate("MainWindow", "SQL Query", 0, QApplication::UnicodeUTF8));
        lblFileSourceProjection->setText(QApplication::translate("MainWindow", "Projection", 0, QApplication::UnicodeUTF8));
        lblFolderSource->setText(QApplication::translate("MainWindow", "File name", 0, QApplication::UnicodeUTF8));
        groupBox_2->setTitle(QApplication::translate("MainWindow", "Target", 0, QApplication::UnicodeUTF8));
        lblFileFormat->setText(QApplication::translate("MainWindow", "Format", 0, QApplication::UnicodeUTF8));
        lblFileProjection->setText(QApplication::translate("MainWindow", "Projection", 0, QApplication::UnicodeUTF8));
        label_5->setText(QApplication::translate("MainWindow", "File name", 0, QApplication::UnicodeUTF8));
        btnFileTarget->setText(QApplication::translate("MainWindow", "Save", 0, QApplication::UnicodeUTF8));
        radFileAppend->setText(QApplication::translate("MainWindow", "Append", 0, QApplication::UnicodeUTF8));
        radFileOvrwrt->setText(QApplication::translate("MainWindow", "overwrite", 0, QApplication::UnicodeUTF8));
        radFileUpdate->setText(QApplication::translate("MainWindow", "update", 0, QApplication::UnicodeUTF8));
        btnFileExecute->setText(QApplication::translate("MainWindow", "Execute", 0, QApplication::UnicodeUTF8));
        btnFileQuit->setText(QApplication::translate("MainWindow", "Quit", 0, QApplication::UnicodeUTF8));
        thePanel->setTabText(thePanel->indexOf(pnlFile), QApplication::translate("MainWindow", "Tab 1", 0, QApplication::UnicodeUTF8));
        groupBox_5->setTitle(QApplication::translate("MainWindow", "Source", 0, QApplication::UnicodeUTF8));
        label_13->setText(QApplication::translate("MainWindow", "Files", 0, QApplication::UnicodeUTF8));
        radAllFolderSourceFiles->setText(QApplication::translate("MainWindow", "all", 0, QApplication::UnicodeUTF8));
        radNonFolderSourceFiles->setText(QApplication::translate("MainWindow", "none", 0, QApplication::UnicodeUTF8));
        label_14->setText(QApplication::translate("MainWindow", "Folder", 0, QApplication::UnicodeUTF8));
        btnFolderSource->setText(QApplication::translate("MainWindow", "Browse", 0, QApplication::UnicodeUTF8));
        groupBox_6->setTitle(QApplication::translate("MainWindow", "Target", 0, QApplication::UnicodeUTF8));
        lblFolderTarget->setText(QApplication::translate("MainWindow", "Folder", 0, QApplication::UnicodeUTF8));
        lblFolderFormat->setText(QApplication::translate("MainWindow", "Format", 0, QApplication::UnicodeUTF8));
        lblFolderProjection->setText(QApplication::translate("MainWindow", "Projection", 0, QApplication::UnicodeUTF8));
        lblFolderTargetFiles->setText(QApplication::translate("MainWindow", "Files", 0, QApplication::UnicodeUTF8));
        btnFolderTarget->setText(QApplication::translate("MainWindow", "Browse", 0, QApplication::UnicodeUTF8));
        btnFolderExecute->setText(QApplication::translate("MainWindow", "Execute", 0, QApplication::UnicodeUTF8));
        pushButton_9->setText(QApplication::translate("MainWindow", "Quit", 0, QApplication::UnicodeUTF8));
        thePanel->setTabText(thePanel->indexOf(pnlFolder), QApplication::translate("MainWindow", "Tab 2", 0, QApplication::UnicodeUTF8));
        fileMenu->setTitle(QApplication::translate("MainWindow", "File", 0, QApplication::UnicodeUTF8));
        aboutMenu->setTitle(QApplication::translate("MainWindow", "help", 0, QApplication::UnicodeUTF8));
        toolBar->setWindowTitle(QApplication::translate("MainWindow", "toolBar", 0, QApplication::UnicodeUTF8));
        } // retranslateUi


    Merciiiii

  2. #2
    Membre du Club
    Inscrit en
    Avril 2007
    Messages
    71
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 71
    Points : 46
    Points
    46
    Par défaut
    j'ai reglé le probleme c'est une initialisation de la mainwindow

    Merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 31/12/2009, 12h02
  2. Réponses: 2
    Dernier message: 15/01/2008, 12h09
  3. Probleme de segmentation fault avec sprintf
    Par MathG dans le forum C++
    Réponses: 5
    Dernier message: 14/12/2006, 01h12
  4. probleme segmentation fault
    Par newbee33 dans le forum C
    Réponses: 14
    Dernier message: 28/11/2006, 18h55
  5. [ERREUR D'EXECUTION] Segmentation Fault
    Par CestPasMoi dans le forum C++
    Réponses: 3
    Dernier message: 26/11/2005, 17h38

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