🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #307860

Re: Jak zacząć z Qt?

#307860
From: Pawel
Date: Thu, 23 Jun 2016 19:32
33 lines
2584 bytes
W dniu 15.06.2016 o 19:01, Borneq pisze:
> W dniu 17.11.2015 o 17:52, Borneq pisze:
>> Najpierw instalowałem z instalki online, potem offline; to samo: błąd
>> konfiguracji programu Qt Creator. Czy można użyć tylko samej biblioteki
>> Qt z Visual Studio bez Qt Creatora? Ale znowu to nie pójdzie pod
>> Linuxem. Teraz ściągam instalkę Qt z MinGw
>
> Obecnie QtCreator działa świetnie, ale:
> ściągnąłem QScintilla_gpl-2.9.2 i zaisntalowałem w
> g:\Qt\QScintilla_gpl-2.9.2
> potem otworzyłem g:\Qt\QScintilla_gpl-2.9.2\Qt4Qt5\qscintilla.pro i
> udało się zbudować.
> Czas na aplikację testową: otworzyłem
> g:\Qt\QScintilla_gpl-2.9.2\example-Qt4Qt5\application.pro i tu niestety:
>
> G:\Qt\QScintilla_gpl-2.9.2\example-Qt4Qt5\main.cpp:22: błąd: C1083:
> Cannot open include file: 'QApplication': No such file or directory
>
> G:\Qt\QScintilla_gpl-2.9.2\example-Qt4Qt5\mainwindow.cpp:22: błąd:
> C1083: Cannot open include file: 'QAction': No such file or directory
>
> g:\qt\qscintilla_gpl-2.9.2\example-Qt4Qt5\mainwindow.h:25: błąd: C1083:
> Cannot open include file: 'QMainWindow': No such file or directory
>
Podejrzewam, ze ten przykladowy kod jest dosc stary. Z tego co pamietam, 
to z rok, czy dwa lata temu qt robilo spore zmiany w nazewnictwie plikow 
i loklizacjach i dlatego takie cos ci wysakuje. Poszukaj informacji o 
tych zmianach.

Co do pliku QApplication, to sprobuj zmienic na taki zapis
#include <QtWidgets/QApplication>

Ppowinno ruszyc. Reszty musisz poszukac.
Technical Details
Message-ID: <576c3957$0$15204$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!weretis.net!feeder4.news.weretis.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <n2fm14$gkg$1@node2.news.atman.pl> <njs1l2$bt7$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!weretis.net!feeder4.news.weretis.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: Jak zacząć z Qt?
Newsgroups: pl.comp.lang.c
References: <n2fm14$gkg$1@node2.news.atman.pl> <njs1l2$bt7$1@node1.news.atman.pl>
From: Pawel <ppf9@USUN_TOpoczta.fm>
Date: Thu, 23 Jun 2016 21:32:00 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <njs1l2$bt7$1@node1.news.atman.pl>
Lines: 33
Message-ID: <576c3957$0$15204$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 213-5-41-251.bestgo.pl
X-Trace: 1466710359 unt-rea-a-02.news.neostrada.pl 15204 213.5.41.251:57258
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit