Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • Cant emit signal array of structure QList<Structure>

    Unsolved
    2
    0 Votes
    2 Posts
    223 Views
    Kent-DorfmanK
    @V0rtex said in Cant emit signal array of structure QList<Structure>: Q_DECLARE_METATYPE(PLC_CONTROLPARAMS_LIST) That's not the type you need to declare. You created a container of those. BTW: please use using instead of typedef to alias the type. using PLC_LIST = QList<PLC_CONTROLPARAMS_LIST >;
  • Resizing widgets in QTabWidget leaves blank space if border disabled

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • QTableWidget QCheckbox extract values iteration

    Solved
    3
    0 Votes
    3 Posts
    233 Views
    Kalbo85K
    Thanks SGaist, it works now! I didn't see that the function itemAt was giving back the pointer.
  • Running as root without --no-sandbox is not supported

    Moved Unsolved
    7
    0 Votes
    7 Posts
    24k Views
    G
    @JonB This worked for me. Thanks a lot.
  • What are ways to disable DPI Scaling on compiled QT applications?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    hskoglundH
    Hi, did you also triy "... set the QT_AUTO_SCREEN_SCALE_FACTOR environment variable to 1. " (it's at the bottom of the High-DPI page from @SGaist 's link)
  • How to wait for QPropertyAnimation to finish

    Solved
    3
    0 Votes
    3 Posts
    491 Views
    -
    @SGaist Thanks, it worked. I got rid of the while loop and connected the finished signal of QPropertyAnimation to the function of running the programm which runs the rules.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    SGaistS
    Don't you have access to the source code ? And if not, ask the authors ?
  • QSqlDriver - misunderstandings?

    Unsolved
    7
    0 Votes
    7 Posts
    348 Views
    Christian EhrlicherC
    Please post a minimal, compilable example - I really don't know anymore where you added what and why. You posted a working solution so it must be a problem sonwehere in your code.
  • 0 Votes
    2 Posts
    185 Views
    Kent-DorfmanK
    IIRC, main application window position is just a hint to the window manager, and the manager is free to override the location. What window manager/DE is it being run under? That may give a clue.
  • Hiding/removing toolbar from QMainWindow

    qtoolbar qmainwindow python
    7
    0 Votes
    7 Posts
    11k Views
    M
    @Boman if the tool bar was set using addToolBar(toolbarWidget), you can show and hide the toolbarWidget to achieve your purpose
  • How to remove dependancy to library libQt5Network ?

    Solved
    5
    0 Votes
    5 Posts
    702 Views
    CutiUserC
    I found the solution (thanks to your posts). To have a dependency with the libQt5Network library, you just have to add in the .pro : QT += xmlpatterns And in the code: #include <QXmlSchemaValidator> QXmlSchema schema;
  • 0 Votes
    1 Posts
    502 Views
    No one has replied
  • Can't block OS pop ups in wifi managment

    Solved
    5
    0 Votes
    5 Posts
    417 Views
    supergS
    @SGaist Thanks! I'll follow you recommendation.
  • Multithreading and WebSocket

    Unsolved
    6
    0 Votes
    6 Posts
    679 Views
    Christian EhrlicherC
    @tux_brazilian said in Multithreading and WebSocket: the server couldn't handle it and disconnected Since you program the server I would guess you're doing something wrong. The server does not disconnect a connection by itself. You must be doing it somehow.
  • QListView - marked Items

    Unsolved
    3
    0 Votes
    3 Posts
    252 Views
    B
    Hi, thank you for your answer, I was wrong with the term slot, I mean signal. I will try it on your suggested way. Thank you!
  • Please help me find my "connect" error

    Moved Unsolved
    2
    0 Votes
    2 Posts
    395 Views
    Christian EhrlicherC
    @AnneRanch said in Please help me find my "connect" error: localDevice connect() needs a pointer as first and third argument, not an object
  • QAbstractItemModel::endInsertRows: Invalid index ( 2 , 0 )

    Unsolved
    9
    0 Votes
    9 Posts
    835 Views
    S
    No, Semester is the parent of Kurs. Semester has a vector of Kurs*, and each Kurs has a poinzter to its parent, a Semester.
  • QString.append() with a utf8 character not working

    Solved
    10
    0 Votes
    10 Posts
    986 Views
    Christian EhrlicherC
    @Daddedebad said in QString.append() with a utf8 character not working: B.append(QString("%1").arg(QString::fromLatin1(A.c_str()))); B += QLatin1Char(a[0]); or, when A is more than one byte B += QString::fromLatin1(A.c_str());
  • how can i modify the value of the Qjason array?

    Unsolved json qjsonarray
    4
    0 Votes
    4 Posts
    2k Views
    JonBJ
    @CupofCoffee said in how can i modify the value of the Qjason array?: TradingAreaInfoArr = rootObj["TradingAreaInfo"].toArray(); My understanding is that this returns a copy of the QJsonArray. You can modify that copy (update values, append new ones), but that does not alter the array in the QJsonDocument. The same with the QJsonObject InfoObj = rootObj["info"].toObject(); The objects/arrays in these are read-only. You have to copy them out as above, alter them, and then replace the current objects/arrays in the document, or create a new one, in order to produce a new document with the updates which can be saved.