* [Comm] Переносимые приложения на Qt и стили KDE
@ 2002-12-26 10:44 Прокопьев Евгений
2002-12-26 10:53 ` Sergey V Turchin
2002-12-26 11:04 ` A.L. Klyutchenya
0 siblings, 2 replies; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 10:44 UTC (permalink / raw)
To: community
Здравствуйте!
Только начал изучать Qt, и сразу возник вопрос. А можно ли (и если да,
то как, интересна общая идея) писать переносимые приложения для
Linux/Win32, но при компиляции под Linux создавать бинарник, который
имеет не стандартный для Qt внешний вид, а соответствует текущей теме KDE?
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 10:44 [Comm] Переносимые приложения на Qt и стили KDE Прокопьев Евгений
@ 2002-12-26 10:53 ` Sergey V Turchin
2002-12-26 11:14 ` A.L. Klyutchenya
2002-12-26 11:38 ` Прокопьев Евгений
2002-12-26 11:04 ` A.L. Klyutchenya
1 sibling, 2 replies; 23+ messages in thread
From: Sergey V Turchin @ 2002-12-26 10:53 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В сообщении от 26 Декабрь 2002 13:44 Прокопьев Евгений написал:
> Здравствуйте!
>
> Только начал изучать Qt, и сразу возник вопрос. А можно ли (и если
> да, то как, интересна общая идея) писать переносимые приложения для
Смотрите исходники psi (есть в Сизифе)
> Linux/Win32, но при компиляции под Linux создавать бинарник, который
> имеет не стандартный для Qt внешний вид, а соответствует текущей теме
> KDE?
Просто выбрать стиль, подгрузиться библиотека нужного стиля из KDE.
Смотрите пример в программе qtconfig из пакета libqt3
- --
Regards, ZerG
### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Ct+y+zBIrxwqPwgRAm7uAKDgOXuGmOdmkl/g0aHBAXDLAr28KACfXDa4
NdnNken/K2t2cOz1JVom8K4=
=T5Oe
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 10:53 ` Sergey V Turchin
@ 2002-12-26 11:14 ` A.L. Klyutchenya
2002-12-26 11:32 ` Прокопьев Евгений
2002-12-26 11:38 ` Прокопьев Евгений
1 sibling, 1 reply; 23+ messages in thread
From: A.L. Klyutchenya @ 2002-12-26 11:14 UTC (permalink / raw)
To: community
26 Декабрь 2002 13:53, Sergey V Turchin написал:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> В сообщении от 26 Декабрь 2002 13:44 Прокопьев Евгений написал:
> > Здравствуйте!
> >
> > Только начал изучать Qt, и сразу возник вопрос. А можно ли
> > (и если да, то как, интересна общая идея) писать переносимые
> > приложения для
>
> Смотрите исходники psi (есть в Сизифе)
>
> > Linux/Win32, но при компиляции под Linux создавать бинарник,
> > который имеет не стандартный для Qt внешний вид, а
> > соответствует текущей теме KDE?
>
> Просто выбрать стиль, подгрузиться библиотека нужного стиля из
> KDE. Смотрите пример в программе qtconfig из пакета libqt3
Некошерно, программа будет реагировать только на свою конфу, если
не указывать - то на глобальную.
--
ВсехБлаг! А. Л. Клютченя
mail: asoneofus@kde.ru
www: http://www.qt.kde.ru
icq: 113679387
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:14 ` A.L. Klyutchenya
@ 2002-12-26 11:32 ` Прокопьев Евгений
2002-12-26 11:46 ` A.L. Klyutchenya
0 siblings, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 11:32 UTC (permalink / raw)
To: community
A.L. Klyutchenya пишет:
> Некошерно, программа будет реагировать только на свою конфу, если
> не указывать - то на глобальную.
А что в этом плохого?
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:32 ` Прокопьев Евгений
@ 2002-12-26 11:46 ` A.L. Klyutchenya
2002-12-26 11:53 ` Прокопьев Евгений
0 siblings, 1 reply; 23+ messages in thread
From: A.L. Klyutchenya @ 2002-12-26 11:46 UTC (permalink / raw)
To: community
26 Декабрь 2002 14:32, Прокопьев Евгений написал:
> A.L. Klyutchenya пишет:
> > Некошерно, программа будет реагировать только на свою конфу,
> > если не указывать - то на глобальную.
>
> А что в этом плохого?
В том, что изменив в центре управления КДЕ стиль - вам придётся
для каждой Qt проги менять её стиль вручную. Если нравится, то
ради бога. Но для того чтобы вела она себя, по оформлению, как
приложение КДЕ - надо ориентировать на глобальные.
--
ВсехБлаг! А. Л. Клютченя
mail: asoneofus@kde.ru
www: http://www.qt.kde.ru
icq: 113679387
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:46 ` A.L. Klyutchenya
@ 2002-12-26 11:53 ` Прокопьев Евгений
0 siblings, 0 replies; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 11:53 UTC (permalink / raw)
To: community
A.L. Klyutchenya пишет:
> 26 Декабрь 2002 14:32, Прокопьев Евгений написал:
>
>>A.L. Klyutchenya пишет:
>>
>>>Некошерно, программа будет реагировать только на свою конфу,
>>>если не указывать - то на глобальную.
>>
>>А что в этом плохого?
>
> В том, что изменив в центре управления КДЕ стиль - вам придётся
> для каждой Qt проги менять её стиль вручную. Если нравится, то
> ради бога. Но для того чтобы вела она себя, по оформлению, как
> приложение КДЕ - надо ориентировать на глобальные.
Я это и имел ввиду, просто не понял сразу смысла фразы. Конечно,
глобальные конфиги лучше.
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 10:53 ` Sergey V Turchin
2002-12-26 11:14 ` A.L. Klyutchenya
@ 2002-12-26 11:38 ` Прокопьев Евгений
2002-12-26 12:01 ` Sergey V Turchin
1 sibling, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 11:38 UTC (permalink / raw)
To: community
Sergey V Turchin пишет:
> Смотрите исходники psi (есть в Сизифе)
У меня только Мастер с обновлениями, все пакеты ставятся с ftp.altlinux.ru
И вот что происходит:
[john@john src]$ apt-get source psi
Обработка файловых зависимостей... Завершено
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Необходимо получить 497kB исходных архивов.
Err ftp://ftp.altlinux.ru Mandrake/Master psi 0.8.5-alt1 (srpm)
Could not open file psi-0.8.5-alt1.src.rpm - open (13 Permission denied)
Не удалось получить
ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Master/2.0/Mandrake/../SRPMS.Master/psi-0.8.5-alt1.src.rpm
Could not open file psi-0.8.5-alt1.src.rpm - open (13 Permission denied)
E: Не удалось скачать некоторые архивы.
[john@john src]$
[root@john root]# apt-get source psi
Processing File Dependencies... Done
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 497kB of source archives.
[root@john root]#
В последнем случае установка вообще молча обрывается
>>Linux/Win32, но при компиляции под Linux создавать бинарник, который
>>имеет не стандартный для Qt внешний вид, а соответствует текущей теме
>>KDE?
>
> Просто выбрать стиль, подгрузиться библиотека нужного стиля из KDE.
> Смотрите пример в программе qtconfig из пакета libqt3
[root@john root]# rpm -qa | grep libqt3
libqt3-3.0.3-alt2
[root@john root]# find / -name qt*config*
[root@john root]#
А вообще нет ли аналогичного примера для qt2? Пересесть на 3 пока не могу.
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:38 ` Прокопьев Евгений
@ 2002-12-26 12:01 ` Sergey V Turchin
2002-12-26 12:06 ` Sergey V Turchin
2002-12-26 12:15 ` Прокопьев Евгений
0 siblings, 2 replies; 23+ messages in thread
From: Sergey V Turchin @ 2002-12-26 12:01 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В сообщении от 26 Декабрь 2002 14:38 Прокопьев Евгений написал:
> Sergey V Turchin пишет:
> > Смотрите исходники psi (есть в Сизифе)
>
> У меня только Мастер с обновлениями, все пакеты ставятся с
> ftp.altlinux.ru
>
> И вот что происходит:
>
> [john@john src]$ apt-get source psi
> Обработка файловых зависимостей... Завершено
> Чтение списков пакетов... Завершено
> Построение дерева зависимостей... Завершено
> Необходимо получить 497kB исходных архивов.
> Err ftp://ftp.altlinux.ru Mandrake/Master psi 0.8.5-alt1 (srpm)
> Could not open file psi-0.8.5-alt1.src.rpm - open (13 Permission
> denied) Не удалось получить
> ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Master/2.0/Mandrake/
>../SRPMS.Master/psi-0.8.5-alt1.src.rpm Could not open file
> psi-0.8.5-alt1.src.rpm - open (13 Permission denied) E: Не удалось
Я по этой ссылке скачал для теста, все ок
> скачать некоторые архивы.
> [john@john src]$
>
> [root@john root]# apt-get source psi
> Processing File Dependencies... Done
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Need to get 497kB of source archives.
> [root@john root]#
>
> В последнем случае установка вообще молча обрывается
>
> >>Linux/Win32, но при компиляции под Linux создавать бинарник,
> >> который имеет не стандартный для Qt внешний вид, а соответствует
> >> текущей теме KDE?
> >
> > Просто выбрать стиль, подгрузиться библиотека нужного стиля из KDE.
> > Смотрите пример в программе qtconfig из пакета libqt3
>
> [root@john root]# rpm -qa | grep libqt3
> libqt3-3.0.3-alt2
> [root@john root]# find / -name qt*config*
> [root@john root]#
>
>
> А вообще нет ли аналогичного примера для qt2? Пересесть на 3 пока не
> могу.
- --
Regards, ZerG
### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Cu+G+zBIrxwqPwgRAgUYAJ4tojnMa7h0orlPQR8kYGCyqZwJjQCgw2B4
Zfk4egcXbqjdlESQ1r9ITPs=
=Jhd5
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:01 ` Sergey V Turchin
@ 2002-12-26 12:06 ` Sergey V Turchin
2002-12-26 12:24 ` Прокопьев Евгений
2002-12-26 12:15 ` Прокопьев Евгений
1 sibling, 1 reply; 23+ messages in thread
From: Sergey V Turchin @ 2002-12-26 12:06 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В сообщении от 26 Декабрь 2002 15:01 Sergey V Turchin написал:
> В сообщении от 26 Декабрь 2002 14:38 Прокопьев Евгений написал:
> > Sergey V Turchin пишет:
> > > Смотрите исходники psi (есть в Сизифе)
> >
> > У меня только Мастер с обновлениями, все пакеты ставятся с
> > ftp.altlinux.ru
> >
> > И вот что происходит:
> >
> > [john@john src]$ apt-get source psi
> > Обработка файловых зависимостей... Завершено
> > Чтение списков пакетов... Завершено
> > Построение дерева зависимостей... Завершено
> > Необходимо получить 497kB исходных архивов.
> > Err ftp://ftp.altlinux.ru Mandrake/Master psi 0.8.5-alt1 (srpm)
> > Could not open file psi-0.8.5-alt1.src.rpm - open (13 Permission
> > denied) Не удалось получить
> > ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Master/2.0/Mandrak
> >e/ ../SRPMS.Master/psi-0.8.5-alt1.src.rpm Could not open file
> > psi-0.8.5-alt1.src.rpm - open (13 Permission denied) E: Не удалось
>
> Я по этой ссылке скачал для теста, все ок
Невнимательно читал письмо, это ошибка apt,
скачайте другой программой по этой ссылке,
если у Вас нет диска с исходниками
<skip>
- --
Regards, ZerG
### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+CvDT+zBIrxwqPwgRAqHyAJ9R7txFgeanPFm2oPYfd+7UgVf6cACgx6Mi
5AKKjhMqoAbU5j+djsCFl70=
=XLEh
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:06 ` Sergey V Turchin
@ 2002-12-26 12:24 ` Прокопьев Евгений
2002-12-26 12:37 ` Sergey V Turchin
0 siblings, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 12:24 UTC (permalink / raw)
To: community
Sergey V Turchin пишет:
> Невнимательно читал письмо, это ошибка apt,
> скачайте другой программой по этой ссылке,
> если у Вас нет диска с исходниками
Да нет, это меня не было в группе rpm.
А вообще, как удалять из системы src.rpm? apt-get -h ни на какие мысли
не навел.
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:24 ` Прокопьев Евгений
@ 2002-12-26 12:37 ` Sergey V Turchin
0 siblings, 0 replies; 23+ messages in thread
From: Sergey V Turchin @ 2002-12-26 12:37 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В сообщении от 26 Декабрь 2002 15:24 Прокопьев Евгений написал:
> Sergey V Turchin пишет:
> > Невнимательно читал письмо, это ошибка apt,
> > скачайте другой программой по этой ссылке,
> > если у Вас нет диска с исходниками
>
> Да нет, это меня не было в группе rpm.
>
> А вообще, как удалять из системы src.rpm? apt-get -h ни на какие
> мысли не навел.
rpm -C package_name.spec
- --
Regards, ZerG
### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Cvgh+zBIrxwqPwgRAsrNAJ9pevl3Vo/btu5OE5WWdXKpy9pzIgCdGVGk
2v9F9DMt6UFyNdj5vkbGpD0=
=kM51
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:01 ` Sergey V Turchin
2002-12-26 12:06 ` Sergey V Turchin
@ 2002-12-26 12:15 ` Прокопьев Евгений
2002-12-26 12:20 ` Leonid B. Sysoletin
2002-12-26 12:21 ` Sergey Vlasov
1 sibling, 2 replies; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 12:15 UTC (permalink / raw)
To: community
Sergey V Turchin пишет:
>>[john@john src]$ apt-get source psi
>>Обработка файловых зависимостей... Завершено
>>Чтение списков пакетов... Завершено
>>Построение дерева зависимостей... Завершено
>>Необходимо получить 497kB исходных архивов.
>>Err ftp://ftp.altlinux.ru Mandrake/Master psi 0.8.5-alt1 (srpm)
>> Could not open file psi-0.8.5-alt1.src.rpm - open (13 Permission
>>denied) Не удалось получить
>>ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Master/2.0/Mandrake/
>>../SRPMS.Master/psi-0.8.5-alt1.src.rpm Could not open file
>>psi-0.8.5-alt1.src.rpm - open (13 Permission denied) E: Не удалось
>
> Я по этой ссылке скачал для теста, все ок
Теперь так:
[john@john devel]$ apt-get source psi
Обработка файловых зависимостей... Завершено
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Необходимо получить 497kB исходных архивов.
Get:1 ftp://ftp.altlinux.ru Mandrake/Master psi 0.8.5-alt1 (srpm) [497kB]
Fetched 497kB in 1s (332kB/s)
[john@john devel]$
Куда теперь смотреть, в /usr/src/ никаких изменений. Или apt-get source
работает не так, как rpm?
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:15 ` Прокопьев Евгений
@ 2002-12-26 12:20 ` Leonid B. Sysoletin
2002-12-26 12:21 ` Sergey Vlasov
1 sibling, 0 replies; 23+ messages in thread
From: Leonid B. Sysoletin @ 2002-12-26 12:20 UTC (permalink / raw)
To: community
26 Декабрь 2002 15:15, Прокопьев Евгений написал:
> Теперь так:
> [john@john devel]$ apt-get source psi
> Куда теперь смотреть, в /usr/src/ никаких изменений. Или apt-get source
> работает не так, как rpm?
Откуда запускали, туда и покладено.
--
Л. Сысолетин,
webmaster@unicon-ms.ru
[Team Ёжики-рулез!] [Team Котёнки на солярке] [Team Берегите букву "ё"!]
ЕЛИСЕЙ - королевич, в честь которого названы гастроном и поля.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:15 ` Прокопьев Евгений
2002-12-26 12:20 ` Leonid B. Sysoletin
@ 2002-12-26 12:21 ` Sergey Vlasov
1 sibling, 0 replies; 23+ messages in thread
From: Sergey Vlasov @ 2002-12-26 12:21 UTC (permalink / raw)
To: community
On Thu, 26 Dec 2002 15:15:57 +0300
Прокопьев Евгений <john@rmts.donpac.ru> wrote:
> [john@john devel]$ apt-get source psi
> Обработка файловых зависимостей... Завершено
> Чтение списков пакетов... Завершено
> Построение дерева зависимостей... Завершено
> Необходимо получить 497kB исходных архивов.
> Get:1 ftp://ftp.altlinux.ru Mandrake/Master psi 0.8.5-alt1 (srpm) [497kB]
> Fetched 497kB in 1s (332kB/s)
> [john@john devel]$
>
> Куда теперь смотреть, в /usr/src/ никаких изменений. Или apt-get source
> работает не так, как rpm?
apt-get source кидает src.rpm в текущий каталог.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 10:44 [Comm] Переносимые приложения на Qt и стили KDE Прокопьев Евгений
2002-12-26 10:53 ` Sergey V Turchin
@ 2002-12-26 11:04 ` A.L. Klyutchenya
2002-12-26 11:47 ` Прокопьев Евгений
1 sibling, 1 reply; 23+ messages in thread
From: A.L. Klyutchenya @ 2002-12-26 11:04 UTC (permalink / raw)
To: community
26 Декабрь 2002 13:44, Прокопьев Евгений написал:
> Здравствуйте!
>
> Только начал изучать Qt, и сразу возник вопрос. А можно ли (и
> если да, то как, интересна общая идея) писать переносимые
> приложения для Linux/Win32, но при компиляции под Linux
> создавать бинарник, который имеет не стандартный для Qt
> внешний вид, а соответствует текущей теме KDE?
Не указывать тему принудительно, или выделять ифдефами указание
темы.
--
ВсехБлаг! А. Л. Клютченя
mail: asoneofus@kde.ru
www: http://www.qt.kde.ru
icq: 113679387
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:04 ` A.L. Klyutchenya
@ 2002-12-26 11:47 ` Прокопьев Евгений
2002-12-26 11:54 ` A.L. Klyutchenya
0 siblings, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 11:47 UTC (permalink / raw)
To: community
A.L. Klyutchenya пишет:
> Не указывать тему принудительно, или выделять ифдефами указание
> темы.
Т.е. без указания темы берется тема по умолчанию?
А у меня при компиляции всех примеров из
/usr/share/doc/qt-2.3.1/examples/ этого не получилось, все выглядело как
стиль Windows в Qt Designer, т.е. довольно жутко.
Кстати, именно жуткий внешний вид Kylix и приложений, на нем написанных,
оттолкнул меня от этого инструмента (вне зависимости от прочих минусов).
Kylix как нибудь лечится или все безнадежно?
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:47 ` Прокопьев Евгений
@ 2002-12-26 11:54 ` A.L. Klyutchenya
2002-12-26 12:19 ` Прокопьев Евгений
0 siblings, 1 reply; 23+ messages in thread
From: A.L. Klyutchenya @ 2002-12-26 11:54 UTC (permalink / raw)
To: community
26 Декабрь 2002 14:47, Прокопьев Евгений написал:
> A.L. Klyutchenya пишет:
> > Не указывать тему принудительно, или выделять ифдефами
> > указание темы.
>
> Т.е. без указания темы берется тема по умолчанию?
>
> А у меня при компиляции всех примеров из
> /usr/share/doc/qt-2.3.1/examples/ этого не получилось, все
> выглядело как стиль Windows в Qt Designer, т.е. довольно
> жутко.
Странно.
> Кстати, именно жуткий внешний вид Kylix и приложений, на нем
> написанных, оттолкнул меня от этого инструмента (вне
> зависимости от прочих минусов). Kylix как нибудь лечится или
> все безнадежно?
Судя по сырцам - не так уж, но уж больно много править.
--
ВсехБлаг! А. Л. Клютченя
mail: asoneofus@kde.ru
www: http://www.qt.kde.ru
icq: 113679387
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 11:54 ` A.L. Klyutchenya
@ 2002-12-26 12:19 ` Прокопьев Евгений
2002-12-26 12:40 ` A.L. Klyutchenya
0 siblings, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 12:19 UTC (permalink / raw)
To: community
A.L. Klyutchenya пишет:
> 26 Декабрь 2002 14:47, Прокопьев Евгений написал:
>
>>A.L. Klyutchenya пишет:
>>
>>>Не указывать тему принудительно, или выделять ифдефами
>>>указание темы.
>>
>>Т.е. без указания темы берется тема по умолчанию?
>>
>>А у меня при компиляции всех примеров из
>>/usr/share/doc/qt-2.3.1/examples/ этого не получилось, все
>>выглядело как стиль Windows в Qt Designer, т.е. довольно
>>жутко.
>
>
> Странно.
Но это точно воспроизводится на трех машинах, где стоит ALM+Updates. Где
копать?
Кстати, приложения, сгенерированные в KDevelop, в варианте для KDE ведут
себя как положено, т.е. принимают нужный стиль, а для Qt - только стиль
Windows
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:19 ` Прокопьев Евгений
@ 2002-12-26 12:40 ` A.L. Klyutchenya
2002-12-26 13:00 ` Прокопьев Евгений
0 siblings, 1 reply; 23+ messages in thread
From: A.L. Klyutchenya @ 2002-12-26 12:40 UTC (permalink / raw)
To: community
26 Декабрь 2002 15:19, Прокопьев Евгений написал:
> Но это точно воспроизводится на трех машинах, где стоит
> ALM+Updates. Где копать?
>
> Кстати, приложения, сгенерированные в KDevelop, в варианте для
> KDE ведут себя как положено, т.е. принимают нужный стиль, а
> для Qt - только стиль Windows
Посмотрите, что там насчёт
QApplication::setStyle(new ???? );
QApplication ??( argc, argv );
--
ВсехБлаг! А. Л. Клютченя
mail: asoneofus@kde.ru
www: http://www.qt.kde.ru
icq: 113679387
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 12:40 ` A.L. Klyutchenya
@ 2002-12-26 13:00 ` Прокопьев Евгений
2002-12-26 13:15 ` A.L. Klyutchenya
0 siblings, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 13:00 UTC (permalink / raw)
To: community
A.L. Klyutchenya пишет:
> 26 Декабрь 2002 15:19, Прокопьев Евгений написал:
>
>>Но это точно воспроизводится на трех машинах, где стоит
>>ALM+Updates. Где копать?
>>
>>Кстати, приложения, сгенерированные в KDevelop, в варианте для
>>KDE ведут себя как положено, т.е. принимают нужный стиль, а
>>для Qt - только стиль Windows
>
>
> Посмотрите, что там насчёт
>
> QApplication::setStyle(new ???? );
> QApplication ??( argc, argv );
Вообще, как я понял, разница в том, что в первом случае KApplication, а
во втором - QApplication, а из kapp.h видно, что
class KApplication : public QApplication, public KInstance
Что может случиться плохого, если я напишу что-то типа
#ifdef KDE
#define APP KApplication
#else
#define APP QApplication
#endif
Кстати, что правильнее подставить вместо KDE ?
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 13:00 ` Прокопьев Евгений
@ 2002-12-26 13:15 ` A.L. Klyutchenya
2002-12-26 13:27 ` Прокопьев Евгений
0 siblings, 1 reply; 23+ messages in thread
From: A.L. Klyutchenya @ 2002-12-26 13:15 UTC (permalink / raw)
To: community
26 Декабрь 2002 16:00, Прокопьев Евгений написал:
> Вообще, как я понял, разница в том, что в первом случае
> KApplication, а во втором - QApplication, а из kapp.h видно,
> что
>
> class KApplication : public QApplication, public KInstance
>
> Что может случиться плохого, если я напишу что-то типа
>
> #ifdef KDE
> #define APP KApplication
> #else
> #define APP QApplication
> #endif
Просто у вас будет в одном случае приложение НЕ Qt.
Соответственно, вам потрябуется вся бодяга по хидерам из КДЕ.
и.т.п. Т.е. Если уж таким макаром, то писать сразу приложение
КДЕ :-D
> Кстати, что правильнее подставить вместо KDE ?
Не понял?
--
ВсехБлаг! А. Л. Клютченя
mail: asoneofus@kde.ru
www: http://www.qt.kde.ru
icq: 113679387
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 13:15 ` A.L. Klyutchenya
@ 2002-12-26 13:27 ` Прокопьев Евгений
2002-12-26 13:38 ` Aleksey Novodvorsky
0 siblings, 1 reply; 23+ messages in thread
From: Прокопьев Евгений @ 2002-12-26 13:27 UTC (permalink / raw)
To: community
A.L. Klyutchenya пишет:
> 26 Декабрь 2002 16:00, Прокопьев Евгений написал:
>
>>Вообще, как я понял, разница в том, что в первом случае
>>KApplication, а во втором - QApplication, а из kapp.h видно,
>>что
>>
>>class KApplication : public QApplication, public KInstance
>>
>>Что может случиться плохого, если я напишу что-то типа
>>
>>#ifdef KDE
>>#define APP KApplication
>>#else
>>#define APP QApplication
>>#endif
>
>
> Просто у вас будет в одном случае приложение НЕ Qt.
> Соответственно, вам потрябуется вся бодяга по хидерам из КДЕ.
> и.т.п. Т.е. Если уж таким макаром, то писать сразу приложение
> КДЕ :-D
А на винды как его переносить? И в чем бодяга? Во включении
дополнительных заголовков/либов?
>>Кстати, что правильнее подставить вместо KDE ?
>
>
> Не понял?
Да я уже и передумал :) Просто нужна была константа для определения
того, что в проект включены заголовки KDE, но наверное хватит
аналогичной для ОС
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [Comm] Переносимые приложения на Qt и стили KDE
2002-12-26 13:27 ` Прокопьев Евгений
@ 2002-12-26 13:38 ` Aleksey Novodvorsky
0 siblings, 0 replies; 23+ messages in thread
From: Aleksey Novodvorsky @ 2002-12-26 13:38 UTC (permalink / raw)
To: community
Прокопьев Евгений пишет:
> A.L. Klyutchenya пишет:
>
>> 26 Декабрь 2002 16:00, Прокопьев Евгений написал:
>>
>>> Вообще, как я понял, разница в том, что в первом случае
>>> KApplication, а во втором - QApplication, а из kapp.h видно,
>>> что
>>>
>>> class KApplication : public QApplication, public KInstance
>>>
>>> Что может случиться плохого, если я напишу что-то типа
>>>
>>> #ifdef KDE
>>> #define APP KApplication
>>> #else
>>> #define APP QApplication
>>> #endif
>>
>>
>>
>> Просто у вас будет в одном случае приложение НЕ Qt. Соответственно,
>> вам потрябуется вся бодяга по хидерам из КДЕ. и.т.п. Т.е. Если уж
>> таким макаром, то писать сразу приложение КДЕ :-D
>
>
> А на винды как его переносить? И в чем бодяга? Во включении
> дополнительных заголовков/либов?
По винды KDE-приложение перенести тоже можно, но потянется cygwin. Лучше
этого не делать.
Проблема с переносом на Win состоит в платности и закрытости Qt for Win.
Впрочем, если Вы пишете приложение по хорошему заказу или для продажи,
то стоимость Qt for Win не должна сильно испугать.
Rgrds, AEN
>
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2002-12-26 13:38 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-26 10:44 [Comm] Переносимые приложения на Qt и стили KDE Прокопьев Евгений
2002-12-26 10:53 ` Sergey V Turchin
2002-12-26 11:14 ` A.L. Klyutchenya
2002-12-26 11:32 ` Прокопьев Евгений
2002-12-26 11:46 ` A.L. Klyutchenya
2002-12-26 11:53 ` Прокопьев Евгений
2002-12-26 11:38 ` Прокопьев Евгений
2002-12-26 12:01 ` Sergey V Turchin
2002-12-26 12:06 ` Sergey V Turchin
2002-12-26 12:24 ` Прокопьев Евгений
2002-12-26 12:37 ` Sergey V Turchin
2002-12-26 12:15 ` Прокопьев Евгений
2002-12-26 12:20 ` Leonid B. Sysoletin
2002-12-26 12:21 ` Sergey Vlasov
2002-12-26 11:04 ` A.L. Klyutchenya
2002-12-26 11:47 ` Прокопьев Евгений
2002-12-26 11:54 ` A.L. Klyutchenya
2002-12-26 12:19 ` Прокопьев Евгений
2002-12-26 12:40 ` A.L. Klyutchenya
2002-12-26 13:00 ` Прокопьев Евгений
2002-12-26 13:15 ` A.L. Klyutchenya
2002-12-26 13:27 ` Прокопьев Евгений
2002-12-26 13:38 ` Aleksey Novodvorsky
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git