crossplatform.ru

Здравствуйте, гость ( Вход | Регистрация )

История благодарностей участнику Andrewshkovskii ::: Спасибо сказали: 18 раз(а)
Дата поста: В теме: За сообщение: Спасибо сказали:
9.12.2010, 23:55 QLineEdit изменение вида при смене enabled
А не много ли тебе граница-то в 20 пикселей, и закругление радиуса в 10? Поставь меньше! Даже 2 пикселя толщины уже выглядит не красиво :) Вот стандарт почитай о границах в цсс..
Хотя меняться должно.. сейчас проверю : )
Вот так вот будет работать :
QTextEdit{
border : 20px solid black;
color: blue;
border-radius: 10px;
}
FantasyOr,
8.12.2010, 19:14 QLineEdit изменение вида при смене enabled
Поставь ему такой CSS :
.QLineEdit{
color : black;
}
FantasyOr,
31.10.2010, 18:32 Не стандартная кнопка/ки
Хороших нету, есть что есть:) :
Раз и два
vankleef,
13.7.2010, 20:56 Книги по Qt
Скоро выйдет новая книжечка по Qt от Саммерфилда : http://www.qtrac.eu/aqpbook.html
igor_bogomolov, Litkevich Yuriy,
3.7.2010, 9:53 Проверка существования БД
Цитата(maint @ 3.7.2010, 9:50) *
есть такая функция в C/C++ stat.

Что, прости? Может быть ты имел ввиду функция драйвера SQLite?
bynet,
1.6.2010, 19:51 свежайший Qt Creator - проблема с запуском приложения
У меня проблема с отладочным выводом бывает только когда через криэйтор запушено более, чем одно приложение.
Aftor,
22.4.2010, 13:45 выход индекса за пределы дозволеного, философия
memory access violation ?:)

вот тут обсуждалось
AD, Litkevich Yuriy, SEvg,
22.4.2010, 12:36 QDialog и список окон
1. При создании и инициализации объекта класса QDialog
Цитата
QDialog::QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
Constructs a dialog with parent parent.

A dialog is always a top-level widget, but if it has a parent, its default location is centered on top of the parent. It will also share the parent's taskbar entry.

The widget flags f are passed on to the QWidget constructor. If, for example, you don't want a What's This button in the title bar of the dialog, pass Qt::WindowTitleHint | Qt::WindowSystemMenuHint in f.

2. Установить родителя явно через
Цитата
void QWidget::setParent ( QWidget * parent )
Sets the parent of the widget to parent, and resets the window flags. The widget is moved to position (0, 0) in its new parent.

If the new parent widget is in a different window, the reparented widget and its children are appended to the end of the tab chain of the new parent widget, in the same internal order as before. If one of the moved widgets had keyboard focus, setParent() calls clearFocus() for that widget.

If the new parent widget is in the same window as the old parent, setting the parent doesn't change the tab order or keyboard focus.

If the "new" parent widget is the old parent widget, this function does nothing.
Note: The widget becomes invisible as part of changing its parent, even if it was previously visible. You must call show() to make the widget visible again.
Warning: It is very unlikely that you will ever need this function. If you have a widget that changes its content dynamically, it is far easier to use QStackedWidget.

maranath, neneTc,
22.4.2010, 12:28 QDialog и список окон
На панели задач т.е?поставь ему родителя. вроде так не должно.
neneTc,
13.12.2009, 2:23 [РЕШЕНО] Размер окна приложения
Размер имеется ввиду QWidget::size?
Тогда надо вызвать void QWidget::showMaximized () .
mycoding,
5.10.2009, 23:58 error: collect2: ld returned 1 exit status
У тебя каким-то образом заблокирован main.exe файл. либо запущен, либо что-то ещё
legioner,
23.9.2009, 10:37 Ошибка QList при выяснении размера
inline int size() const { return d->end - d->begin; }

ИЗ исходника qlist.h, проверь у себя наличие первого и последнего элемента..
ufna,
24.3.2009, 15:44 Немного WinApi в Qt
Есть такой вот код,
void Test1Widget::saveAnswer()//слот, вызывает по нажатию кнопочки.
{
InitializeCriticalSection(&crit);
bool b;
tHandle=CreateThread(NULL,0,LPTHREAD_START_ROUTINE(saveAnswerThread),b,0,&tId);
}


DWORD Test1Widget::saveAnswerThread(bool b)//функция
{
QFile resfile("Results.dat");
    if(!resfile.open(QIODevice::Append))
    {
        dbReadError->setText("Произошла ошибка файл создания базы ответов.");
        dbReadError->setInformativeText("По каким-то причинам программе не удалось создать файл базы ответов.Программа будет завершена.");
        dbReadError->exec();
    }
     QTextStream filestream(&resfile);
        filestream << this->ColorList[CurrentColorTask] << " " << this->red <<" " <<  this->green << " "<< this->blue << endl;
}


Пытаюсь компилировать это всё в QtCreator.
Выдает ошибку :
C:/storage/programming/workspace/ColorTest/test1widget.cpp:198: error: argument of type `DWORD (Test1Widget:: )(bool)' does not match `DWORD (*)(void*)'

Раньше(когда писал под Eclipse) эту проблему решал с помощью приведения типа возвращаемого значения функции к LPTHREAD_START_ROUTINE, но сейчас что-то не выходит.
Использовать средства многопоточности Qt в данный момент мне не нужно, необходимо решить проблему с WinApi, если это возможно.
Так в чем может быть проблема?
mycoding,
10.3.2009, 22:51 Qt для S60 AD,

RSS Текстовая версия Сейчас: 19.3.2024, 5:53