Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QSpinbox wrapped

    Unsolved
    7
    0 Votes
    7 Posts
    446 Views
    PerdrixP
    @JonB Thank you I can see that could work well.
  • Qsql - How to access table column information ?

    Solved
    5
    0 Votes
    5 Posts
    622 Views
    J
    @JonB This is exactly what I need, thank you!
  • QDialog default layout is NULL

    Solved qdialog layout fixed sizehint setfixedsize
    3
    0 Votes
    3 Posts
    746 Views
    K
    @ChrisW67 Thanks for replying. I was doing as you suggested but still getting the behaviour I specified. Turns out I had a conflicting ui generated header file that had the manually added layout which explains why I was experiencing a NULL layout. Once I deleted the conflicting file everything worked as expected. Thanks for the extremely easy to follow instructions. Kevin
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    2 Views
  • Location for freeware Qt extensions Widgets

    Unsolved
    5
    0 Votes
    5 Posts
    348 Views
    JonBJ
    @Perdrix As I suggested elsewhere, I believe you just want 4 spinboxes: hours, minutes, seconds, milliseconds. Or something close. QSpinBoxes have a minimum and a maximum, so that is your validation done. I am unconvinced that you want "wrap" from one spinbox to the next (does QDateTimeEdit even do that??), though it can be added. As I also commented elsewhere, a QDateTimeEdit ( or QDateTime type) is not the right type for your requirement. (Handling date entry/exit is the largest part of "the QDateTimeEdit code would not be the size that it is.".) You want a duration. These two do not deliver that, they deliver a "point in time". Your desired return type might be a QTime, but it might well be easier for your case to return some (long) integer. If you did that you could easily handle you expressed desire elsewhere (IIRC?) for potentially supporting nanoseconds. Note that QElapsedTimer, the one Qt class which supports a time duration, uses a qint64 as the fundamental data type, not a time-type, and also supports nanoseconds if wanted. You really want a QElapsedTimerEdit. Let us know if you find a Qt widget which does just what you want instead of writing it yourself.
  • Didn't fully understood ui file handling - and now stuck

    Solved
    2
    0 Votes
    2 Posts
    166 Views
    SGaistS
    Hi, You mark the topic has solved without additional information. Is that really the case ? If so, what did fix your issue ? That might help other people.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Dinamic texture

    Unsolved
    2
    0 Votes
    2 Posts
    201 Views
    B
    You can achieve this by creating a Qt3D texture from a converted QImage and applying it to the QPlaneMesh in your 3D scene.
  • Meaning of QT_FEATURE_sql:INTERNAL=ON

    Unsolved
    1
    0 Votes
    1 Posts
    151 Views
    No one has replied
  • 0 Votes
    4 Posts
    21k Views
    Paul ColbyP
    @ChrisW67 said in "SSL handshake failed: Error during SSL handshake: error:0A00010B:SSL routines::wrong version number" QNetworkReply::SslHandshakeFailedError: The site is misconfigured to deliver unprotected HTTP on the HTTPS port I'm not sure that's quite correct... $ telnet apis.gowwr.com 443 Trying 117.50.108.124... Connected to api-gateway.bmob.site. Escape character is '^]'. GET / HTTP/1.0 HTTP/1.1 400 Bad Request Server: openresty/1.15.8.1 Date: Wed, 01 Nov 2023 03:22:22 GMT Content-Type: text/html Content-Length: 261 Connection: close <html> <head><title>400 The plain HTTP request was sent to HTTPS port</title></head> <body> <center><h1>400 Bad Request</h1></center> <center>The plain HTTP request was sent to HTTPS port</center> <hr><center>openresty/1.15.8.1</center> </body> </html> Connection closed by foreign host. Cheers.
  • Dropbox QOauth module issue

    Unsolved
    2
    0 Votes
    2 Posts
    230 Views
    SGaistS
    Hi and welcome to devnet, Did you check the content of the query url ? Do you have some mismatch like localhost vs 127.0.0.1 ? While they resolve to the same address they are different from an OAuth point of view.
  • qsoundeffect(qaudio): error decoding source file

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    Hi, QSoundEffect only works with uncompressed data. For the missing output, are you sure you selected a valid one and that the volume is not 0 ?
  • Sqlite

    Solved
    21
    0 Votes
    21 Posts
    2k Views
    KenAppleby 0K
    @JonB @JonB said in Sqlite: I assume the OP knows he needs and has a table users with columns username & password I realise that. I am assuming, based on his offered code, that he doesn't, perhaps being used to e.g. MySql. @JonB said in Sqlite: Not so. It uses the default database (if none specified), here the database he has set/opened. I didn't know that. Thank you. But it is still better to specify which connection you are using IMO.
  • Displaying video stream using Qt Multimedia and GStreamer process

    Solved
    8
    0 Votes
    8 Posts
    9k Views
    A
    @himanshu-d Sorry I never finalized this development.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • QStyledItemDelegate does not highlight with the rest of the row on mouse-over

    Unsolved
    3
    0 Votes
    3 Posts
    286 Views
    qwasder85Q
    @Christian-Ehrlicher Yes, I don't know why it shouldn't be enabled and it also reacts to the editor event.
  • Sharing data between Program1 and Program2 with QSharedMemory

    Unsolved
    8
    0 Votes
    8 Posts
    469 Views
    JonBJ
    @donkey007 said in Sharing data between Program1 and Program2 with QSharedMemory: It makes bounding box showing delay. Not sure which/what "delay" you are talking about. But as long as you poll with Sleep(3000) you are liable to have up to a 3 second delay, so this pattern is not going to be acceptable (let alone any "delay" the OS may impose swapping between processes if time is critical). Unless you set the "sleep" really low, which risks making the waiting process "busy", polling will be a problem. If you want the fastest response @KenAppleby-0 suggestion of a semaphore is probably the best way to go.
  • Header

    Unsolved
    2
    0 Votes
    2 Posts
    186 Views
    C
    @Max90 said in Header: How can i change the header background color and text color please help, Which part of your picture is the "header"? How can i change the icon in front of "Login"? What icon? We can only guess how you have constructed this UI.
  • QLineEdit and pasted text

    Solved
    9
    0 Votes
    9 Posts
    959 Views
    R
    @Pl45m4 Thank you for the useful suggestions. I think I shall connect a slot to the QClipboard::dataChanged() signal in order to show a button which the user can press to paste the new text into the control. Of course, if the user pastes directly into the control with Ctrl-V, for example, or a context menu, then the text will not be filtered. Also not if typing, which is why I do not want to use QValidator. It is only for convenience, so using a separate button to insert the clipboard text gives me greater flexibility.
  • run cmd in qt

    Solved
    2
    0 Votes
    2 Posts
    198 Views
    C
    "It doesn't work" is not a good problem description. However, a self-contained program demonstrating the problem is always appreciated. Reread the documentation for QProcess:start(). The program to be run and its arguments are separate. Something like this: process.start( "/path/to/docker.exe", QStringList() << "exec" << "-it" << "xunxiao" << "/bin/bash" ); Your attempt to call CD will not work. CD is a Windows command shell builtin and there is no separate executable to run. Your attempt to run ls seems doomed to fail on Windows.