Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Facing issue with integration of C++ with QML

    Solved
    3
    0 Votes
    3 Posts
    188 Views
    M
    @sierdzio Thanks it worked
  • How to vertically align two QLineEdits in independent layouts?

    Solved
    4
    1 Votes
    4 Posts
    310 Views
    R
    Thanks to both of you for your quick answers. I went with the grid layout. Never considered the grid layout since from my understanding it just consists of horizontal and vertical layouts and I didn't consider the relation.
  • Difference between MatchFlag.MatchFixedString and MatchFlag.MatchExactly

    Unsolved
    2
    0 Votes
    2 Posts
    474 Views
    JonBJ
    @buhtz https://doc.qt.io/qt-6/qt.html#MatchFlag-enum where these constants are described does not make it totally clear, but this type is used: In model item searches, such as QModelIndexList QAbstractItemModel::match(const QModelIndex &start, int role, const QVariant &value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const. I think the MatchFlag.MatchExactly ("Performs QVariant-based matching.") should allow e.g. integer model data values (models store QVariants) to be compared via their actual underlying value type rather then being converted to strings, as the other constants call for.
  • static build error

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    Z
    I fixed this after installed Ruby and removed "-" in source code path, not sure which one is the root cause. ``` Ensure that the following tools can be found in the path: * Supported compiler (Visual Studio 2012 or later, MinGW-builds gcc 4.9 or later) * Perl version 5.12 or later [http://www.activestate.com/activeperl/] * Python version 2.7 or later [http://www.activestate.com/activepython/] * Ruby version 1.9.3 or later [http://rubyinstaller.org/]
  • Help me

    Solved
    14
    0 Votes
    14 Posts
    734 Views
    JonBJ
    @Qt-fa-schifo Just so you know: if you had showed your .pro from the start or said you were using qmake we could have guessed you were missing QT += network, that is why I asked whether you were qmake or cmake.
  • QRegularExpression crashes valgrind

    Solved
    8
    0 Votes
    8 Posts
    835 Views
    JonBJ
    @ocgltd The --smc-check=all is actually what the last option in my UPDATE does, via an option in Creator's valgrind settings. That is actually rather different from setting the environment variable QT_ENABLE_REGEXP_JIT=0. The former changes the behaviour of valgrind checks to "excuse" the regular expression code, the latter changes Qt runtime code to not do the regular expression JIT code. It seems you can choose one or the other, you don't have to do both.
  • QMediaPlayer and QMediaPlaylist gstreamer error when playing sound

    Unsolved
    2
    0 Votes
    2 Posts
    487 Views
    T
    I have the same problem, how can i solve it
  • Qt moc complaining of .hpp not exist

    Solved
    5
    0 Votes
    5 Posts
    304 Views
    Puppy BearP
    @Puppy-Bear Change .vcxproj file of visual studio solved this, it's kinda of vs and git bug/env problem
  • 0 Votes
    1 Posts
    122 Views
    No one has replied
  • Video Lecture on windows

    Unsolved
    7
    0 Votes
    7 Posts
    447 Views
    SGaistS
    @The-Qt-Mayssa you have to use a recent version of Qt 6.
  • Video play using gstreamer / directshow /vlc

    Unsolved gstreamer vlc directshow mediaplayer
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    @The-Qt-Mayssa both widgets and qml are concerned. For the rest I don't know. You need to do some testing since you have the various systems at hand.
  • Qt 3D versus Qt Data Visualization

    Unsolved
    1
    0 Votes
    1 Posts
    102 Views
    No one has replied
  • This topic is deleted!

    Solved
    2
    0 Votes
    2 Posts
    21 Views
  • 0 Votes
    2 Posts
    312 Views
    SGaistS
    Hi and welcome to devnet, First thing: Qt does not use exceptions so you either need to adapt your code or follow the guide that shows how you may make use of them. My recommendation, drop the exception in that piece of code. Next: why are you throwing everywhere in your code without doing a proper check of the return values of the method you use ? Finally: don't store QDatabase objects, the class documentation explains why.
  • 0 Votes
    2 Posts
    192 Views
    Y
    I just figured out that our app name is Bitcoin-ABC, but we try to copy QSettings from app Bitcoin or Bitcoin-QT, but actually those apps may absent in our system: static const QString legacyAppName("Bitcoin-Qt"), legacyOrg("Bitcoin"); QSettings legacy(legacyOrg, legacyAppName), abc; const QStringList legacyKeys(legacy.allKeys()); // We only migrate settings if we have Core settings but no Bitcoin-ABC // settings if (!legacyKeys.isEmpty() && abc.allKeys().isEmpty()) { for (const QString &key : legacyKeys) { // now, copy settings over abc.setValue(key, legacy.value(key)); } } so this code is seeking app Bitcoin or Bitcoin-QT and copy settings. And if there is no such apps this code produces warning: QVariant::load: unknown user type with name BitcoinUnits::Unit. So, first we need to check if apps Bitcoin or Bitcoin-Qt actually exist. Is it possible to check existence of apps in QT5? I think this hack of copying settings from other apps is too self-confident action from Bitcoin-ABC developers, but if they want such, need to help them to check if such apps really exist. This hack might be related to old name of Bitcoin-ABC app, so in some commit number they changed app name and now try to copy settings from their app with old name. Please, is qt5 support such functionality of copying settings from other apps and how to check existence of apps Bitcoin, Bitcoin-Qt in this case?
  • The Qt charting module is unresponsive

    Solved
    7
    0 Votes
    7 Posts
    348 Views
    B
    @JonB I minimized the issue and rediscovered that the reason why I wasn't showing updates to the data was because my charts belonged to different objects hum_wdiget * H_wdiget; I define an object pointer so that the data passed through the object pointer belongs only to that object. So, I commented out the code that created the view in the diagram file and added it to the layout hum_wdiget.cpp void hum_wdiget::create_hum_charts() { ...other code... // vbox_hum->addWidget(view_hum); // setLayout(vbox_hum); } After that, I created the chart in the main interface directly from the object, and added the following paragraph. widget.cpp Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this); ...ohter code... vbox_hum = new QVBoxLayout(); vbox_hum->addWidget(H_wdiget->view_hum); setLayout(vbox_hum); }
  • Help with extending QTableWidgetItem

    Unsolved
    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • Error in Application

    Unsolved
    3
    0 Votes
    3 Posts
    217 Views
    S
    Really??? "Error in application" isn't informative? Wow... (sarcasm) If had more information about this problem - I'd share it, but that is all, that application gave to me. And the docs won't help, I followed all the installation steps from them and got this error. Is there any solution to this problem? Maybe someone has already encountered something similar? And yes, if I could solve this problem myself, I would not write here. And the last few days of searching on the Internet have not given me a single working solution
  • QComboBox qss

    Unsolved
    1
    0 Votes
    1 Posts
    81 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied