![]() |
Re: Need assistance from QT programmer
Wild idea. :D
Reimplement void QLineEdit::focusOutEvent ( QFocusEvent * e ) and check what QLineEdit::validator()::validate() returns. |
Re: Need assistance from QT programmer
So you want to revert to original value in the text lenght is < 7 ?
You can use focusInEvent to save the original text in a qstring and focusOutEvent to revert. |
Re: Need assistance from QT programmer
Quote:
|
Re: Need assistance from QT programmer
That is strange, btw my example was wrong. The format
for Hex-Digits is "HHHHHH". I am pretty sure this should work. But I can not try it out at the moment. Can you try again with the format: ui->line_edit_font1->setInputMask("HHHHHH"); |
Re: Need assistance from QT programmer
Quote:
|
Re: Need assistance from QT programmer
Quote:
|
Re: Need assistance from QT programmer
They aren't signals. They are virtual methods. You have to reimplement those methods to use them.
|
Re: Need assistance from QT programmer
I don't know how you can use this in Qt Designer, but you can use those methods like this:
mylineedit.h PHP Code:
PHP Code:
|
Re: Need assistance from QT programmer
Sorry for changing the subject, but the GConfItem problem still remains for both D-Livil and me..
Quote:
I've downloaded libgq-gconf-dev_0.2-3+0m5_armel.deb from the package page, Then I unpacked everything into: E:\NokiaQtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-1030-slim\usr and added your suggestion to src.pro: Quote:
Copying doesn't seem like the right way to do it, but I'm clueless. ================================================== I did manage to include GConfItem by putting these files in my project, but those files also had their own includes, and it seemed endless to me. It wouldn't build because I don't have those headers. Another thing.. I see "#include <gconf/gconf.h>" here and there, but in my setup it's "#include <gconf/2/gconf/gconf.h>". I didn't change anything manually, just a straightforward Nokia Qt SDK install. The #include lines in those headers point to <gconf/....h>, so that's a dead end. I hope I don't bother anyone too much about this, but any help would be great |
Re: Need assistance from QT programmer
Well.. I think it's solved :D
Use system("command"); But be careful with system commands :D For instance, when you use Code:
system("gconftool-2 -R /apps/osso/hildon-desktop/views"); Code:
current = 1 I've been able to set backgrounds with the following: Code:
system('gconftool -s /apps/osso/hildon-desktop/views/1/bg-image -t string "/home/user/MyDocs/.images/abstract1_01.jpg"'); |
All times are GMT. The time now is 15:49. |
vBulletin® Version 3.8.8