Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Qt6 : readLine() blocking not work

    Unsolved
    2
    0 Votes
    2 Posts
    225 Views
    SGaistS
    Hi and welcome to devnet, You should add the link to the relevant documentation you are mentioning as well as the code you are using to show what the issue might be.
  • Connecting to MariaDB

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    SGSDoomS
    @mrdebug changing to QMysql worked. Thank you for that. Happy Holidays.
  • Problem with QTabBar tabs hovering when hover scroller buttons

    Unsolved
    4
    0 Votes
    4 Posts
    591 Views
    H
    I tried to redefine the parent for these buttons of scroller (for the QToolButton's), in this case, there is no overlap on hover, but the width of the buttons do not always turn out to be the same (despite the fact that in css tables they are defined as buttons of the same width).
  • Debug MSVC runtime error (xutility)

    Unsolved
    2
    0 Votes
    2 Posts
    253 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
    215 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
    4k 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
    326 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
    299 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
    655 Views
    SGaistS
    You are not doing the resizing with OpenCV.
  • Problem with my class and QProcess

    Solved
    6
    0 Votes
    6 Posts
    375 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
    983 Views
    SGaistS
    Which version are you building from ?
  • Qt6, QLoaderNetwork and http requests

    Solved
    6
    0 Votes
    6 Posts
    350 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
    626 Views
    SGaistS
    @makopo What was the issue ?
  • How to plot Barchart using database queries

    Unsolved
    2
    0 Votes
    2 Posts
    326 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
    3k 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
    346 Views
    No one has replied
  • QMediaPlayer will cause window not response while stop play video.

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

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied