URGENT!! Help with QT
For the UI customization with Style sheets look at this example: http://qt-project.org/doc/qt-4.8/widgets-stylesheet.html In the example, the form background is customized, the check (and radio)...
View ArticleQML Text position versus PSD text position
Ah, now it seems that Photoshop is the highest and the lowest pixel of the font to determine the height of the bounding rect. The is not correct for a real bounding rect. The upper and lower distance...
View ArticleHow do I specify an absolute URL for a javascript import?
The “help topic on importing JavaScript resources”: http://qt-project.org/doc/qt-5/qtqml-javascript-imports.html in QML says: JavaScript resources may be imported via either relative or absolute URLs....
View ArticleHow do I specify an absolute URL for a javascript import?
you can try importing like import “../../../../utils1.js” if qml and js are in drive.
View ArticleHow to set dashed border in QML?
hi guys i have a little question. i have a rectangle in QML and i want to set a dashed border for it (not solid border) what should i do? if i should use CSS in QML please tell me how should i use CSS...
View ArticleQML UI over OpenGL
Hello, I’m pretty new to QML and QtQuick, and I would like to create a simple UI over my OpenGL scene. I have read the Scene Graph – OpenGL Under QML example, and this is exactly the effect I am after;...
View ArticleAccess QObject Item from a QList
Hi I got a class inherited from QObject like this: champion.h #ifndef CHAMPION_H #define CHAMPION_H #include <QObject> class Champions : public QObject { ...
View Articlemultiple XMLHttpRequest fires in random order
I have 3 different files opened, using XMLHttpRequest in different functions, that parses data. It seems, that they are finishing reading of files in different order, than associated functions, that...
View Articleqml delay function problem
hello i want to destroy a rectangle in qml by animation(like hiding) like this animation.start(); rec.destroy(); but after running… this rectangle (rec) will be destroyed before that animation ending...
View Articleqml delay function problem
Hi, Did you try onStopped event handler as mentioned here [qt-project.org] ?
View Article[SOLVED]multiple XMLHttpRequest fires in random order
The idea was to use JavaScript to the timed delays, but apparently after consulting resources about QML it seems, that the only way is using QML events and call 4th function alone after first three are...
View ArticleHow to set dashed border in QML?
i think it is possible with CSS, but i don’t know the way.. btw, thanks
View ArticleAccess QObject Item from a QList
You need to cast the pointer to the correct type, recommended ways are: dynamic_cast or (because you have a QObject) qobject_cast [qt-project.org]: Champions* item2 =...
View ArticleForcing uppercase only into QLineEdit
How can i set a line edit (named textbox1) to uppercase only? I tried InputMethodHints: #include "mainwindow.h" #include "ui_mainwindow.h" ...
View ArticleHow can i input a jpeg background Image on a QT Form?
Hi, Is it possible to change the background of a form to an image? If so, how? I have tried going onto Design Mode and Edit Style Sheet but i only end up with a select resource pop up bar with nothing...
View ArticleEnabling Enter Key on QT Form
Hi, 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 a button selected, i cannot enter (keyboard key) for it to process,...
View ArticleComparing line edit to a specific phrase
Hi, how can you compare the entered text in line edit to a specific text you mentioned in the program? For my case, i tried this: void MainWindow::on_button3_clicked() { QString...
View ArticleHow can i input a jpeg background Image on a QT Form?
I’ve right-clicked my QTProject folder under the ‘Projects’ panel and clicked on ‘Add New…’. From the pop up, i selected ‘Qt’, ‘Qt Resource File’ and then ‘Choose…’. I have named the file ‘Step1’ and...
View Article