Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.3k Posts
  • Debug MSVC runtime error (xutility)

    Unsolved
    2
    0 Votes
    2 Posts
    203 Views
    Christian EhrlicherC
    Use a debugger, run your program in there, see where it crashes, take a look into the backtrace and fix your program.
  • QT Bug: Mouse position inaccuracy in macOS Monterey

    Unsolved
    2
    0 Votes
    2 Posts
    196 Views
    Kent-DorfmanK
    you do understand that floating point numbers are approximations, right? Never expect floating point math to represent an exact value. Always compare within a properly scaled tolerance range. isEqual = abs(a-b) < tolerance;
  • showing custom widget inside the mainWindow

    Unsolved
    18
    1 Votes
    18 Posts
    3k Views
    Swati777999S
    @JKSH said in showing custom widget inside the mainWindow: @Swati777999 said in showing custom widget inside the mainWindow: @JKSH said in showing custom widget inside the mainWindow: I believe you have missed @Pl45m4's point. He is asking you to explain: What do you expect this line to do?: QMainWindow *main = new QMainWindow(); Actually, I was trying to write some codes after that [like setting a layout or so]so as to I can add WindowWidget to it, something like that. You should add your WindowWidget to your ScrollAreaApp (which is this in your ScrollAreaApp's constructor). You should not be adding it to some extra QMainWindow. Yes, my other application has code for it and I should be writing this code there while trying but I chose to create another project file for experimenting. Unfortunately, the way that you're carrying out these experiments is making it harder for you to understand the important basics of widget parent-child relationships and layout management. In summary: It is completely wrong to create a new QMainWindow() in your custom widget's constructor. Don't do it, ever... not even for experimenting. This is because the ScrollAreaApp's constructor should only contain things that are placed inside the ScrollAreaApp. (Does this make sense? If not, please ask) I completely understand what you want to convey. So, basically it is preferred to experiment in the same location of the complete application rather than writing a part of code in different project file.
  • QTabWidget, persistent - visible - tab ?

    Unsolved qtabwidget qtabbar
    1
    0 Votes
    1 Posts
    270 Views
    No one has replied
  • QMap of QScopedPointer

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    C
    You could also use a copyable smart pointer like QSharedPointer if threading issues are considered.
  • Error All essential packages ... in Android SDK

    Solved
    2
    0 Votes
    2 Posts
    275 Views
    S
    I solved, I tried to install the files according to the Qt instructions but failed. I installed Android Studio and installed all the components. [image: e38963c3-8219-4c11-aa9b-aee4d85c59b0.png]
  • QImage(img.data,...) out of scope - img.data gets deleted when QImage is destroyed

    Unsolved
    13
    0 Votes
    13 Posts
    581 Views
    SGaistS
    You are not doing the resizing with OpenCV.
  • Problem with my class and QProcess

    Solved
    6
    0 Votes
    6 Posts
    354 Views
    SGaistS
    Hi, A full rebuild is not strictly required however running qmake before building is when adding or removing the Q_OBJECT macro as moc must do its job when added and otherwise not run when removed. But when I doubt, full rebuild often helps.
  • No Qtsql.framework dylib file

    Unsolved
    17
    0 Votes
    17 Posts
    867 Views
    SGaistS
    Which version are you building from ?
  • Qt6, QLoaderNetwork and http requests

    Solved
    6
    0 Votes
    6 Posts
    298 Views
    bunjee207B
    My bad, it seems the issue was on my side. I'm closing this.
  • QListWidget not updating

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    I
    @JonB You've done more than enough, thanks Time to read I guess haha
  • Slot gets not invoked

    Solved
    8
    0 Votes
    8 Posts
    576 Views
    SGaistS
    @makopo What was the issue ?
  • How to plot Barchart using database queries

    Unsolved
    2
    0 Votes
    2 Posts
    296 Views
    JonBJ
    @LT-K101 said in How to plot Barchart using database queries: implementing this using the values from the sql queries seem confusing. What does this mean? What are you actually asking us?? The fact that you get data from a database has no connection to code for adding bars on a chart. Your series appending looks OK, only you know what is in first_value etc. and how you got it from the database. I don't see what you think someone else can say. Break your problem into two: Get the bar/pie chart right by testing with sample hard-coded values, no database. Get your data from database queries, printing out the results, no charts. Then just connect the two bits of code.
  • Serial port buffer Size

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    mrjjM
    Hi Depending on the SENDING hardware, the payload will come in one or more "waves"/readAll() So once recievedData.size() is the expected size, all data has been read. There is no setting to avoid this. Its how it works.
  • QComboBox FramelessWindowHint not work on MacOS

    Unsolved
    1
    0 Votes
    1 Posts
    321 Views
    No one has replied
  • QMediaPlayer will cause window not response while stop play video.

    Unsolved
    3
    0 Votes
    3 Posts
    222 Views
    MozzieM
    @SGaist Thank you
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Weird layout behaviour

    Unsolved
    1
    0 Votes
    1 Posts
    104 Views
    No one has replied
  • How to use cut/copy/paste QKeySequence actions?

    Unsolved
    6
    0 Votes
    6 Posts
    579 Views
    SGaistS
    Use actions and connect them to the cut, copy, paste slots.
  • macOS Monterey 12.1, broken builds after update.

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    artwawA
    @SPlatten I don't know, really. It works on my iMac. I would, however, recommend to reinstall the command line tools - this would trigger reinstallation of the SDK