Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • This topic is deleted!

    Unsolved
    25
    0 Votes
    25 Posts
    26 Views
  • Update qml value dynamically in C++ using thread

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    P
    It was a great help for running threads. Running in QtConcurrent::run([=], really solved all the issues of my UI non responsive ness.. Thanks a lot for your help
  • Find public IP of my internet connection

    Solved
    11
    0 Votes
    11 Posts
    853 Views
    Christian EhrlicherC
    @markolino_it Then please mark the topic as solved.
  • qt.qpa.xcb: could not connect to display

    Unsolved
    2
    0 Votes
    2 Posts
    810 Views
    jsulmJ
    @overfl0w said in qt.qpa.xcb: could not connect to display: which is still ROOT privilege uid/gid of 0), it fails about the 3rd of 4th plugin loading (XCB) Usually, root cannot access X server when running from other user account. Do you really have to start your app as root? Regarding plug-ins: set QT_DEBUG_PLUGINS=1 in a terminal and start your app there: there should be much more output providing more details why exactly the plug-in isn't loaded, please post it.
  • Minimum width and height not working on QDockWidget

    Unsolved
    2
    0 Votes
    2 Posts
    551 Views
    SGaistS
    Hi, If memory serves well, you should do that to the widget inside the QDockWidget.
  • macOS and Qt set-up

    Solved
    6
    0 Votes
    6 Posts
    558 Views
    SPlattenS
    @SGaist , I think the actual problem was low resources ( disk space ), I've cleaned up and removed a lot of junk, now installing again.
  • Intermittent crash passing QVariantMap from QML to C++ worker thread

    Unsolved
    1
    0 Votes
    1 Posts
    224 Views
    No one has replied
  • How to update parents QTableView

    Solved
    7
    0 Votes
    7 Posts
    563 Views
    P
    Ok it works! In the constructor: positionsForm::positionsForm(QSqlRelationalTableModel *parentmodel, QWidget *parent) : QDialog(parent), ui(new Ui::positionsForm) this->parentmodel = parentmodel; connect(ui->positionsTable->model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(updateParent())); And the function: void positionsForm::updateParent(){ qDebug() << "updateParent called!!"; this->parentmodel->select(); }
  • Setting QProxyStyle on TabBar, overrides Palette

    Unsolved tabbar palette setstyle
    12
    0 Votes
    12 Posts
    2k Views
    SGaistS
    Looks likes there might be a bug that has crept in. I have a related but different issue with the macOS style.
  • tabbar scrollbuttons?

    Unsolved
    10
    0 Votes
    10 Posts
    667 Views
    SGaistS
    Are you sure that it is not just related to the fact that you are at the far left of the tab list ? The same happens with macOS. The left button is transparent but as soon as you start moving the tabs with the right arrow, the left one fully appears and becomes usable. It becomes again transparent when full left is reached again.
  • connection with google on Qt

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    SGaistS
    Did you saw this updated version of the example code you likely used for your application: https://appfluence.com/productivity/how-to-authenticate-qt-google-sso/ ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Get Mouse local position on key press event

    3
    0 Votes
    3 Posts
    4k Views
    F
    @RiccardoTurati Could use mapFromGlobal.
  • Correct way to set focus on widget

    Solved
    5
    0 Votes
    5 Posts
    995 Views
    SPlattenS
    @SGaist , yes, seen it
  • QHPieModelMapper crash when going from one model to another

    Solved
    2
    0 Votes
    2 Posts
    202 Views
    D
    Seems like the problem was only for Pie, cause Candlestick, Bar and Line had no problem. In Mainwindow the declaration was for: QGridLayout mainLayout=new QGridLayout(); and redefining for the PieSeries isn't a good thing. Thank you QT Charts for being totally poor in explanation in everything and the debugger was telling something completely different from the actual thing. So deleting mainLayout = new QGridLayout; as a line solves the problem. For the poor people who desperately won't find a solution, this was it. The layout.
  • Error: no matching member function for call to 'addTab' qtabwidget

    Unsolved
    7
    0 Votes
    7 Posts
    903 Views
    P
    @SGaist said in Error: no matching member function for call to 'addTab' qtabwidget: Where did you add: #include <QHelpIndexWidget> ? You are so RIGHT!!! I had not added this at all! I had added only "qhelpcontentwidget.h". Now it compiles and works ok!!...almost... I get some irrelevant (??) message (in the application output in Qt Creator) when I open the help window: QSqlDatabasePrivate::removeDatabase: connection 'QHelpCollectionHandler-281628994016-2' is still in use, all queries will cease to work. QTextBrowser: No document for qthelp://walletfox.qt.helpexample/doc/index.html
  • 0 Votes
    3 Posts
    2k Views
    A
    @raven-worx Thanks a lot for the quick response! I'll look into it.
  • qml function in Qt6

    Solved
    4
    0 Votes
    4 Posts
    790 Views
    M
    Okay, got it. Per this StackExchange answer, and this Qt page, the following is an accepted way to do what I need: onSetModule: lblMsg => modFinder.setModule(lblMsg) Anyway, it works and clears up the warnings.
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    20 Views
  • Project ERROR: Unknown module(s)

    Unsolved
    17
    0 Votes
    17 Posts
    2k Views
    JKSHJ
    @Panoss said in Project ERROR: Unknown module(s): @SGaist there is nothing like QScript in the list of the online installer. It's here [image: y4mXWopaa-vGXHnpqAHhHWGGPwE5XRc-PXCjeaunVVA4G_qDMDAb84z5ayVRkD2m6N2HUJ09QT1i2qtOPYpTPBO0PAZgUTKrGU4FjVcaot53qpIj5oDFqW75rssR4iTwEftHnU2WMd4xJdtLK-lfuRZ74fTamWMxs_SbJte3pTSLTHbv8RfCyCTww2JljfQTO9i?width=1109&height=935&cropmode=none]