Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QtFuture::result() deadlocks

    Solved
    6
    0 Votes
    6 Posts
    297 Views
    Ahmed Yarub Hani Al NuaimiA
    I had very good help from the Qt staff, although I found the solution to be verbose but that would serve for the time being https://bugreports.qt.io/browse/QTBUG-95321?focusedCommentId=576678&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-576678
  • Sending data to queue of servers

    Unsolved
    7
    0 Votes
    7 Posts
    290 Views
    SGaistS
    Are these REST services ?
  • 0 Votes
    1 Posts
    207 Views
    No one has replied
  • Make a maskWidget to grandparent widget

    Solved
    4
    0 Votes
    4 Posts
    291 Views
    Joe JohnsonJ
    @Pl45m4 oops,It works well,thanks.Here is result [image: 03be47bc-ee3d-471f-b8a0-2fa5d1c72937.png]
  • Calendar Week and Day views, need advises

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    J
    Hi, I'm trying to do something similar: a month/week/day view widget to use instead of the calendar. If you had any wish to share your code it would be greatly appreciated :) Thanks, Jerome
  • How to display emoji with next to normal text

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    nooneN
    My bad I had set 077 umask (cause I'm paranoid) and had no read permission set on /etc/fonts/local.conf which had fallback configuration. I gave read permission to all and reran fc-cache and now everything is working fine.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • Why i am getting error when use new signal slot method ?

    Solved
    14
    0 Votes
    14 Posts
    911 Views
    CP71C
    @Qt-embedded-developer try delete the build folder from file explorer and rebuild all
  • 0 Votes
    8 Posts
    995 Views
    CP71C
    @AnneRanch Only another note When you manually connect a control's signal to your slot don't use the same name of "go to slot" because else your slot will be called twice, once for "go to slot" mechanism and once for your connect. e.g. if you have a push button called on_pushButton_13 you musn't call your slot void on_pushButton_13_clicked(bool checked); if you use the connect function to manage clicked signal. I hope I'm clear, no for you but for my english :(
  • QML - Unable to set the spinbox text color

    Solved
    3
    0 Votes
    3 Posts
    719 Views
    P
    @raven-worx Thank you very much! I must have missed this piece of documentation.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Closing a QDockWidget While the User is Actively Resizing It

    Solved
    8
    1 Votes
    8 Posts
    584 Views
    N
    @Pl45m4 I want to close this out for future devs looking for the right answer. The above solution is run before dockwidget->hide() and deleteLater(). We aren't ever undocking the dockwidget here. As far as I understand, my solution sends an event to the QMainWindow telling it the left mouse button was released, and the mainwindow responds accordingly, in this case, it ends the resizing of the dockwidget. The reason we send the event to the qmainwindow is that it is in charge of the dockwidget separators; I figured this out from some inspection of the source code and searching online. Also notably, the pointer to our parent qmainwindow is guaranteed safe in my implementation. The code that closes the dockwidget is running in the scope of the qmainwindow and we are just using 'this'. It might be dangerous to use this code within the scope of the qdockwidget and get the pointer to the parent with parent().
  • how to change the qtversion in shell/default for system

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    pgiovanniP
    @ChrisW67 ok i copied that exactly, and it actually changed the output of the error code. So I think it actually worked. There were some other errors involving cmake. But I contacted the devs of the kdeconnect app and they suggest I use something called craft to build the application and test changes to code. I'm gonna leave that last post as the solved answer, because it did work.
  • Horizontal Spacer expanding incorrectly

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    JoeCFDJ
    You can also try to align G label to left when it is added to the layout. something like: layout->addWidget( g_label, 0 , Qt::AlignLeft ); In this case, spacer may not be needed at all.
  • Qpixman makes gui run slow

    Unsolved
    9
    0 Votes
    9 Posts
    437 Views
    SGaistS
    @Garza said in Qpixman makes gui run slow: @SGaist currently I'm just calling this function and not handling what you mentioned. Will have a look at it. Does image size is an issue? is 2048x1280. It depends on: At which pace do you load them ? file compression level storage type and speed if network, network speed your machine specification
  • Getting Loading percentage of Program Startup?

    Solved
    5
    0 Votes
    5 Posts
    346 Views
    JoeCFDJ
    @BDC_Patrick You can launch your app(GUI) quickly while throwing loading of files into a thread.
  • QTableView how to selectRow, highlight and fire select event?

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    JoeCFDJ
    void QAbstractItemView::setCurrentIndex(const QModelIndex &index) does this help?
  • QT OPC UA with open62541 backend, encryption

    Unsolved
    2
    0 Votes
    2 Posts
    458 Views
    mrjjM
    Hi I think its something with the QtOpcUa plugin as when I tried using open62541 API directly it worked but I was not able to get working using the Qt API. But I didn't find out why exactly and for my use case, using the native API was ok. If you dont get any answers here I would ask on the mailing list. https://lists.qt-project.org/
  • Font Scaling on High DPI Linux displays

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    D
    In my main routine I added to following 2 lines int main(int argc, char *argv[]) { // Set up High DPI Scaling QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling,true); std::cout << "Enable High DPI Scaling to " << (QCoreApplication::testAttribute(Qt::AA_EnableHighDpiScaling) ? "true" : "false") << std::endl; // Existing Code QApplication a(argc,argv); // rest of main } I still saw the same font scaling and clipping issue. As a possible alternative, I tried swapping out the AA_EnableHighDpiScaling with AA_Use96Dpi, but that did not change anything. Dale
  • Questions about Windows notifications in Qt

    Unsolved
    9
    0 Votes
    9 Posts
    725 Views
    C
    @mrjj That is unfortunate .... anyway thank you for the help ! I will investigate this library. I already tried something similar in Python without success. Hoping this one will work. For now I keep this topic open just in case someone find a solution to this issue.