Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

URGENT!! Help with QT

$
0
0
The answers are in the Qt Documentation, but probably you are new to Qt and you don’t know where to search. Here some hints on where to look for in the documentation: 1) How do you set up a line edit to be uppercase? QWidget has a metod called inputMethodHints where you can set up that you prefer uppercase only. Or, if it does not works you can use a QValidator to force uppercase. Or, you can connect a slot to textChanged slot and force uppercase 2) How do you set up hints (the comments that appear, once hovering your mouse over function, to help user understand what is required of them)? QToolTip 3) Can you change the colour of a checkbox? Inside the box, that is. If so, how? You can use the Qt Style Sheet for customize the appearance of QWidgets 4) How can you change the colour of a button (and text displayed on the button) when it is pressed and again when it is released? With a Qt Style Sheet and/or using two slots connected to the pressed and release signals 5) Is it possible to change the background of a form to an image? If so, how? Again, try with Qt Style Sheet. Otherwise, you can lay behind the form a QLabel with a QPixmap setted. The QWidgets are generally transparent, so the image will appear as a form background 6) How can you enable the enter key on your keyboard to function whilst you are running your form (e.g. in my case, if i tab to have the button selected, i cannot enter (keyboard) for it to click, i have to use my mouse)? Not sure how to solve it. 7) How can you compare the entered text in line edit to a specific text you mentioned in the program? Create a slot and connect it to the signal editingFinished (or another appropriate).

Viewing all articles
Browse latest Browse all 4972

Trending Articles