logo
down
shadow

QT QUESTIONS

Qt – How to add calculated column in QsqlRelationalTableModel?
Qt – How to add calculated column in QsqlRelationalTableModel?
I wish this help you I think your best bet for handling this is to make either a model that inherits QSqlRelationalTableModel, or one that acts as a proxy (and contains a member for the model). Your new model will add the extra column, and when the d
TAG : qt
Date : November 27 2020, 07:01 PM , By : Nicolas Christiansen
Qt 4.6 QLineEdit Style. How do I style the gray highlight border so it's rounded?
Qt 4.6 QLineEdit Style. How do I style the gray highlight border so it's rounded?
will be helpful for those in need I'm styling a QLineEdit to have rounded borders for use as a search box. The rounding of the borders themselves were easy, but I can't figure out for the life of me how to round the highlighted portion of the widget
TAG : qt
Date : November 23 2020, 07:00 PM , By : Aniee Sheikh
Qstring replace is not working fine
Qstring replace is not working fine
it should still fix some issue i want to replace temp.replace , By escaping it with another \:
TAG : qt
Date : November 15 2020, 07:01 PM , By : Mohammed Irshad
Qt XQuery into a QStringList
Qt XQuery into a QStringList
it fixes the issue I'm trying to use QtXmlQuery to extract some data from XML. I'd like to put this into a QStringList. I try the following: , Try to use string() instead of text(), it should work.
TAG : qt
Date : November 14 2020, 07:01 PM , By : monster_d
How can I find a Qt metaobject instance from a class name?
How can I find a Qt metaobject instance from a class name?
will help you You should be able to do this with QMetaType. You might need Q_DECLARE_META_TYPE() and/or qRegisterMetaType() to make your types known. Then it should work roughly like in this example from the link:
TAG : qt
Date : November 09 2020, 07:01 PM , By : kramus
Software evaluation - licence
Software evaluation - licence
I hope this helps you . There could be several possibilities: Timestamp and encrypt the date of installation somewhere safe(registry or an external encrypted file) Upon each run, validate the registry date as well as the system date. User may tamper
TAG : qt
Date : November 07 2020, 07:01 PM , By : seunly
how to set the item selection forcefully in Qt
how to set the item selection forcefully in Qt
it fixes the issue Have you check the you have authorized selection? In the Qt Documentation, it is explain the item is selected unless selection mode is No Selection.
TAG : qt
Date : November 05 2020, 07:01 PM , By : user3856574
Is there a more expressive way of executing SQL query using Qt?
Is there a more expressive way of executing SQL query using Qt?
I hope this helps . I currently have this code: , I think you are basically describing query placeholders:
TAG : qt
Date : November 04 2020, 07:01 PM , By : user3856473
How to customize WindowsXPStyle in Qt?
How to customize WindowsXPStyle in Qt?
I wish did fix the issue. In Qt you can derive from default style classes. You can find the explanation at http://qt.nokia.com/doc/4.6/qstyle.htmlcreating-a-custom-style
TAG : qt
Date : November 03 2020, 07:01 PM , By : Minéos
Multiple QGraphicsViews with one QGraphicsScene
Multiple QGraphicsViews with one QGraphicsScene
will help you There is not a built-in method to do this as far as i know, but you can do it in the following way:When you create your items, give that item the pointer of the widget that it will be visible on (lets call this the filter). In the paint
TAG : qt
Date : October 29 2020, 08:01 PM , By : user3854391
How to convert .ui(user interface) files into .exe file in QT
How to convert .ui(user interface) files into .exe file in QT
I think the issue was by ths following , uic (sometimes installed as uic-4) takes the .ui files and generates a C++ header file that you can inherit from. There are a few different ways you can work with the .ui files. See the manual for more informa
TAG : qt
Date : October 29 2020, 08:01 PM , By : user3854328
How to solve a symbol look up error on Qt installation on Ubuntu
How to solve a symbol look up error on Qt installation on Ubuntu
it helps some times The problem is that the freetype library renamed FT_Get_X11_Font_Format to FT_Get_Font_Format somewhere in 2015. See https://github.com/juj/emscripten-freetype/commit/f4d1c11faa116daad655b50828a434babbdaed2a The old symbol FT_Get_
TAG : qt
Date : October 24 2020, 06:10 AM , By : Rio Danubio
Why can't QML key events be intercepted?
Why can't QML key events be intercepted?
To fix the issue you can do You can't disconnect a method when you use onReturnPressed: {} definition.You have to use Connections for that.
TAG : qt
Date : October 18 2020, 06:10 AM , By : Java Dacker
How can I load a QPaintedTextureImage into a QTextureMaterial?
How can I load a QPaintedTextureImage into a QTextureMaterial?
To fix the issue you can do I am using Qt3D to create a 360 deg panorama viewer where the image in equirectangular format is loaded over the mesh of a sphere with negative radius. The problem is that I need to load the texture from memory, instead of
TAG : qt
Date : October 13 2020, 08:00 AM , By : mckennav
OpenGL shader language; how to specify precision for vec4?
OpenGL shader language; how to specify precision for vec4?
should help you out vec4 is not a vaild type for a default precision qualifier.The type in default Precision Qualifiers has to be either int, float or any opaque type (e.g. a sampler is a opaque type).
TAG : qt
Date : October 12 2020, 03:00 PM , By : sGprove
How to add path in qt .pro file via DEFINE
How to add path in qt .pro file via DEFINE
it fixes the issue I want to add a path to my translations folder in the .pro file, which can be accessed from C++ / QML parts as well as used inside the .pro file. , First, this error from qmake:
TAG : qt
Date : October 12 2020, 09:00 AM , By : Mads Bergs Berggreen
How to fix "In Qt two timer to one function, use qmutex will qeventloop for sleep"
How to fix "In Qt two timer to one function, use qmutex will qeventloop for sleep"
Does that help IMHO the issue of OP results from a basic misunderstanding:QTimer doesn't introduce multithreading.
TAG : qt
Date : October 11 2020, 10:00 PM , By : Automator
Is there a way to do C++ macro but in Qt5 qml?
Is there a way to do C++ macro but in Qt5 qml?
I hope this helps . It seems to me that the way to go is conditionally loading qml files via Loader. Those files can each have their own different imports.See this answer for details: https://stackoverflow.com/a/52434062/1423877.
TAG : qt
Date : October 11 2020, 06:00 AM , By : Atul Shrestha
How can i change the placeholderText color in QML TextField
How can i change the placeholderText color in QML TextField
it should still fix some issue TextField has a property placeholderTextColor dedicated to the color:With Qt Quick Controls 2 (requires at least Qt 5.12):
TAG : qt
Date : October 10 2020, 07:00 AM , By : Oktavian Sahensolar
QTreeWidget avoid default selection of new item
QTreeWidget avoid default selection of new item
like below fixes the issue I tried it by creating a minimal-reproducible-example and I can not reproduce your behavior. If have to explicitly set the item being selected, if I want to achieve your described behavior. I suggest that you learn how to c
TAG : qt
Date : October 09 2020, 11:00 PM , By : Clint Tabone
How do i connect messageBox when it is clicked, to a slot?
How do i connect messageBox when it is clicked, to a slot?
Hope this helps There is different ways to use QMessageBox. You could use blocking static functions of QMessageBox and check response like that:
TAG : qt
Date : October 09 2020, 05:00 PM , By : S Rana
Change project .ui file (form) to .qml and .ui.qml file
Change project .ui file (form) to .qml and .ui.qml file
may help you . As a foreword, don't underestimate the amount of work needed to re-implement the UI of an app.Then, I would proceed like this, and have a working software all the time during the transition:
TAG : qt
Date : October 09 2020, 05:00 PM , By : Bee Thor
Drawing rectangle line-by-line doesn't have the same result as drawing it directly
Drawing rectangle line-by-line doesn't have the same result as drawing it directly
To fix the issue you can do I think there is a misconception on the meaning of option.rect. It is really the rectangle of the item of the table. There is still a portion, a one pixel wide line, that does not belong to the option.rect of the item, but
TAG : qt
Date : October 09 2020, 07:00 AM , By : enggar saka
qml maps show pointer image on each click
qml maps show pointer image on each click
this one helps. You have to create a model(like ListModel) with a MapItemView that you use as a delegate to the MapQuickItem:
TAG : qt
Date : October 07 2020, 08:00 PM , By : MarkD
how to draw 3d text on QtOpenGLWindow?
how to draw 3d text on QtOpenGLWindow?
To fix this issue Is there any high level rendering api for qt opengl? i dont need to understanding low level of opengl. but i cant find any high-level library.
TAG : qt
Date : October 06 2020, 10:00 AM , By : Siva
How to update Qt from 5.5.1 to 5.7 on Ubuntu 16.04?
How to update Qt from 5.5.1 to 5.7 on Ubuntu 16.04?
To fix the issue you can do Ubuntu packages in standard repository are always outdated. I suggest you install Qt from .run file they provide .But you can possibly run into problems, as i did, using Qt + CMake without Qt Creator
TAG : qt
Date : October 05 2020, 11:00 PM , By : Rpapa
How do I synchronize model views that have been hidden?
How do I synchronize model views that have been hidden?
To fix this issue I figured out what was causing the delay in rendering the QListView, requiring a delay before calling QListView::scrollTo(). I had included a QListView::setLayoutMode(QListView::Batched) which really slows things down. Here is some
TAG : qt
Date : October 05 2020, 07:00 AM , By : Mukesh Patel
QML Column doesn't set child object width automatically
QML Column doesn't set child object width automatically
Hope that helps You are right, a QML Column doesn't set child object width automatically, and it's the expected behavior for containers (except for a few exceptions like the SwipeView or the TabBar).So it's your responsibility to arrange children siz
TAG : qt
Date : October 04 2020, 02:00 AM , By : Zeeshan Ali
Why can't I use a ScrollView within a ColumnLayout?
Why can't I use a ScrollView within a ColumnLayout?
this will help A Qt Quick Layout resize all its children items (e.g. ColumnLayout resizes children's height, RowLayout resizes children's width), so you should use Layout attached property to indicate how to layout them, rather than setting the sizes
TAG : qt
Date : October 04 2020, 01:00 AM , By : Nam Nguyễn
QDateTime custom format escaping symbols
QDateTime custom format escaping symbols
help you fix your problem I would like to get a customized QDateTime such as: , You must enclose the at string inside single quotes:
TAG : qt
Date : October 03 2020, 01:00 PM , By : LeagueChapter
QML hide question mark from messagedialog
QML hide question mark from messagedialog
around this issue UPDATE: I found this application attribute which looks promising. Seems to work for me for both C++ dialogs and QML MessageDialog.Qt::AA_DisableWindowContextHelpButton
TAG : qt
Date : October 03 2020, 11:00 AM , By : R. Graves
How can I ensure both randomly generated colors are not the same?
How can I ensure both randomly generated colors are not the same?
I wish this helpful for you One approach is to get second color index so many times it is different. Note that in theory random indices could always be the same so you would never get past the while loop :)
TAG : qt
Date : October 03 2020, 08:00 AM , By : train leo
No viable overloaded "=" in qt
No viable overloaded "=" in qt
I wish did fix the issue. The issue is that you are using the std::find function incorrectly. You are also trying to find inside a list another list.Try this:
TAG : qt
Date : October 01 2020, 11:00 PM , By : dorentin
QML disable button after other button_click event and enable again after timer timeout
QML disable button after other button_click event and enable again after timer timeout
seems to work fine If you use enabled property of the item, you can disable the button.For example:
TAG : qt
Date : September 30 2020, 07:00 PM , By : Bojan Mise
QT: How to retrieve floating point value from QLineEdit form fields
QT: How to retrieve floating point value from QLineEdit form fields
Hope that helps how do i get/convert the text from a QLineEdit field. the code below is operated by a button / slot. , I just run this code in a MainWindow and it works as expected
TAG : qt
Date : September 28 2020, 03:00 PM , By : Jeff Dulzo
Yocto: remove packageconfig item
Yocto: remove packageconfig item
Any of those help The PACKAGECONFIG[qtwebkit] = ",,qtwebkit" line is showing what enabling or disabling that feature would do if qtwebkit exists in that package's PACKAGECONFIG variable (see here). Based on that second line and the documentation, it'
TAG : qt
Date : September 28 2020, 06:00 AM , By : slowhandwc
QVector::clear and QFile::close in QThreadPool
QVector::clear and QFile::close in QThreadPool
like below fixes the issue Interesting problem. Testing on Windows, Qt 5.12.4.One thing I've determined so far is that std::vector seems to perform better in this case. But it's still quite a long time, and does affect other threads on the system, ma
TAG : qt
Date : September 27 2020, 11:00 AM , By : Alberto Arias Maestr
ini file cannot be written using resource mode
ini file cannot be written using resource mode
help you fix your problem Resource files and configuration files are not really meant to be used together.The resource files are embedded into the binary file at the compilation (the .exe on windows), so you should consider the resource files as read
TAG : qt
Date : September 26 2020, 06:00 PM , By : gisselle peralta
Writing Issues With QTextStream
Writing Issues With QTextStream
may help you . The stream data is cached for a time (which is typical of writing to streams in general, eg. stdout and such). You can flush the stream data to be sure it is all written before writing to the file via a different method.
TAG : qt
Date : September 26 2020, 02:00 AM , By : zjjhzqf
How to make a QTextDocument as a widget?
How to make a QTextDocument as a widget?
To fix this issue You don't use a QTextDocument as a widget, because a Document is the idea in memory of what a document is, it does not have a Graphicsl Representation.If you are looking for a Visual representation of a Document, you can use QTextEd
TAG : qt
Date : September 21 2020, 10:00 PM , By : Tim Cole
Import CMake Project into an existing QT Project .pro
Import CMake Project into an existing QT Project .pro
To fix this issue AFAIK CMake and QMake cannot be mixed together in one project, they are two different build systems and if you want to use a CMake project in a QMake project you have "two" options: if you want to use the source files (.cpp and .h)
TAG : qt
Date : September 12 2020, 03:00 AM , By : Stefano Cascarini
Import Qt function to QML file?
Import Qt function to QML file?
This might help you You cannot directly import a C ++ function, in these cases the approach is to create a QObject that exposes the method through a Q_INVOKABLE:backend.h
TAG : qt
Date : September 11 2020, 06:00 AM , By : sara.bayati
shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk