Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.6k Posts
QtWS25 Last Chance
  • SUBDIRS - Dependencies

    Solved subdirs linking subproject
    10
    0 Votes
    10 Posts
    3k Views
    KH-219DesignK
    @rtavakko I'm so pleased to hear the working solution! Thanks for sharing the good news :)
  • Moving files to allow access to everyone

    Unsolved
    6
    0 Votes
    6 Posts
    366 Views
    mrjjM
    @Paulus_rin Hi QDir is just a helper class to work with files and folders. But it cant make a local folder public to others or things like that.
  • Convert language code three digits (ISO 639-2) to two digits code (ISO 639-1)

    Unsolved
    2
    0 Votes
    2 Posts
    229 Views
    Christian EhrlicherC
    No, you have to find another non-Qt way.
  • Debug or assert in Popup requires machine hard reboot!!

    Unsolved
    8
    0 Votes
    8 Posts
    322 Views
    kshegunovK
    @Christian-Ehrlicher said in Debug or assert in Popup requires machine hard reboot!!: It's an OS thing and can't be handled by the debugger (which has nothing to do with the QtCreator IDE btw). You will have exactly the same situation with the MSVC ide. And no a simple popup will not create such a situation as long as you don't set the breakpoint in the show or focusIn event of the popup. This shouldn't be the case. I've never hit such a limitation while debugging. I think this is simply some kind of bug/idiosyncrasy between gdb and the window manager/GUI. @JonB said in Debug or assert in Popup requires machine hard reboot!!: But... what is going on here?? Ctrl + Alt + Fn switches between the different terminals you have attached (ttys, or - and you're going to love this - teletypewriters). You usually have multiple of them running, as far as I can tell F1 to F7 are pretty much standard, and n in Fn is obviously the identifying ordinal. I'm afraid I come from the days of UNIX and vt100 terminals, the days when Programmers were Programmers, and nobody was vegetarian ;-) Yeah, we know you're old. ;P There were no windows or function keys. This has nothing to do with windows or function keys. Where is this documented so I can read up? Honestly, I have no idea. I've picked it up somewhere along the way, but I imagine linux/your distro's docs/wiki should have an explanation. What is the relationship between the 5/3 runlevels you mention and which keys? There's no keys for that one. init is a command line utility (I believe a shell script) that switches between the runlevels. For me on Debian there are 3 (formally 4) runlevels that are available: 0 is shutdown 1 is maintenance mode (single user, single terminal, bare bones functionality), call it the linux version of "Safe mode" 3 is multiuser no GUI mode, I get all the TTYs attached in it, but the GUI related stuff doesn't get started. Basically what one'd get if one were to be running a server/no-GUI machine 5 is multiuser + GUI, same as 3 but the window manager and all its associated daemons and such get started. So if I want to restart the window manager: $> su - $> ****** $> init 3 $> init 5
  • how to communicate between machines using public ip

    Unsolved
    5
    0 Votes
    5 Posts
    357 Views
    mrjjM
    Hi In a network, there is a router with a firewall in front and it blocks incoming connections. So when your app tried to talk to another app over internet it wont be allowed in. One can tell the firewall that its ok for a given port and if traffic comes, then tell it where to send the traffic (the ip of the pc running the app) This is called port forwarding. However, if your app is to be used by other people this is really not an option to ask them to open ports. Can you tell us what the app does and what you wish to do ?
  • Trasparent QMainWiondow

    Unsolved
    3
    0 Votes
    3 Posts
    227 Views
    mrjjM
    Hi This worked pretty well https://github.com/Bringer-of-Light/Qt-Nice-Frameless-Window
  • compile QtOpc

    Unsolved
    4
    0 Votes
    4 Posts
    324 Views
    SGaistS
    Since you cloned using git, did you install Perl ?
  • QObject / QWidget to QJsonObject

    Unsolved
    5
    0 Votes
    5 Posts
    392 Views
    SPlattenS
    @SGaist , thank you, its now on my list of things to do.
  • 0 Votes
    9 Posts
    26k Views
    P
    I have the same problem. Windows 10, Dos-Command: pip install cx_freeze My Setup-File: from cx_Freeze import setup, Executable setup(name = "PQTTexteditor" , version = "1.0" , description = "Barrierefreier Texteditor" , author='Markus Lemcke', author_email='info@marlem-software.de', url='https://www.marlem-software.de', executables = [Executable("PQTTexteditor.py")]) Build exe-File: python setupwin.py build Try to start Programm: PQTTexteditor.exe following error message comes: This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix this problem. Question: What can I do?
  • can not getting sql result.

    Solved
    9
    0 Votes
    9 Posts
    540 Views
    R
    i got its solution : "query->seek(0)" added before int st = query->value(0).toInt(); and it happened
  • QWebEngineView - Asynchronous functions and Exposing QObjects to the script engine

    Unsolved
    1
    0 Votes
    1 Posts
    111 Views
    No one has replied
  • QtCreator 4.12.4, Qt 5.15.0 - No iOS Kit

    Unsolved
    1
    0 Votes
    1 Posts
    95 Views
    No one has replied
  • SetFileTime on an image, File::open set filesize to 0

    Solved
    4
    0 Votes
    4 Posts
    439 Views
    C
    Problem solved using if(d.open(QFile::WriteOnly | QFile::Append)) to open th file
  • No C++ projects

    Solved
    2
    0 Votes
    2 Posts
    186 Views
    X
    Solved. I think this was happned because of beautifier plugin - after I install it I've got this problem. To solve it you just need to reset Qt settings. To do that just delete two QtProject folders from: %SystemDrive%\Users%USERNAME%\AppData\Roaming\QtProject and %SystemDrive%\Users%USERNAME%\AppData\Local\QtProject. That's it. I hope it will help someone.
  • QProcess with pythonQt

    Solved
    7
    0 Votes
    7 Posts
    472 Views
    S
    Thanks for the help, I'll look into it more. Closing this thread
  • MingW: A lot of warnings + too slow compiling

    Unsolved
    38
    0 Votes
    38 Posts
    6k Views
    F
    @JonB said in MingW: A lot of warnings + too slow compiling: switch any anti-virus off on Windows? In this Windows machine, I don't have anti-virus or firewall... @JonB said in MingW: A lot of warnings + too slow compiling: vary by factor of 100x !! Incredible!
  • Using findChild to iterate over controls and perform the same actions with them.

    Solved
    6
    0 Votes
    6 Posts
    355 Views
    O
    Of course, I'm not talking about all the controls in the program. I don't need it. This is purely for the case where there are few lineEdit. To erase the text in them all, or write something the same. Or to change the color of all the buttons for example. Then I'm going to need a separate array of pointers on the buttons. Of course, I'm not going to collect in one array of pointers for the controls of different purposes. There will be no practical benefit to this.
  • Storing QTextCharFormat and QColor to text file?

    Unsolved qtextcharformat qcolor convert
    7
    0 Votes
    7 Posts
    1k Views
    L
    @jsulm said in Storing QTextCharFormat and QColor to text file?: QTextStream & operator<<(const QTextCharFormat&) Hi, I have searched around how to write overloaded function for the operator, but I have not seen any example on the syntax you're using. I have declared QTextStream & operator<<(const QTextCharFormat&) in the class' header file, and in the source file, it should be something like this? QTextStream &SettingsDialog::operator<<(const QTextCharFormat &b) { stream << "font: " << b.font().toString() << " font-family: " << b.fontFamily(); return stream; } But I don't know where do I pass in the stream in the implementation.
  • query high contrast in the operating system

    Unsolved
    3
    0 Votes
    3 Posts
    224 Views
    P
    okay, i have to ask in a python forum !?
  • function arguments coming from two different places

    Solved
    7
    0 Votes
    7 Posts
    358 Views
    R
    Thanks for your feedback @jsulm @JonB @J-Hilk