Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Open/show and close/hide popup by QML code

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    M
    @sierdzio The code worked by triggering C++ signals further away from CPU-blocking operation.
  • How to access my variables through qApp pointer?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    sierdzioS
    Here is a good tutorial on singletons: http://www.yolinux.com/TUTORIALS/C++Singleton.html
  • Error while displaying GStreamer video from UDP using Qt Multimedia

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    P
    could you please share working Qt app which display video correctly.
  • How to use packed attribute in mingw Compiler

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    JonBJ
    @ManiRon28 From a couple of years ago at least there are posts stating that __attribute__ ((packed)) works in gcc but is "broken" in MinGW, and the suggested workaround is to use #pragma pack: https://stackoverflow.com/a/37199319/489865 https://stackoverflow.com/a/31622291/489865 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    19 Views
  • 0 Votes
    2 Posts
    632 Views
    K
    @BJUN Hi and welcome to devnet forum qwt is an extension of Qt as third party library. It maintains its own mailing list. Please check out there. This might be a faster way to get feedback on the issue.
  • Questions about Qt bluetooth notifications

    Unsolved
    1
    0 Votes
    1 Posts
    154 Views
    No one has replied
  • How to integrate QTWidget to Brasil TV New Plugin

    Unsolved
    2
    0 Votes
    2 Posts
    170 Views
    jsulmJ
    @KristinPerry said in How to integrate QTWidget to Brasil TV New Plugin: Brasil TV New What is this?
  • Is there a way to give promoted widgets properties in designer?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    mrjjM
    Hi Just as a note for this that I wanted automatically added to every widget derived of my class. You can also set up a promoted widget with all dynamic properties you want. Then Drag it to back to the WidgetList so its shown in scratchpad. Then you can use this as a template with all dynamic properties already added. Simply drag it back into a from. Also works across projects if it also has the promoted widget included. [image: yoFaz4.png] Make sure you hit a white empty area when dragging so it goes to scratchpad.
  • How to use QStackedWidget

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @Inzinejkr said in How to use QStackedWidget: I can't wrap my head around this sentence Oh dear, I try to make my answers clear, sorry about that! If you do not go setCurrentIndex(something) then the widget being shown is just whatever it was however you left it in the Designer. Which might be some blank widget if that's what you had there, or possibly "nothing" if QStackedWidget allows that. Either way, what you have now done sets the current widget explicitly from code, so it will indeed be one of the widgets you added into the stack in your code at runtime. Hence fixing your issue. With a QStackedWidget it is your task in code to call setCurrentIndex() whenever you want the current widget displayed to change. A QTabWidget behaves like a QStackedWidget, but has the additional "furniture" of a QTabBar to provide an interface to the user for changing which page/widget is shown.
  • 'export' is not recognised as an internal or external command

    Unsolved
    9
    0 Votes
    9 Posts
    5k Views
    A
    hi @Pablo-J-Rogina I've read that and If i'm not mistaken msys is what holds all the commands such as make right? However, I'm still unsure as to how to update it if that is what I have to do
  • Plugin + QObject: undefined symbol

    Unsolved
    4
    0 Votes
    4 Posts
    643 Views
    jsulmJ
    @fem_dev said in Plugin + QObject: undefined symbol: MYLIB_EXPORT How is it defined?
  • Listing only the name of a folder in QDir

    Unsolved
    3
    0 Votes
    3 Posts
    714 Views
    B
    To only get the name, a simpler way is use QDir::entryList instead of QDir::entryInfoList.
  • 0 Votes
    11 Posts
    2k Views
    C
    I'm unable to test this anymore due to not having the hardware, so hopefully this will work for someone who has the same problem. Thanks for the suggestion,
  • Qt: Global String Calling Issue

    Solved
    4
    0 Votes
    4 Posts
    273 Views
    E
    @Christian-Ehrlicher Thank you sorry i am really new to QT and c++ is not my native language c# is so get little confused but than you for reply :)
  • Question about problem with threads in Qt

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    D
    @JonB - sorry that was the subject my other post to this forum
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Adjust QListWidget size to content

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    S
    @SGaist, Got it. Here's the code snippet in case anyone's looking for an answer: ui->listWidget->setFixedSize(ui->listWidget->sizeHintForColumn(0) + ui->listWidget->frameWidth() * 2, ui->listWidget->sizeHintForRow(0) * ui->listWidget->count() + 2 * ui->listWidget->frameWidth());
  • Qt3D Filtering Entities

    Unsolved
    1
    0 Votes
    1 Posts
    111 Views
    No one has replied
  • Does QNetworkAccessManager::post() work in QMainWindow::closeEvent()?

    Solved network http macos
    18
    0 Votes
    18 Posts
    3k Views
    JonBJ
    @Sprezzatura I think this looks better :) Your code as it stands presumably leaks QNetworkRequest *request = new QNetworkRequest(url); and QNetworkAccessManager *nam = new QNetworkAccessManager;. You could put these on the stack (no pointers, no new). And I think you're supposed to deleteLater() the QNetworkReply *reply = nam->post(*request, content);. You can get away without, but one day when you want examine your code for memory leaks with e.g. valgrind it will be better.