We are working on Qt Framework and we need to implement a dialog in which we have to show hyperlink in qlabel but hyper link is not activated in dialog.
Please suggest us.
Regards,
Gaurav Badgujar.
Related
I am working on a small UI with QT Creator and its drag-n'-drop tool (QT Designer). Everything was fine till I realized I had to make some widgets dynamic. For example, I have a checkbox and I want some button to appear only if this checkbox is checked by the user or I would like to change the appearance of another widget when the user clicks on some button.
Is it possible to do it only with QT Designer?
Yes, but it's very limited.
Qt designer have signal&slot editor. Yes, you can connect signal clicked(bool) to setVisible(bool) slot on button and make button visible only when checkbox is checked (see screenshot).
But when You need more complex dynamic interface (e.g. creating buttons), designed will not help You.
i'm programming a Qt Quick application and I'm looking for a possibility to display the user errors. In Qt widgets there is QMessageBox but i can not find any equivalent to this in Qt Quick.
Sure i can create a MessageBox by myself but I can't imagine that there is no given possibility?
I found an ebook on the official site here and there is an Dialog described on page 67 but it doesn't work anymore and i can't find any further information about that. Is it dropped in the current version?
Thanks in advance
There is no Qt-Quick component for this yet. What I do in my application is using the Window QML component. I set the modality property to Qt.WindowModal to have it as a modal Window. You can then use the Button component to create OK/Cancel buttons.
Another thing I do is create these modals dynamically when something wrong occurs using Qt.createComponent() in QML.
Edit: Just discovered a new Dialog component that will be released in Qt5.2 that seems to match what you are looking for: MessageDialog
I am developing a virtual keyboard in qt. I want to display it in QWebView when user taps on a text field in web page. I am able to pop up the kayboard on user click. But not able to put the text into the text field entered through virtual keyboard. Any help would be appreciated.
Thanks in advance
What is the problem you have, which approaches did you try?
A simple way would be to inject a fake QKeyEvent into Qt's eventing system, using QCoreApplication::postEvent()
I have just completed my first Qt 5 project and I want to add an About dialog. Is there a default, and how do you use it? If not, what's the best way to add one and edit it and display its content using the Help menu action? Any help would be appreciated. Thanks in advance.
The way to add a dialog to your project depends a little bit on what development environment you are using. You can always use QtDesigner (part of Qt) to design your About dialog and then add it to your project. To display it, just call the exec() function of the QDialog class in a slot connected to the triggered() signal of your About QAction object.
I am making my own browser with Qt/Webkit for touch screen devices. I want to have My own editbox in browser ( so that when user click on it, I can open virtual keyboard), Touch friendly listbox and other controls.
So In QWebView I want to have MyOwnTextEdit instread of QTextEdit and same for all other UI controls.
Please tell me How can I do it?
I am using Qt embedded linux 4.6.2.
For example, you can see how this kind of things realized in more easy widgets here: link text. It's the first way. The second way is to create you textbox with SIGNALs/SLOTs and also code widgets GUI with Qt styles. Good luck!