Форум программистов, компьютерный форум, киберфорум
C++ Qt
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.82/55: Рейтинг темы: голосов - 55, средняя оценка - 4.82
23 / 23 / 11
Регистрация: 15.04.2012
Сообщений: 183

Проект собирается, но не запускается

08.04.2013, 20:50. Показов 10490. Ответов 7
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
При запуске проекта вижу:
C++ (Qt)
1
2
3
4
5
Запускается C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\webkitwidgets\fancybrowser-build-Desktop_Qt_5_0_1_MSVC2010_32bit-_______\debug\fancybrowser.exe...
QML debugging is enabled. Only use this in a safe environment.
Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
Программа неожиданно завершилась.
C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\webkitwidgets\fancybrowser-build-Desktop_Qt_5_0_1_MSVC2010_32bit-_______\debug\fancybrowser.exe завершился с кодом -1073741819
А когда нажимаю "собрать", то вижу:
C++ (Qt)
1
2
3
4
5
19:49:18: Выполняются этапы для проекта fancybrowser...
19:49:18: Настройки не изменились, этап qmake пропускается.
19:49:18: Запускается: «C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe» 
    C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
19:49:18: Процесс «C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe» завершился нормально.
Как запустить проект?
0
IT_Exp
Эксперт
34794 / 4073 / 2104
Регистрация: 17.06.2006
Сообщений: 32,602
Блог
08.04.2013, 20:50
Ответы с готовыми решениями:

Проект собирается, но не запускается
Здравствуйте! У меня в Qt Creator проект собирается успешно, но при попытке его запустить вижу это (на аттаче). Что бы это могло быть?...

Не собирается проект
Вообщем немного предыстории: 1. Хотел воспользоватся утилитой windeployqt, ей не понравился путь к моему проекту. Там была папка...

Не собирается проект Qt
Вот такая вот ошибка, что это? "cl" *Ґ пў«пҐвбп ў*гваҐ**Ґ© Ё«Ё ў*Ґи*Ґ© Є®¬ *¤®©, ЁбЇ®«*塞®© Їа®Ја ¬¬®© Ё«Ё Ї ЄҐв*л¬ д ©«®¬. ...

7
Автор FAQ
 Аватар для Чистый
2733 / 1429 / 89
Регистрация: 08.09.2011
Сообщений: 3,746
Записей в блоге: 1
09.04.2013, 09:18
а вы код покажите, в последнее время у меня с гаданием на кофейной гуще туго....
0
09.04.2013, 09:36

Не по теме:

Цитата Сообщение от Чистый Посмотреть сообщение
а вы код покажите
А чо его показывать... это ж из примеров собирается.

0
23 / 23 / 11
Регистрация: 15.04.2012
Сообщений: 183
09.04.2013, 09:40  [ТС]
Цитата Сообщение от Чистый Посмотреть сообщение
а вы код покажите, в последнее время у меня с гаданием на кофейной гуще туго....
Если запускать через MSVS 2010 с подключением Qt, то работает код. Но мне нужно через QtCreator чтобы работало.
mainwindow.h
C++ (Qt)
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 <QtWidgets>
 
class QWebView;
QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE
 
//! [1]
class MainWindow : public QMainWindow
{
    Q_OBJECT
 
public:
    MainWindow(const QUrl& url);
 
protected slots:
 
    void adjustLocation();
    void changeLocation();
    void adjustTitle();
    void setProgress(int p);
    void finishLoading(bool);
 
    void viewSource();
    void slotSourceDownloaded();
 
    void highlightAllLinks();
    void rotateImages(bool invert);
    void removeGifImages();
    void removeInlineFrames();
    void removeObjectElements();
    void removeEmbeddedElements();
    void openFile(QString &str);
    QString parsing(QString str);
 
private:
    QString jQuery;
    QWebView *view;
    QLineEdit *locationEdit;
    QAction *rotateAction;
    int progress;
//! [1]
};

mainwindow.cpp

C++ (Qt)
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
498
499
#include <QtWidgets>
#include <QtNetwork>
#include <QtWebKitWidgets>
#include <QByteArray>
#include <QFile>
#include "mainwindow.h"
 
//! [1]
 
MainWindow::MainWindow(const QUrl& url)
{
    progress = 0;
 
    QFile file;
    file.setFileName(":/jquery.min.js");
    file.open(QIODevice::ReadOnly);
    jQuery = file.readAll();
    file.close();
//! [1]
 
    QNetworkProxyFactory::setUseSystemConfiguration(true);
 
//! [2]
    view = new QWebView(this);
    QString tempStr = locationEdit->text();
    if(locationEdit->text().startsWith("http://")){
        view->load(url);
    }
    else{
        openFile(tempStr);
    }
 
 
    connect(view, SIGNAL(loadFinished(bool)), SLOT(adjustLocation()));
    connect(view, SIGNAL(titleChanged(QString)), SLOT(adjustTitle()));
    connect(view, SIGNAL(loadProgress(int)), SLOT(setProgress(int)));
    connect(view, SIGNAL(loadFinished(bool)), SLOT(finishLoading(bool)));
 
    locationEdit = new QLineEdit(this);
    locationEdit->setSizePolicy(QSizePolicy::Expanding, locationEdit->sizePolicy().verticalPolicy());
    connect(locationEdit, SIGNAL(returnPressed()), SLOT(changeLocation()));
 
    QToolBar *toolBar = addToolBar(tr("Navigation"));
    toolBar->addAction(view->pageAction(QWebPage::Back));
    toolBar->addAction(view->pageAction(QWebPage::Forward));
    toolBar->addAction(view->pageAction(QWebPage::Reload));
    toolBar->addAction(view->pageAction(QWebPage::Stop));
    toolBar->addWidget(locationEdit);
//! [2]
 
    QMenu *viewMenu = menuBar()->addMenu(tr("&View"));
    QAction* viewSourceAction = new QAction("Page Source", this);
    connect(viewSourceAction, SIGNAL(triggered()), SLOT(viewSource()));
    viewMenu->addAction(viewSourceAction);
 
//! [3]
    QMenu *effectMenu = menuBar()->addMenu(tr("&Effect"));
    effectMenu->addAction("Highlight all links", this, SLOT(highlightAllLinks()));
 
    rotateAction = new QAction(this);
    rotateAction->setIcon(style()->standardIcon(QStyle::SP_FileDialogDetailedView));
    rotateAction->setCheckable(true);
    rotateAction->setText(tr("Turn images upside down"));
    connect(rotateAction, SIGNAL(toggled(bool)), this, SLOT(rotateImages(bool)));
    effectMenu->addAction(rotateAction);
 
    QMenu *toolsMenu = menuBar()->addMenu(tr("&Tools"));
    toolsMenu->addAction(tr("Remove GIF images"), this, SLOT(removeGifImages()));
    toolsMenu->addAction(tr("Remove all inline frames"), this, SLOT(removeInlineFrames()));
    toolsMenu->addAction(tr("Remove all object elements"), this, SLOT(removeObjectElements()));
    toolsMenu->addAction(tr("Remove all embedded elements"), this, SLOT(removeEmbeddedElements()));
 
    setCentralWidget(view);
    setUnifiedTitleAndToolBarOnMac(true);
}
//! [3]
 
void MainWindow::viewSource()
{
    QNetworkAccessManager* accessManager = view->page()->networkAccessManager();
    QNetworkRequest request(view->url());
    QNetworkReply* reply = accessManager->get(request);
    connect(reply, SIGNAL(finished()), this, SLOT(slotSourceDownloaded()));
}
 
void MainWindow::slotSourceDownloaded()
{
    QNetworkReply* reply = qobject_cast<QNetworkReply*>(const_cast<QObject*>(sender()));
    QTextEdit* textEdit = new QTextEdit(NULL);
    textEdit->setAttribute(Qt::WA_DeleteOnClose);
    textEdit->show();
    textEdit->setPlainText(reply->readAll());
    reply->deleteLater();
}
 
//! [4]
void MainWindow::adjustLocation()
{
    locationEdit->setText(view->url().toString());
}
 
void MainWindow::changeLocation()
{
    QUrl url = QUrl::fromUserInput(locationEdit->text());
    view->load(url);
    view->setFocus();
}
//! [4]
 
//! [5]
void MainWindow::adjustTitle()
{
    if (progress <= 0 || progress >= 100)
        setWindowTitle(view->title());
    else
        setWindowTitle(QString("%1 (%2%)").arg(view->title()).arg(progress));
}
 
void MainWindow::setProgress(int p)
{
    progress = p;
    adjustTitle();
}
//! [5]
 
//! [6]
void MainWindow::finishLoading(bool)
{
    progress = 100;
    adjustTitle();
    view->page()->mainFrame()->evaluateJavaScript(jQuery);
 
    rotateImages(rotateAction->isChecked());
}
//! [6]
 
//! [7]
void MainWindow::highlightAllLinks()
{
    // We append '; undefined' after the jQuery call here to prevent a possible recursion loop and crash caused by
    // the way the elements returned by the each iterator elements reference each other, which causes problems upon
    // converting them to QVariants.
    QString code = "$('a').each( function () { $(this).css('background-color', 'yellow') } ); undefined";
    view->page()->mainFrame()->evaluateJavaScript(code);
}
//! [7]
 
//! [8]
void MainWindow::rotateImages(bool invert)
{
    QString code;
 
    if (invert)
        code = "$('img').each( function () { $(this).css('-webkit-transition', '-webkit-transform 2s'); $(this).css('-webkit-transform', 'rotate(180deg)') } ); undefined";
    else
        code = "$('img').each( function () { $(this).css('-webkit-transition', '-webkit-transform 2s'); $(this).css('-webkit-transform', 'rotate(0deg)') } ); undefined";
    view->page()->mainFrame()->evaluateJavaScript(code);
}
//! [8]
 
//! [9]
void MainWindow::removeGifImages()
{
    QString code = "$('[src*=gif]').remove()";
    view->page()->mainFrame()->evaluateJavaScript(code);
}
 
void MainWindow::removeInlineFrames()
{
    QString code = "$('iframe').remove()";
    view->page()->mainFrame()->evaluateJavaScript(code);
}
 
void MainWindow::removeObjectElements()
{
    QString code = "$('object').remove()";
    view->page()->mainFrame()->evaluateJavaScript(code);
}
 
void MainWindow::removeEmbeddedElements()
{
    QString code = "$('embed').remove()";
    view->page()->mainFrame()->evaluateJavaScript(code);
}
//! [9]
 
void MainWindow::openFile(QString &file)
{
    QFile readFile(file);
    if (readFile.open(QIODevice::ReadOnly))
    {
        QTextStream in(&readFile);
        QByteArray buf;
        while(!in.atEnd())
        {
            buf.append(parsing(readFile.readLine()));
           view->setHtml(buf);
        }
        readFile.close();
    }
    else{
        view->setHtml("<b><font color = red >Error opening file</font></b>");
    }
}
 
 
void KursiveText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void MyImage(int& i, QString& str, QString& tempStr, int& tempStrInd);
void BoldText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void UnderLineText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void ColorText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void FontOfText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void UrlText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void SizeText(int& i, QString& str, QString& tempStr, int& tempStrInd);
void Endl(int& tempStrInd, QString& tempStr, int& i);
 
QString MainWindow::parsing(QString str)
{
    QString tempStr = "<html><body>";
        int tempStrInd = 12;
 
        for(int i = 0; i < str.size(); i++)
        {
            if(str[i] == '$')
            {
                i++;
 
                if(str[i] == 'K' && str[i+1] == '(')
                {
                    KursiveText(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'e' && str[i+1] == 'n'
                    && str[i+2] == 'd' && str[i+3] == 'l'
                    && str[i+4] == '(' && str[i+5] == ')')
                {
                    Endl(tempStrInd, tempStr, i);
                }
                else if(str[i] == 'A' && str[i+1] == '(')
                {
                    UrlText(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'I' && str[i+1] == 'M'
                    && str[i+2] == 'G' && str[i+3] == '(')
                {
                    MyImage(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'C' && str[i+1] == '(')
                {
                    ColorText(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'F' && str[i+1] == '(')
                {
                    FontOfText(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'B' && str[i+1] == '(')
                {
                    BoldText(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'U' && str[i+1] == '(')
                {
                    UnderLineText(i, str, tempStr, tempStrInd);
                }
                else if(str[i] == 'S' && str[i+1] == '(')
                {
                    SizeText(i, str, tempStr, tempStrInd);
                }
 
            }
            else
            {
                tempStr[tempStrInd] = str[i];
                tempStrInd++;
            }
 
        }
 
        tempStr += "</body></html>";
        return tempStr;
}
 
void UrlText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int UrlStrInd = i+2;
    i = UrlStrInd;
    int urlIndex = 0;
    QString UrlStr = "";
    QString chooseUrl = "";
 
 
    while(str[i] != '*')
    {
        chooseUrl[urlIndex] = str[UrlStrInd];
        urlIndex++; i++; UrlStrInd++;
    }
    i++; UrlStrInd++;
    while(str[i] != ')')
    {
        UrlStr[tempINDEX] = str[UrlStrInd];
        tempINDEX++; i++; UrlStrInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<a href =\"" + chooseUrl + " \"> ";
    htmlRezult += UrlStr + "</a>";
    UrlStr = htmlRezult;
 
    //WebBrowser *nWindow = new WebBrowser;
    //nWindow->openFile(UrlStr);
 
    tempStr += UrlStr;
    tempStrInd += UrlStr.size();
    UrlStr = "";
}
 
void MyImage(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int ImageInd = i+2;
    i = ImageInd;
    QString ImageStr = "";
 
    while(str[i] != ')')
    {
        ImageStr[tempINDEX] = str[ImageInd];
        tempINDEX++; i++; ImageInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<img src ="" " + ImageStr + "  /></body></html>";
    ImageStr = htmlRezult;
 
    tempStr += ImageStr;
    tempStrInd += ImageStr.size();
    ImageStr = "";
}
 
void FontOfText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int FontInd = i+2;
    i = FontInd;
    int fontIndex = 0;
    QString chooseFont = "";
    QString FontStr = "";
 
 
    while(str[i] != '*')
    {
        chooseFont[fontIndex] = str[FontInd];
        fontIndex++; i++; FontInd++;
    }
    i++; FontInd++;
    while(str[i] != ')')
    {
        FontStr[tempINDEX] = str[FontInd];
        tempINDEX++; i++; FontInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<font face ="" " + chooseFont + " ""> ";
    htmlRezult += FontStr + "</font>";
    FontStr = htmlRezult;
 
    tempStr += FontStr;
    tempStrInd += FontStr.size();
    FontStr = "";
}
 
void ColorText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int ColorInd = i+2;
    i = ColorInd;
    int colorIndex = 0;
    QString chooseColor = "";
    QString ColorStr = "";
 
    while(str[i] != '*')
    {
        chooseColor[colorIndex] = str[ColorInd];
        colorIndex++; i++; ColorInd++;
    }
    i++; ColorInd++;
    while(str[i] != ')')
    {
        ColorStr[tempINDEX] = str[ColorInd];
        tempINDEX++; i++; ColorInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<font color = " + chooseColor + ">";
    htmlRezult += ColorStr + "</font>";
    ColorStr = htmlRezult;
 
    tempStr += ColorStr;
    tempStrInd += ColorStr.size();
    ColorStr = "";
}
 
void KursiveText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int KursiveInd = i+2;
    i = KursiveInd;
    QString KursiveStr = "";
 
    while(str[i] != ')')
    {
        KursiveStr[tempINDEX] = str[KursiveInd];
        tempINDEX++; i++; KursiveInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<i>";
    htmlRezult += KursiveStr + "</i>";
    KursiveStr = htmlRezult;
 
    tempStr += KursiveStr;
    tempStrInd += KursiveStr.size();
    KursiveStr = "";
}
 
void BoldText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int BoldInd = i+2;
    i = BoldInd;
    QString BoldStr = "";
 
    while(str[i] != ')')
    {
        BoldStr[tempINDEX] = str[BoldInd];
        tempINDEX++; i++; BoldInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<b>";
    htmlRezult += BoldStr + "</b>";
    BoldStr = htmlRezult;
 
    tempStr += BoldStr;
    tempStrInd += BoldStr.size();
    BoldStr = "";
}
 
void UnderLineText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    int UnderLineInd = i+2;
    i = UnderLineInd;
    QString UnderLineStr = "";
 
    while(str[i] != ')')
    {
        UnderLineStr[tempINDEX] = str[UnderLineInd];
        tempINDEX++; i++; UnderLineInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<u>";
    htmlRezult += UnderLineStr + "</u>";
    UnderLineStr = htmlRezult;
 
    tempStr += UnderLineStr;
    tempStrInd += UnderLineStr.size();
    UnderLineStr = "";
}
 
void SizeText(int& i, QString& str, QString& tempStr, int& tempStrInd)
{
    int tempINDEX = 0;
    QString tempSize = str[i + 2];
    int  SizeStrInd = i + 3;
    i =  SizeStrInd;
    QString SizeStr = "";
 
    while(str[i] != ')')
    {
        SizeStr[tempINDEX] = str[ SizeStrInd];
        tempINDEX++; i++;  SizeStrInd++;
    }
 
    QString htmlRezult;
    htmlRezult = "<font size = " + tempSize + ">";
    htmlRezult += SizeStr + "</font>";
    SizeStr = htmlRezult;
 
    tempStr += SizeStr;
    tempStrInd += SizeStr.size();
    SizeStr = "";
}
 
void Endl(int& tempStrInd, QString& tempStr, int& i)
{
    tempStr += "<br/>";
    tempStrInd += 5;
    i += 5;
}
main.cpp
C++ (Qt)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <QtWidgets>
#include "mainwindow.h"
 
int main(int argc, char * argv[])
{
    QApplication app(argc, argv);
    QUrl url;
    if (argc > 1)
        url = QUrl::fromUserInput(argv[1]);
    else
        url = QUrl("http://www.google.com/ncr");
    MainWindow *browser = new MainWindow(url);
    browser->show();
    return app.exec();
}
file .pro
C++ (Qt)
1
2
3
4
5
6
7
8
9
QT      +=  webkitwidgets network widgets
HEADERS =   mainwindow.h
SOURCES =   main.cpp \
            mainwindow.cpp
RESOURCES = jquery.qrc
 
# install
target.path = $$[QT_INSTALL_EXAMPLES]/webkitwidgets/fancybrowser
INSTALLS += target
Собственно это переделанный пример браузера.
0
 Аватар для oxotnik
1665 / 1134 / 80
Регистрация: 21.08.2008
Сообщений: 4,734
Записей в блоге: 1
09.04.2013, 09:43
Креатор походу не может найти дебагер. В релизной версии из под креатора запускается?
0
23 / 23 / 11
Регистрация: 15.04.2012
Сообщений: 183
09.04.2013, 09:46  [ТС]
Цитата Сообщение от oxotnik Посмотреть сообщение
Креатор походу не может найти дебагер. В релизной версии из под креатора запускается?
Как это сделать?\ " В релизной версии из под креатора запускается?"
Я только начал пробовать в нём работать
0
 Аватар для oxotnik
1665 / 1134 / 80
Регистрация: 21.08.2008
Сообщений: 4,734
Записей в блоге: 1
09.04.2013, 09:49
Слева "Проекты" и "Изменить конфигурацию сборки" с Отладки на Выпуск.
0
23 / 23 / 11
Регистрация: 15.04.2012
Сообщений: 183
09.04.2013, 23:04  [ТС]
Цитата Сообщение от oxotnik Посмотреть сообщение
Слева "Проекты" и "Изменить конфигурацию сборки" с Отладки на Выпуск.
C++ (Qt)
1
2
3
4
Запускается C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\webkitwidgets\fancybrowser-build-Desktop_Qt_5_0_1_MSVC2010_32bit-______\release\fancybrowser.exe...
Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
Программа неожиданно завершилась.
C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\webkitwidgets\fancybrowser-build-Desktop_Qt_5_0_1_MSVC2010_32bit-______\release\fancybrowser.exe завершился с кодом -1073741819
Та же ерунда

Добавлено через 13 часов 8 минут
В общем нашёл проблему....пока не знаю как решить...но вот эти строки кода:
C++ (Qt)
1
2
3
4
5
6
7
QString tempStr = locationEdit->text();
    if(locationEdit->text().startsWith("http://")){
        view->load(url);
    }
    else{
        openFile(tempStr);
    }
Из-за них вся проблема...но почему не знаю, практически такая же запись но с другими исходниками, работает хорошо.
Собственно смысл в том что бы если с http начинается адрес то заходить на сайты, а если не с http то передовать путь в переменную string и её уже обрабатывать...
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
BasicMan
Эксперт
29316 / 5623 / 2384
Регистрация: 17.02.2009
Сообщений: 30,364
Блог
09.04.2013, 23:04
Помогаю со студенческими работами здесь

Не собирается проект
Постоянно выдает следующее: 20:34:03: Выполняются этапы для проекта Simulator_evreya_dev_0_1... 20:34:03: Запускается:...

Не собирается проект
Доброй ночи. Использую VS2010(Profess) + Qt libraries 4.8.3 for Windows (VS 2010, 235 MB) + Qt Visual Studio Add-in Когда в...

Долго собирается проект
Здравствуйте! Мой проект начал внезапно очень долго собираться.Сборка остановилась на 50 % и так уже пол часа. В консоли пишет : ...

Не собирается проект с GUI
Здравствуйте, форумчане! Никак не пойму, что случилось. Две ситуации: 1. приложения которые с GUI собираются, но не...

QT creator не собирается проект
Доброго времени суток столкнулся с проблемой, собираю проект все собирается,запускается, но вылетает на моей старой ошибке, которую уже...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
8
Ответ Создать тему
Новые блоги и статьи
PhpStorm 2025.3: WSL Terminal всегда стартует в ~
and_y87 14.12.2025
PhpStorm 2025. 3: WSL Terminal всегда стартует в ~ (home), игнорируя директорию проекта Симптом: После обновления до PhpStorm 2025. 3 встроенный терминал WSL открывается в домашней директории. . .
Access
VikBal 11.12.2025
Помогите пожалуйста !! Как объединить 2 одинаковые БД Access с разными данными.
Новый ноутбук
volvo 07.12.2025
Всем привет. По скидке в "черную пятницу" взял себе новый ноутбук Lenovo ThinkBook 16 G7 на Амазоне: Ryzen 5 7533HS 64 Gb DDR5 1Tb NVMe 16" Full HD Display Win11 Pro
Музыка, написанная Искусственным Интеллектом
volvo 04.12.2025
Всем привет. Некоторое время назад меня заинтересовало, что уже умеет ИИ в плане написания музыки для песен, и, собственно, исполнения этих самых песен. Стихов у нас много, уже вышли 4 книги, еще 3. . .
От async/await к виртуальным потокам в Python
IndentationError 23.11.2025
Армин Ронахер поставил под сомнение async/ await. Создатель Flask заявляет: цветные функции - провал, виртуальные потоки - решение. Не threading-динозавры, а новое поколение лёгких потоков. Откат?. . .
Поиск "дружественных имён" СОМ портов
Argus19 22.11.2025
Поиск "дружественных имён" СОМ портов На странице: https:/ / norseev. ru/ 2018/ 01/ 04/ comportlist_windows/ нашёл схожую тему. Там приведён код на С++, который показывает только имена СОМ портов, типа,. . .
Сколько Государство потратило денег на меня, обеспечивая инсулином.
Programma_Boinc 20.11.2025
Сколько Государство потратило денег на меня, обеспечивая инсулином. Вот решила сделать интересный приблизительный подсчет, сколько государство потратило на меня денег на покупку инсулинов. . . .
Ломающие изменения в C#.NStar Alpha
Etyuhibosecyu 20.11.2025
Уже можно не только тестировать, но и пользоваться C#. NStar - писать оконные приложения, содержащие надписи, кнопки, текстовые поля и даже изображения, например, моя игра "Три в ряд" написана на этом. . .
Мысли в слух
kumehtar 18.11.2025
Кстати, совсем недавно имел разговор на тему медитаций с людьми. И обнаружил, что они вообще не понимают что такое медитация и зачем она нужна. Самые базовые вещи. Для них это - когда просто люди. . .
Создание Single Page Application на фреймах
krapotkin 16.11.2025
Статья исключительно для начинающих. Подходы оригинальностью не блещут. В век Веб все очень привыкли к дизайну Single-Page-Application . Быстренько разберем подход "на фреймах". Мы делаем одну. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2025, CyberForum.ru