Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.8k Posts
  • MUI Application Template

    Locked Solved
    4
    1 Votes
    4 Posts
    524 Views
    aha_1980A
    Now continued in https://forum.qt.io/topic/124572/multilanguage-application-template-with-customizable-fonts Closing this one.
  • Python Qt Designer Custom Widget with PaintEvent

    Unsolved paintevent qt designer custom widget widget
    3
    0 Votes
    3 Posts
    711 Views
    EmrecpE
    @jsulm I think this is for C++, I don't know how to use it on Python?
  • Compile Qt 5.9.6 from sources for 64 bits: Error in 'nmake' step

    Solved
    3
    0 Votes
    3 Posts
    234 Views
    D
    Thanks, I thought it was clean but it was not...
  • Removing drawn PyQt objects

    Unsolved
    2
    0 Votes
    2 Posts
    683 Views
    jsulmJ
    @Omg-Zomg said in Removing drawn PyQt objects: How to do it correctly? What is your question exactly? How to select something you draw with mouse? To "remove" something you simply do not draw it anymore.
  • curl ssl request to qt ssl request

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    M
    Just finishing this off. It looks like the passphrase is really only needed for the private key information. The same file can be used (or reread) to process the certificate. QFile certFile("./client.pem"); certFile.open(QIODevice::ReadOnly); QSslKey key( &certFile, QSsl::Rsa, QSsl::Pem, QSsl::PrivateKey, qstrPasswd.toLatin1() ); certFile.seek(0); // rewind to beginning for reread QSslCertificate certificate( &certFile, QSsl::Pem ); certFile.close();
  • Real-time value display

    Unsolved
    4
    0 Votes
    4 Posts
    205 Views
    jsulmJ
    @KOHAK said in Real-time value display: self.process.start('java -Xms16G -Xmx16G -jar spigot.jar') That should be self.process.start('java', ['-Xms16G', '-Xmx16G', '-jar', 'spigot.jar']) Please read documentation to do it correctly. Add error handling to your code to see what exactly happens, else only guessing is possible. See https://doc.qt.io/qt-5/qprocess.html#errorOccurred And I guess you have to provide absolute path to the java executable.
  • QPaintDevice::height(): how to get max. height of screen?

    Solved
    3
    0 Votes
    3 Posts
    284 Views
    SprezzaturaS
    BRILLIANT! Exactly what I'm looking for. Thank you :o)
  • Stacking widgets but both are visible

    Unsolved
    5
    0 Votes
    5 Posts
    749 Views
    S
    @jsulm If I don't apply a style sheet then I can't make the slider bar transparent to show the progress bar underneath
  • How to get a signal after a non-active sub-window is closed?

    Unsolved
    2
    0 Votes
    2 Posts
    181 Views
    JonBJ
    @NotNypical I don't understand whose closeEvent() you are talking about, or what the issue is. Anyway see https://stackoverflow.com/questions/8818297/qt-how-to-know-when-a-qmdisubwindow-is-closed, which discusses various possibilities include closeEvent.
  • why in qt debugger step over,step into and step out is disabled?

    Unsolved
    5
    0 Votes
    5 Posts
    547 Views
    stackprogramerS
    @jsulm thankyou, I before installed GDB and you can see the debugger tab. It is not a warning in it. These examples work fine in windows but in Linux, I faced with a strange case. [image: 2cd8f3a1-2583-42f4-b3f8-f54ccbb0764c.png]
  • Getting the directory path of project

    Unsolved
    11
    0 Votes
    11 Posts
    5k Views
    mrjjM
    Hi You can use message($$name) to check what is going on. also do note _ in start and the end $$_PRO_FILE_PWD_ not PRO_FILE_PWD https://doc.qt.io/qt-5/qmake-variable-reference.html#pro-file-pwd
  • Is there any way to recognize if a data is changed from outside?

    Unsolved
    20
    0 Votes
    20 Posts
    2k Views
    mrjjM
    @developer_61 Hi No there is no way to avoid that as far as i know as its correctly reported as the file do change twice. So QFileSystemWatcher is correct for it report it. If its a huge issue for you, you could just use a timer and check "last modified" on the file from time to time instead of using QFileSystemWatcher
  • QToolTip opacity

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    D
    @cawell which version of Qt? Unfortunately this has a direct relationship. On version 5.9, everything worked fine everywhere. At 5.12 it was broken and it worked as I mentioned above. I didn't look further
  • Accessing delegates in QML from C++

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • subprocess cmd Real-time output

    Unsolved
    2
    0 Votes
    2 Posts
    212 Views
    JonBJ
    @KOHAK said in subprocess cmd Real-time output: I want to enter CMD command into textbrowser What does this mean? in real time What does this mean? using subprocess module in pyqt. Is there an example site or something like that? If you want to use Python's subprocess then this has nothing to do with Qt, and you should look through any of the plethora of examples of that out on the web, in Python questions/examples.
  • Building & Running Qt programs on QtCreator for MacBook Pro M1

    Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    K
    @sierdzio Ah, okay then. I guess I will wait for the official support. Thanks!
  • Not to close Menu on MenuItem Click

    Unsolved menu button menuitem
    5
    1 Votes
    5 Posts
    3k Views
    A
    Just changing MenuItem to CheckBox does the job. Menu stays as long as you clicking CheckBox items: Menu { CheckBox { text: "Item A" checkable: true checked: false onCheckedChanged: { console.debug("item A", checked) } } CheckBox { text: "Item B" checkable: true checked: false onCheckedChanged: { console.debug("item B", checked) } } } This topic is still high in search results, so I think it would be helpful to post correct answer. Despite question is old it is still useful.
  • How to catch event of scrolling inside QScrollArea ?

    Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    Q
    @mrjj THANK YOU
  • QT MySQL Databese connect fail

    Solved mysql database qt5.9.2 c++ localhost
    4
    0 Votes
    4 Posts
    862 Views
    E
    @Christian-Ehrlicher yes,i just realize i forget to add sql to QT += core gui sql thanks for respone anyway
  • Is there any way to recognize qmake as a symbolic link?

    Unsolved
    8
    0 Votes
    8 Posts
    744 Views
    K
    @SGaist I use qt4.8.7. qmake version is 2.1a